Help about stop trading strategy

Forums ProRealTime English forum ProOrder support Help about stop trading strategy

Viewing 11 posts - 1 through 11 (of 11 total)
  • #211754

    Hello!

    Is it possible to program the strategy to turn off after two losses. So if there are two losses regardless of time or if these are consecutive, the strategy is closed for that particular day.

    Or if the loss is a certain amount, let’s say 50 dollars, the strategy is turned off for that particular day.
    Thanks in advance and best regards!

    #211755

    My code will use the variable TradeON to flag periods when the strategy is freezed. Each new day trading is restored to full functionality:

     

    1 user thanked author for this post.
    #211793

    Link to above code saved as Log 359 here …

    Snippet Link Library

    1 user thanked author for this post.
    #211842

    Thank you so much!

    #211843

    Thanks guys!

    #237039

    Hi!

    I searched and found this thread and need some coding help. What I want do is: if the last 2 trades were losses, dont take any trade for the next 500 bars, instead of the rest of the day. How could I code that?

    #237040

    There you go:

     

     

    1 user thanked author for this post.
    #237258

    Hi robertogozzi

    I need some coding help. What I want do is: if the last 3 trades were winning , dont take any trade for the next 10 bars How could I code that?

    #237272

    There you go:

     

    #237277

    thank you thats help my code alooot

    I have just one more idea..

    What I want do is: its like a trailing stop but not on the position it will be on the portfolio i will give you an example:

     

    lets say i gain 1000$ and the trade is closed if he open a trade again i want him to secure 500$ from the last trade if he touch it he will shut down the system.

    also Every time I win multiples of 500, I want the device to stop at a rate of 500.

    #237281

    This seems to work as expected:

     

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

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