TIMEFRAME CONSTANT RESETING ITSELF WHEN SWTCHING BETWEEN TIMEFRAMES MANUALLY
-

In this example , i have these constants set to M30 by default representing timeframes which change through multiple timeframes during EA operation. My issue is that during EA operation , if I try to scroll through multiple timeframes the EA resets the timeframe back to default M30 even if it was working on another timeframe. The solution is not to touch it when it is operating but during testing it is impossible. So my question is how can the timeframe variable not be affected by my manual action of scrolling through timeframes
-
Try:
enum: ENUM_TIMEFRAMES -
That is ENUM_TIMEFRAMES
-
I see...
A constant won't change. Try using variables
-
@sktsec In this case constants do. The same problem persists only difference is that it resets to to the timeframe you have switched to...
-
@OD You can select the specific TF on the condition blocks themselves. That way they wil only look at that TF no matter how many times you change it manually.
-
@l-andorrà Am using a constant so that i can use the same blocks on different timeframes.
-
@OD Then I don't know what can be the issue. It should work.