Remeber and sabe in variable old timeframe used?
-
how to save the previously used time frame in a variable.
Example I was on m1 and changed to m5
Then:
Variable current timeframe is m5
Variable last timefreme is m1Can someone give me some ideas, I had this ready but I don't remember how I did it.
-
Or to simplify, I want that when I switch the time frame an order is opened.
The exact moment I switch, from timeframe m1 to m5, or from m15 to m1, an order is opened, any ideas? -
@ontradingx To put it simply if on timeframe xx change variable to chosen number.
-
@jstap yes, have one example in fxdreema?
-
@ontradingx At the minute there's not much remaining on h, ere, on MT4 is easy, TF from market properties == x change variable to y, think mt5 uses different values if you are 60 min or above.
-
@jstap
I think I found out how to switch between timeframes through buttons, I'm going to try to connect my trading rule to these buttons so that it opens taking advantage of the button click, so when I click on the button of the respective timeframe it will change and open the order that I wish.
