reducing stoploss timebased

Forums ProRealTime English forum ProOrder support reducing stoploss timebased

  • This topic has 2 replies, 2 voices, and was last updated 5 years ago by avatarPaul.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #88564

    Hi

    If I run a intraday strategy it has to perform with a stoploss of 1%

    Still I like to reduce that, but not with standard optimisation.

    An idea I thought of is reducing it based on time.

    But if a trade continues to a new day, it starts again using the wrong stoploss.

    What is the best way to prevent that?

    Perhaps this may not be a good idea because it creates variables, but still I’am interested to see how it works out.

     

    #88649

    What is the best way to prevent that?

    Flag the date in a variable the first time you change the stoploss, and check if it has changed when you are on market.

    #88670

    Thanks for the usefull feedback! I was wrong in my approach.

    The code below should do the job.

    reducestoploss=1 ( 0=disabeld)

     

     

     

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

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