sessionIterator.ActualSessionEnd.TimeOfDay.Subtrac t(new TimeSpan(00, 05, 00))
most of the time it work but sometimes I suddenly get an end of session even BEFORE the actual time. and consequently my position is closed. immediately following this event the strategy is recalculating itself as this is a new session and it goes on to trade "a new day"
I attached the skeleton of my strategy without the trading logic. hopping maybe you can see what I am doing wrong .
Comment