I have an algo where Long is opened first at given time and after its closed short can be opened at same price as Long was. I dont have a problem with first part but can't managed to have short working. Only one Long and one Short is possible.
To reset algo I set Date <> Date, but will it be working if Long is opened at 12pm and short at 1am and again Long at 12pm?
Thanks for any advice how to fixed.