Don't execute next trade

Forums ProRealTime English forum ProOrder support Don't execute next trade

Viewing 5 posts - 1 through 5 (of 5 total)
  • #46510

    Hi

    How would the code look like if i want the following outcome

    • Don’t enter the trade when the conditions come true, if the last trade taken by the system was a losing trade

    Thankfull for any help!

    Yngve

    #46517

    Try this one, it should work. It will disable only ONE trade after any loss, not all trades (this is what you asked, insn’t it?):

     

     

    #46521

    Yes, perfect!

    Thank you

    #46527

    I have found a logic bug, because I forgot to take note that one trade had already been skipped (after being skipped) despite conditions.

    So I added the variable “TradeSkipped” :

    It should work fine now. Let me know after testing it. Sorry for the inconvenience.

    Roberto

    1 user thanked author for this post.
    #46600

    Thanks again @robertogozzi!

    It did reduce the number of consecutive losses on the strategy. But overall the performance was not improved. But thank you for the help!!!

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

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