I need to automate an order entry at the close of the session, which ideally would be right the opposite of the "ExitOnClose" instruction.
I am not finding a solution that effectively triggers the order everyday at the (close - n) seconds.
I am wondering if you can shed some light on what is the best approach to handle this?
The code runs in 10 minute bar aggregation and I want the order to be sent in the last few seconds of the session end, exactly in the same way the "ExitOnClose" instruction handles it.
Thanks
Comment