fxDreema

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

    Stop Loss Calculation Not Returning Correct Value

    Questions & Answers
    2
    3
    181
    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.
    • M
      Moonkay last edited by

      Hi All,

      I've been working on the below implementing a trailing stop loss based on the previous candle and an ATR Multiplication.

      Cell 7 stores the previous SL and saves it to SL_2 variable. Cell 9 reruns the stop loss calculation and saves to SL_1 variable. Cell 10 checks if SL_1 is a higher value than SL_2, and then updates stop loss to SL_1 in cell 11 if SL_1 is now higher than SL_2.

      Link to report: link

      It looks like it initially runs correctly, then updates to the incorrect figure shortly after. Image below is for my vps running against NSQ, 13940 SL is correct, 1.2 is not.

      0_1619712951207_Screenshot 2021-04-29 at 17.14.10.png

      Could someone please direct me to what i'm doing wrong here? I've seen mention in previous threads that i should use pips instead of price level, but backtesting seemed to be returning a different returns, and the fact its initially returning the correct value makes me think it's something else.

      Thanks

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

        Hi All,

        Please disregard, i'm fairly confident the issue is ATR being a price fraction rather than a price level, and ive been using price level to do my calculations

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

          @moonkay I recommend to use a 'For each trade' block on top of the second block tree. Pink blocks work better when connected below one of them.

          (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.

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

          Online Users

          C

          6
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors