I understand that if I want to be flat at the end of the day I can place the following in my Script.
ExitOnClose = true;
My problem is that I want to be flat at the end of the day if certain conditions are met, otherwise I would only like to exit part of the position at the end of the day.
Sadly, because of NT's defective CEP if I use the following condition NT doesn't exit until the following open, which is not what I want.
if (BarsArray[0].LastBarOfSession)
ExitLong...
What I'm trying to avoid is having to put the session close times for every market into the script to compensate for this crippling limitation. Any ideas? Does NT8 handle this better?
Is there a way to enquire about the "SecondLastBarOfSession" as NT seems unable to execute an action on the same bar the event occurs? Once again, is this something NT8 does?
Comment