fxDreema

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

    Stop Loss ATR based does not work

    Questions & Answers
    4
    5
    1408
    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.
    • T
      traderline last edited by

      Good morning, I am creating an ea, and trying to establish the SL, based on ATR * x, before writing, I have reviewed all the posts related to this question, and I don't get it to work.

      The first option I've tried is simple ATR * 2

      0_1582637353653_atrx2.jpg

      The second option I've tried is (* cdSLAtrMultiplicator * MathPow (10, _Digits-1)

      0_1582637381729_atrstop.JPG

      I am not able to make it work properly, and I understand that this is simple. For some reason I am not able to function properly.

      The entry is set to start as "eleven per bar" I don't know if this affects or not, or what the problem is. I appreciate any input in this regard.

      Thank you.

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @traderline last edited by trader.philipps

        @traderline Did you create the constant cdSLAtrMultiplicator (double) and specify a value other than 0 in the 2nd example?
        Furthermore if you use * Mathpow(10,_Digits-1) it calculates Pips. So Custom Price Level is wrong. Use Custom (Pips) instead!

        I like to share my knowledge, but expect the others to contribute as well.

        T 1 Reply Last reply Reply Quote 0
        • T
          traderline @trader.philipps last edited by traderline

          @trader-philipps said in Stop Loss ATR based does not work:

          ¡Use Custom (Pips) en su lugar!

          Yes, create the constant (double) for "multiplier", and I understand that the MathPow variable (10, Digits - 1) calculates in pips. Since I would like to calculate in pips, and in this module, it does not allow to use "custom level" and "custom pips" at the same time. I have tried in many ways, with custom indicators, "atr pips" that convert points into pips, and none works.

          0_1582656985752_indipers.JPG

          However, the first example should work, and it does not work, as I said, I do not understand the reason, but it should be simple.

          SammyLegacy1 L 2 Replies Last reply Reply Quote 0
          • SammyLegacy1
            SammyLegacy1 @traderline last edited by

            @traderline just change the stop loss mode from price level to price fraction, it should work fine, I learnt that recently

            1 Reply Last reply Reply Quote 0
            • L
              len 1 @traderline last edited by

              @traderline How do you get these settings. Mine does not show that. My platform shows the poster's screen

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

              Online Users

              M
              T
              E
              A
              P
              V
              R
              M
              G
              H
              J

              22
              Online

              146.6k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors