Open and close trades strictly based on time

Forums ProRealTime English forum ProOrder support Open and close trades strictly based on time

Viewing 3 posts - 1 through 3 (of 3 total)
  • #91288

    Hi,

    It’s shitforbrains here again, sorry for the noob question. I’ve looked around but have not found any code that would allow me to run a system that opens a long or short position strictly based on the time of day. For example “go long or short at 09:00 and close trade at 13:00 if neither limit or stop is hit”. It would also help a lot if I could define which weekdays the system is allowed to take trades.

    Any help?

    Regards,

    #91308

    There you go:

    For Short trades just replace BUY with SELLSHORT and SELL with EXITSHORT.

     

    2 users thanked author for this post.
    #91346

    Thanks a lot!

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login