View Full Version : Resetting OrderID/StrategyID Values
whitmark
10-01-2007, 08:26 AM
I am submitting my own OrderID and StrategyID when I PLACE orders through the DLL ATI. If I am doing iterative testing whereby I am intentionally or unintentionally resubmitting the same OrderID or StrategyID across testing iterations, is there a way I can reset NinjaTrader so it won't give a a Filled, StrategyPosition, etc function result from an order that belongs to a prior test? Will "Reset DB" or restarting Ninja do the trick? Btw, I am aware that the ATI has a function to return unique OrderID and StrategyIDs to make this a moot point.
Thanks,
Whitmark
NinjaTrader_Dierk
10-01-2007, 08:37 AM
>> Will "Reset DB" or restarting Ninja do the trick?
Resetting DB will do the trick.
whitmark
10-01-2007, 08:44 AM
Thanks Dierk . . . will Restting the DB delete any simulation accounts I might have created for testing? Thanks.
NinjaTrader_Dierk
10-01-2007, 08:47 AM
>> will Restting the DB delete any simulation accounts I might have created for testing?
no
whitmark
10-01-2007, 10:53 AM
Dierk, I tried Resetting the DB as you suggested and that cleared the historical orders, executions, and ATM strategy data on the control center, however, the MarketReplay ATI function is still returning previous position values. Is there a way to reset these too or must I reinstall Ninja?
Thanks,
Whitmark
NinjaTrader_Dierk
10-01-2007, 11:15 AM
Try restarting NT
whitmark
10-01-2007, 12:25 PM
Its pretty stubborn . . . tried restarting Ninja as well as deleting the accounts and restarting Ninja but the MarketPositions persist. Is there a way to purge the the relevant database and rebuild it? Thanks.
Whitmark
NinjaTrader_Dierk
10-01-2007, 12:46 PM
You need to restart the ATI using app as well.
whitmark
10-01-2007, 12:54 PM
Okay, that must be it . . . I rebooted the machine too which restared the ATI app . . . thanks for the follow-up.
Regards,
Whitmark