I have a system running at 15 minute intervals. Where a market already has an open trade and the conditions are in place for a new position the trade seems to go into a Pending Status. These trades stay there until they can be opened. Is there a way to stop them from going into pending.
I am able to cancel these order manually but I would prefer them not to use Pending at all
I have DEFPARAM CumulateOrders = false and to open a trade my code uses IF NOT LongOnMarket
Any help will be appreciated
Not easy to help without seeing the code.
You are not testing on DJI are you … I’m sure you know they keep applying the Circuit Breaker … is that why your Orders go into Pending??
already has an open trade
IF NOT LongOnMarket
With above … if LongOnMarket then you would NOT be able to open another trade.
This issue seemed to clear itself up around 4pm yesterday. It was happening in a PRT demo account linked to IG demo so perhaps the sheer volume of trades happening yesterday because of the increased volatility was something to do with it.
Thanks for your comments GraHal