Today I've got a strategy that appears to be placing live trades - some are "real" and take account positions and closes them out, and others it appears do not become real orders, and the strategy is yellow at that time. It does not take a real account position. It shows it on the live chart as it it's a real order, though other than that the "positions" tab does not show it.
Is this an order that didn't get filled?
Holdover from the last order that is causing it to "not be flat?"
Phantom holdover from missed trade in the opposite direction in the last live trade?
More strangely, the last time the strategy ghost "yellow" filled, 90% of the way through that trade it actually filled another order, in the opposite direction, which it opened and closed in a matter of minutes at a small profit. And this does not show on the chart at all. I wouldn't have known about it except for seeing it on the trades tab.
I think I understand the issues of OCO and wait until flat which I had studied when creating the strategies. I do not wish to set the program to go live immediately when turned on for strategic reasons, but that doesn't seem relevant, since this is occurring after a strategy has run for 12+ hours and is actively trading.
I'm just trying to ensure that the strategies execute the entries they are set for when they don't hold any current position. Their historic past should be clean since they have already exited their last position (which is sometimes a true executed trade). Instead they sometimes fire a ghost order -- or in one case a filled order that doesn't even match what is on my screen.
This strategy is built with Strategy Builder only. It is set to wait until flat. When I run it paper trading or backtesting there appear to be no similar issues. Please offer any guidance to clear this up. Thank you.
Comment