fxDreema

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

    Trail Stoploss behind previous candle low/high

    Questions & Answers
    2
    3
    1347
    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.
    • F
      Flip last edited by

      Hello Fxdreema,

      I am trying to accomplish the following situation, which is only partly working for the moment.

      For a buy order:
      If (candle 1 low - a pip value) is above current Stoploss than move Stoploss to (candle 1 low - a pip value)

      My problem at the moment is: the check where the current Stoploss is, as it is moving the stoploss to each previous candle low for new stoploss. So the check is not being done correctly.

      I have use a Formula block to store the value: (candle 1 low - a pip value). I also used a Condition to check if the Stoploss (in loop) is at correct level, but here I might have gone wrong.

      Do you know how I should do this?

      0_1481036047008_upload-5eeb4246-c556-437c-9d58-785b1e383536

      1 Reply Last reply Reply Quote 0
      • F
        Flip last edited by Flip

        I will simplify my question as it may have been a bit confusing I realize afterwards. I tried many things but it still won't work.

        Can you tell me what blocks to use for this in order for it to work correctly?

        For a buy trade:

        1. (Low of candle 1) - 2 pips > the position of current Stoploss level.
        2. If rule 1 is in place than new Stoploss = (Low of candle 1) - 2 pips .

        This is what I have at the moment:
        https://fxdreema.com/shared/djnbd6kvc

        Can you please help me.

        Thanks!

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

          You tried the Trailing stop block? There are many options in it.

          I would use the "Adjust" field, you can write things like +2pips in it. No need for "Formula" blocks and variables for such thing.

          If this EA should work with manually created trades, better set this to 0: http://prntscr.com/dgm3pd

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

          Online Users

          E

          8
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors