fast moving average crosses above slow moving average... that would be a trigger
Then place a limit order at that trigger price minus X amount of ticks.
Once this limit order is out there I need to check to see if there is already another order pending.
Basically if one order has triggered but never filled and the same trigger happens again I do not want to place a second order.
I guess another possibility would be to set a Boolean to true when the order is entered and check that on each trigger event.
Comment