Trailing distance and start

Forums ProRealTime English forum ProOrder support Trailing distance and start

Viewing 15 posts - 1 through 15 (of 16 total)
  • #180020

    Help create following:

    #180024

    You can find one here https://www.prorealcode.com/topic/trailing-stop-and-breakeven-codes/#post-129187, but if you search the forum you can find more snippets.

    Look also at the snippet library suggested by Vonasi and regularly updated by GraHal https://docs.google.com/spreadsheets/d/1rgboqj7sVwsP9ZRhOduOefye48QMWC07jWVXCl-KJPU/edit#gid=0.

     

    #180032

    Hi Roberto.

    I have searched and couldn’t find what I was searching for.

    Found how to start trail when 0.1% in profit, but cannot find how to keep the 0.04% distance from highest closed candle.

    #180036

    What distance is it?

     

    #180037

    For long

    0.04% distance from highest closed candle.

     

    For short

    0.04% distance from lowest closed candle.

    #180040

    Highest compared to what?

     

    #180041

    Highest closed candle after trailing was started.

    Long: Start trailing when 0,1% in profit. Efter this sl moves (trails) with 0,04 % distance to highest price/bar/candle

     

    Short: Start trailing when 0,1% in profit. Efter this sl moves (trails) with 0,04 % distance to lowest price/bar/candle

    #180043

     

    #180058

    maybe it is easier to explain with picture

    #180114

    What are the rules why both the green and red rectangle are drawn there?

    Which is the highest candle you want to refer to?

    0.04% needs to be calculated from which point?   up to… ?

     

     

     

    #180119

    This might be better?

    TP: set up 0.1% from entry
    Work with SL: If the trend continues and the trade exceeds 0.06%, SL is moved up / down by 0.04% for at least the breakeven.
    If the trend continues and breaks TP 0.1, TP is moved 0.1%, so new TP becomes 0.2% from original entry and SL is moved up to 0.1%.
    After that, work with trailing SL 0.1% up / down until it is broken and then you take a profit.
    Clarification: only candle close so that you do not let go of wicks.
    #180209

    Do u think this is possible to code Roberto 🙂

    #180211

    Yes, I’ll make it asap.

     

    #180215

    U are a master!

    #180226

    There you go:

    I tested it on DAX, 15min.
    I changed percentages a little bit to ber able to test it better.

Viewing 15 posts - 1 through 15 (of 16 total)

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