if market is flat= do XYZ
today, when this condition was true (market was flat) my order was sent to buy XYZ, but before my XYZ order was filled, another order was sent within a millisecond because the buy condition was still true (market was still flat).
how can i add another condition that says
if market is flat
&& no pending orders= do XYZ
and my entries per direction is 2; and i need it to be two. bc after my first order is filled and later on when i am not flat anymore and XYZ happens i want to do ABC

Comment