Skip to content
All library documents

Using a Higher Timeframe Parameter in the NRatio Indicator

Article MQL5 code base

Summary

This brief note describes an NRatio indicator variant that lets the user choose a chart calculation timeframe through an input parameter. The example defaults to a four-hour timeframe, so the indicator can be configured to use data from a timeframe different from the chart on which it is displayed.

The document provides no formula, signal interpretation, trading rules, or performance evidence for NRatio. It only identifies the timeframe setting and notes that the compiled base indicator file must be installed in the platform’s indicator directory for the variant to work. The note is therefore useful mainly as a configuration detail; it does not explain how to evaluate or trade the indicator, and it gives no caveats about multi-timeframe data alignment or lag.

Key ideas

  • The indicator exposes a timeframe input so it can calculate from a different period than the chart timeframe.
  • The stated default timeframe is four hours.
  • The variant depends on the compiled base NRatio indicator being installed.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.