Hi
I need to re_instantiate the object if a condition is met inside the OnCalculate.
Will the following be the BEST way?
many thx
I need to re_instantiate the object if a condition is met inside the OnCalculate.
Will the following be the BEST way?
many thx
MQL5:
int OnCalculate(... static ClassType var_name1(_Symbol, _Period); int x = 1; if(x) var_name1 = new ClassType var_name2(_Symbol, _Period);
Last edited by a moderator: