Close open positions before the weekend

Forums ProRealTime English forum ProOrder support Close open positions before the weekend

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

    I use this code on all my systems to close open positions on Friday evening. From time to time, however, systems with open positions are still held over the weekend. So, for whatever reason, the code didn’t work. Positions are then closed at market open on Sunday evening and systems halted. I still haven’t figured out why that is. It doesn’t matter which TF. It affects M1, M5 and M15 systems. Always completely sporadic.

    Is there another way to close open positions?

    Or is it the time? Maybe too close at the market close?

    #212172
    JS

    I think it’s indeed due to the time, right on the closure… It can (sporadically) happen that you can no longer even lose your market orders…

    Taking into account your longest time frame, for example 15 minutes, you can try:

    If Time >= 214500 and …

    1 user thanked author for this post.
    #212173

    What if there are no buyers during that one hour remaining ?

    Edit : Oh, I see that JS just said similar.

    1 user thanked author for this post.
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