Indeed we see an Exit on Session Close order submitted at 15:34:01 and as seen on a chart as executed at 15:35. No complains there.
What we DONT see AT ALL anywhere is the submission of the Exit from the position order at 15:00 clearly spelled out in the script.
In the example provided I was long at 15:00 holding one contract so why no orders were received ?
// Set 2
if ((Position.MarketPosition == MarketPosition.Long)
// EXIT
&& ((IsFalling(AuLLMA1.LLMA) == true)
|| (Times[1][0].TimeOfDay == new TimeSpan(15, 0, 0))))
{
ExitLong(Convert.ToInt32(DefaultQuantity), "", "");
}
That is where real problem is and what I am trying to resolve and implement.
Cheers

Comment