[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 365
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
What does it mean to consider an indicator in the tester? (1) Maybe the indicator of another timeframe should be displayed during visualization, or (2) in the EA code, in the function of the indicator you need to calculate a value for another timeframe?
there are several indicators linked to several timeframes in the EA, if I use comment() function, then it displays only indicator values for tested timeframe, other indicator values remain unchanged, I suppose that during the test indicators of other timeframes are not taken into account.
where numbers 1, 5, 15, 30, 60, 240, correspond to timeframes m1, m5, m15, m30, H1, H4
As a result, when testing at 4 o'clock, only p240 is displayed, the rest of values hangs on the start, on the hour, only p60 changes value and so on...
Going back to my question, is there a way to correct display of values in the tester for different timeframes and take into account values from different timeframes or current for the tested timeframe?
I have several indicators linked to several timeframes, if I use the comment() function, then only indicator values for the tested timeframe are displayed, other indicator values remain unchanged, I assume that indicators of other timeframes are not taken into account in the test either.
...
how to make an order open once per hour and only at the beginning of the hour
or
https://docs.mql4.com/ru/dateandtime/minute
only naturally check if an order is opened so that another one is not opened
First, show the part of the code where you find the indicator values for other timeframes in the EA. The suspicion is that there might be an error lurking there.
Kim's function