aecioneto:
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
Documentation on MQL5: Standard Constants, Enumerations and Structures / Chart Constants / Chart Timeframes
- www.mql5.com
Standard Constants, Enumerations and Structures / Chart Constants / Chart Timeframes - Reference on algorithmic/automated trading language for MetaTrader 5
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
Alex2356:
Instead PERIOD_D1 insert the number of minutes
Instead PERIOD_D1 insert the number of minutes
Can you post the entire line, please?
I don't know what you mean here.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.