Multiple timeframes

 
Any know if it is posible to programe an indicator which allows multiple timeframes ( to add for example 3 indicators in same chart Macd for example) And for example looks at weekly daily and hour 4 timeframes ?



Jannik
 
Yes, Jannik, this is one of the nice things in MetaTrader - you can specify the time frame for all technical indicator calls:

example:
Macd_5_min=iMACD(NULL,5,12,26,9,PRICE_CLOSE,MODE_MAIN,1);

Macd_hourly=iMACD(NULL,60,12,26,9,PRICE_CLOSE,MODE_MAIN,1);

Macd_daily=iMACD(NULL,1440,12,26,9,PRICE_CLOSE,MODE_MAIN,1);

Then you can make your indicator based on these values:

Hope this helps,

Hugh
Reason: