fxDreema

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

    ATR Stop Loss - Add ATR multiple above or below last two candles highs or lows?

    Questions & Answers
    2
    3
    160
    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.
    • D
      DV4 last edited by

      Hi All,

      I'm new to fxdreema and having an issue with coding a stop loss that work how I want it to....

      I'm aware you can set stop losses using indicators but I cannot get the stop loss to work as intended

      For buys I'm looking to set a stop loss that is an ATR multiple (i.e. ATR x 1.0x) below the lowest low of the last two candles (candles 1-2), and reverse for sell stops

      Any ideas on how I can do this in FXdreema?

      my initial thoughts I need to create a separate indicator for the 2 day highs or lows and then add ATRs to that?

      Any help would be appreciated!

      Cheers,

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

        Try adding this in adjust for buys, -iATR(NULL,0,14,0);
        this for sells +iATR(NULL,0,14,0);
        to multiply add *2 or something in between ) and ;
        14 is the ATR period you want to use, NULL is for current symbol. 0 is the current time frame, put this in the stop loss box that's using the level you want to adjust

        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! 😊

        1 Reply Last reply Reply Quote 1
        • D
          DV4 last edited by

          Thanks for the response, I'm grateful
          My challenge I've found is that I need to apply the ATR stop loss above or below the last two candles high or low - the ATR is then multiplied and extends the stop beyond this level
          I'll give your suggestion a try although I think the stop should be using the last 2 candle high and low and then applying the formula you mention

          What I'm finding is that I can modify them but the stop determines the position size and it is not consistent at present as it may be initially 1% but extends out to 4% risk which then randomly adds weight to every outcome

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

          Online Users

          R
          K
          K
          T
          A

          11
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors