I noticed that in two opportunities the strategy closed a position in TDAmeritrade but Ninjatrader did not reflect the new position in the Positions tab nor in the Position column in Strategy tab in the account data. I checked and the order was actually submitted to TDameritrade so this looks like a cosmetic issue. For reference, the strategy in synchronized and resynchronozing did not change anything.
I noticed a difference in the logs for the executions that work fine have this first line vs the ones that remain in the positions that do not have the entry in the log.
1/19/2021 19:27 | Position | Instrument='GM' Account='-BLANK-' Average price=54.2975 Quantity=20 Market position=Long Operation=Remove | ||||||||||||||||
1/19/2021 19:27 | Execution | Execution='3850925960:5872316015' Instrument='GM' Account='-BLANK- Exchange=Default Price=54.5001 Quantity=20 Market position=Short Operation=Operation_Add Order='3850925960' Time='1/19/2021 7:27 PM' |
Why is this?
Just as a reference, this never happened using Futures with NT, only with TDAmeritrade. The entry and exit is the exact same for the cases that work vs the ones that do not.
Thanks.
Comment