STOP LOSS TO MINIMIZE LOSSES

Forums ProRealTime English forum ProOrder support STOP LOSS TO MINIMIZE LOSSES

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

    Hi

    You all coders ;>)

    I want this to happen in sideways markets to minimize size of losses but my code skills are below par.

    // Stops and targets
    IF pPROFIT   =< 10
    THEN SET STOP pLOSS 0
    ENDIF

    SET STOP pLOSS 50
    SET TARGET pPROFIT 250

     

     

    #205932
    JS

    Hi @OMXet

    Is it the intention that you measure the “Range” of the sideways movement and when it is too narrow / small that you then set your stop loss to zero …?

    #205933

    Hi

    Noooo, I just want to SET STOP LOSS = 0 as fast as my profit is over 10 points!!!

     

    #205936
    JS

    Hi @OMXet

    You can then use “Close-TradePrice” to see if your profit is larger than 10.
    Instead of “Set Stop pLoss 0” you can set the “Set Stop” to the level of the “TradePrice”… (BreakEven)

    2 users thanked author for this post.
    #206241

    Thx JS

    Exactly what I was looking for ;>))

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