two blocks with in same module
-
is this possible to add two blocks with in same module to execute the same action like if one block conditions are not met then combination of other block sequence with in same module execute the same task..
like if 20 ema croses above 40 ema in one block to execute the buy order and if same ema does not crosses 40 ema but is able to cross 30 or 50 ema in 2nd block then that order missed before should now be executed by 2nd block....and if both block conditions are met then no duplicate orders are created by same module -
@haikel Use a bool variable to set to true when 1st condition happens, trade open on 2nd condition, reset the variable to false when the condition is no longer valid.