I would like to make a daily strategy that executes the entry orders at the close of the current bar.
For example the next strategy:
-Buy at close if the RSI is > 75.
I would like to know if there is any way to know, for example 30 seconds before the end of the session, what is the RSI value and if the condition is true that send the order automatically. I need that the order will be executed at the end of the session, and not at the open of the session of the next day.
I understand that I can close a position using ExitOnClose, but, could I open positions of any way?
Thanks in advance.

Comment