Download MetaTrader 5

Changing static variable to dynamic

To add comments, please log in or register
Do you know C++? MQL5 has much in common with it. Just try it yourself!
Akif Mushtaq
130
Akif Mushtaq 2015.10.28 08:03 

[code]
bool static double Buy_Limit = High[1]
[/code]
.....once above condition is true, execute order. And then reset value of Buy_Limit so that it can re-evaluate new High[1].

How can i change a static variable to dynamic, and then back to static as needed in an EA?

To add comments, please log in or register