My issue with ExitOnClose is slightly different but I thought it may still be appropriate for this thread.
What I want to do is set ExitOnClose (EOC), outside of the Initialize routine.
- OnBarUpdate called; if hour is 0-7; set EOC=true else=FALSE
In backtesting the Corn market (ZC) the log statements I get are as expected. So this leads me to the following quesitons;
- Must ExitOnClose be set TRUE prior to entering a trade in order for it to work on that order?
- Is there a callback like OnMarketClose() so I can handle this myself?
Any other ideas or suggestions would be appreciated.
Thanks.

Comment