Other timeframes
Hello all.
I am working on a test for multiple timeframe indicator and starting with a simple dummy code, as below, results in no bar calculation at all.
The only way for this code to work is selecting D1 timeframe, but I need this information in other timeframes such as M5 and M2.
Any help and comment is much appreciated.
Thanks in advance.
Hello,
Note: if ( (hmm = iMA(_Symbol, PERIOD_D1, 20, 0, MODE_SMA, PRICE_CLOSE)) < 0 )
https://www.mql5.com/en/docs/constants/chartconstants/enum_timeframes
- www.mql5.com
Fillellin,
This is *exactly* what I want. A SMA from D1, no matter what TF I am seeing in the chart.
Instead PERIOD_D1 insert the number of minutes
Can you post the entire line, please?
I don't know what you mean here.
Hello all.
I am working on a test for multiple timeframe indicator and starting with a simple dummy code, as below, results in no bar calculation at all.
The only way for this code to work is selecting D1 timeframe, but I need this information in other timeframes such as M5 and M2.
Any help and comment is much appreciated.
Thanks in advance.