Hello again,
I use sessions to confine my trading times and it works well, but I was wondering if I have a session ending at 1pm, but I want to stop all buying at 12:45PM, how would I go about doing that using Java? I still want the strategy to be able to sell, just not buy anymore once 1245 hits. I know I need to make a call to get the time and then restrict my buy signals to be within that time frame using a conditional, but I am not totally certain how to go about doing that. Any help is greatly appreciated.
W
I use sessions to confine my trading times and it works well, but I was wondering if I have a session ending at 1pm, but I want to stop all buying at 12:45PM, how would I go about doing that using Java? I still want the strategy to be able to sell, just not buy anymore once 1245 hits. I know I need to make a call to get the time and then restrict my buy signals to be within that time frame using a conditional, but I am not totally certain how to go about doing that. Any help is greatly appreciated.
W