I have a simple ea that uses the Macd to enter a scalping trade. The Macd calculation is fixed on the M1 chart by using PERIOD_M1:
The entry rules for a long trade are:
The unexpected behavior (to me) is that the ea gets into different trades depending on which chart the ea is attached to. Given that the calculations are all fixed to PERIOD_M1, can someone explain why this should be? The same behavior occurs in both back testing and in forward testing on a demo account.
Thanks in advance for your help.
I think the unexpected results from attaching to chart of different periods is because of this code Ask-Open[0]
Open[0] is idferent for diferent timeframe
I have a simple ea that uses the Macd to enter a scalping trade. The Macd calculation is fixed on the M1 chart by using PERIOD_M1:
The entry rules for a long trade are:
The unexpected behavior (to me) is that the ea gets into different trades depending on which chart the ea is attached to. Given that the calculations are all fixed to PERIOD_M1, can someone explain why this should be? The same behavior occurs in both back testing and in forward testing on a demo account.
Thanks in advance for your help.
Check also the Indicator you are calling to see if it really works with the period you are telling it to use.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have a simple ea that uses the Macd to enter a scalping trade. The Macd calculation is fixed on the M1 chart by using PERIOD_M1:
The entry rules for a long trade are:
The unexpected behavior (to me) is that the ea gets into different trades depending on which chart the ea is attached to. Given that the calculations are all fixed to PERIOD_M1, can someone explain why this should be? The same behavior occurs in both back testing and in forward testing on a demo account.
Thanks in advance for your help.