fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Big bug with trailing stop - TS moving backwards

    Bug Reports
    3
    5
    367
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Julianrob
      Julianrob last edited by Julianrob

      Hi,

      There seems to be a big issue with trailing stop glitches. Not just when it's used with ATR but also when it's used with fixed pips. And it took me 40 hours of painstaking testing to find when the issue occurs. On backtest sometimes it will go backwards, (TS should never go backwards), jitter up and down a bit, I've even seen it flash right back to initial stoploss quickly, then back to profit. (I tried to attach short video but it's not accepted here).

      Trailing-Stop-Bug.jpg
      Here is a snapshot of my trailing stop setting. There are no other conditions that are connected with this trailing stop in my code, and no I don't have other trailing stops connected to it, so nothing else should affect it. The ATR multiplier variable 'ts_atr_mult' is set to 1.0 in this instance and I've had nothing but troubles with the stop jittering up and down once the price gets close to TP. But strange enough, when I change the ATR multiplier to 2, the trailing stop appears to work without glitches.
      Now here's what I found really helped the issue:
      When I open new trades, the initial stoploss is set to ATR 20 X 3, and this is when the issue is worst. I discovered by accident if I changed the initial stoploss to ATR 20 X 2, it seems the problem goes away. Or at least in most instances that I'm aware of. It seems that there's some kind of conflict between the initial set stoploss and the trailing stop. It's particularly troublesome on backtesting as it slows down a lot while processing a lot more unnecessary and invalid stop moves. Please can this issue be fixed?

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        You are connecting a loop block (trailing stop) below another loop block (for each trade). That's why it's not working. They need to be in separate block trees.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        Julianrob 1 Reply Last reply Reply Quote 0
        • jstap
          jstap last edited by

          Put under only bool, if it is still moving backwards, add a condition that checks SL position, compared to new ATR stop position.

          Learn fxDreema Without the Wait!

          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

          Don’t miss out

          Click here➡️ https://mybook.to/fxDreema to get your copy today!

          Enjoy! 😊

          Julianrob 1 Reply Last reply Reply Quote 0
          • Julianrob
            Julianrob @l'andorrà last edited by

            @l-andorrà Thankyou!

            1 Reply Last reply Reply Quote 0
            • Julianrob
              Julianrob @jstap last edited by

              @jstap Perfect, thanks for the advice!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Online Users

              T
              M
              P
              S
              A
              E

              24
              Online

              146.6k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors