Move SL depending on time – after SL is moved to breakeven.

Forums ProRealTime English forum ProOrder support Move SL depending on time – after SL is moved to breakeven.

Viewing 4 posts - 1 through 4 (of 4 total)
  • #176441

    Hi!

    I´m trying to find a way to move SL, not depending on price but depending on time.

    I have a scalping algo working on 10sec chart and when taking a trade I have a preset SL.
    After that, If the price moves in the right direction, my break even code move the SL to lets say small profit of 1point.
    Often the price movement stalls after that move and also quite often price goes back and hit the breakeven level.
    So my idea is to move SL quite rapidly towards the price after breakeven code have done it´s work so at least a few more points are gained.
    For example every minut (6bars at 10sec chart) the SL will be moved 1point against the price.

    Any ideas how to do it?

    #176446

    Like this ? Not tested.

    1 user thanked author for this post.
    #176447

    Thanks alot!

    Took a while to get my head around it… I`m not a coder 😉

    Row 7: “and highwashighenough” shouldn´t be there – right?

    Row: 14-18 makes the loop?

    Row 5: ok to change to  “positionprice+1” ?

    #176448

    Of course row 7 should be there. It means that your special condition for setting  the stop  to break-even has been met.

    Row 14-18 pull the stop 1 point higher every 60 seconds. And yes, setting the initial break even to any desired value in row 5 is ok.

     

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

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