quick question on the attached error, I think I *may* have solved by amending the ExitShort and ExitLong methods Ive been using, does the error below ever correspond to the strategy attempting to update a position during stoppages in trading etc?
My question is essentially, during the market pause when the regular session ends and the extended session begins 3:15pm-3:30pm , how does the strategy handle rejections? Do I need to manually account for this, or should Ninjatrader be aware of this based on the predefined instrument trading hours?
I want to make sure it copes with this gracefully, as , as you can see in the screenshot, I had a case where an order cancellation failed, which led to a position that was completely unmanaged with no risk management whatsoever on it.
When I unlocked the strategy and began to develop it further in the Ninjascript editor, I notice the scheme for ExitLong for example was:
ExitLong(string signalName, string fromEntrySignal);
I originally had the below:
ExitLong("<NAME OF THE EXIT HERE>", "<NAME OF THE ENTRYSIGNAL HERE>)
Ive since amended these to simply :
ExitLong("<NAME OF ENTRY HERE>);
as per examples in the NT8 referencebase.
should I have any other concerns? or does the above cover it? thanks.
Comment