Download MetaTrader 5
To add comments, please log in or register
Have you developed a profitable strategy? Share it with millions of traders via Signals!
michelino
216
michelino 2013.08.27 19:33 

Hi,

is it possible to plot an indicator (separate window) using different timeframe from the currency's one?

ex. currency plot is at H1 I'd like to plot ATR(M15) or ATR(daily) 

Alain Verleyen
Moderator
30299
Alain Verleyen 2013.08.27 20:20  
michelino:

Hi,

is it possible to plot an indicator (separate window) using different timeframe from the currency's one?

ex. currency plot is at H1 I'd like to plot ATR(M15) or ATR(daily) 

Of coursen why not ? See the Codebase, there is several examples.
michelino
216
michelino 2013.08.29 17:21  
angevoyageur:
Of coursen why not ? See the Codebase, there is several examples.

found! here https://www.mql5.com/en/code/178 there's a good example. it works I'm going to modify it to let it work on other indicators

thanks 

RSI multi-timeframe [v03]
RSI multi-timeframe [v03]
  • votes: 9
  • 2010.08.25
  • Armand Kilian
  • www.mql5.com
RSI indicator, can be applied to any timeframe (higher or lower than the current chart's timeframe).
P_Cherry
97
P_Cherry 2013.10.07 17:22  

This is a very good example of transferring any indicator into MTF version. But now I would like to merge both codes to have one MTF indicator only.

It means,

instead of just calling indicator in MTF version (ExtRsiHandle_TF2=iRSI(NULL,InpTimeFrame_2,InpPeriodRSI,InpAppliedPrice) to put the whole code of single timeframe indicator into MTF version (no need single timframe file anymore).

Can you guide my where to start?

Thanks and regards

Peter

How to call indicators in MQL5
How to call indicators in MQL5
  • 2010.03.12
  • KlimMalgin
  • www.mql5.com
With new version of MQL programming language available not only the approach of dealing with indicators have changed, but there are also new ways of how to create indicators. Furthermore, you have additional flexibility working with indicator's buffers - now you can specify the desired direction of indexing and get exactly as many indicator's values as you want. This article explains the basic methods of calling indicators and retrieving data from the indicator's buffers.
/
To add comments, please log in or register