fxDreema

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

    Trailing stop after sometime of opening trade

    Questions & Answers
    2
    4
    1610
    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.
    • vish
      vish last edited by

      I want to make a trailing stop after 5 minutes of opening trades. Will this achieve it? or is there a more efficient way to achieve this?

      https://fxdreema.com/shared/OdIGXYQ6e

      alt text

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

        Instead of the trailing stop block put the pink "close" block. But in fact in the Buy/Sell blocks there are expiration settings, so you won't need the right part

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

          @fxdreema said in Trailing stop after sometime of opening trade:

          Instead of the trailing stop block put the pink "close" block. But in fact in the Buy/Sell blocks there are expiration settings, so you won't need the right part

          I need trailing stop. But pink "close" block will just close the trade?? Wont the current design activate trailing stop after the specified time (5 mins) on every tick?

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

            The thing is that "Trailing stop" doesn't care about the blocks above it and would work on all trades it can see. Let's say you have 1 buy and 1 sell trade, the buy trade is 20 minutes old and the sell trade is 2 minutes old. "For each Trade" loads the sell trade first, but it is too young and doesn't pass "check age". Then "For each Trade" goes to the buy trade, which is old enough and eventually the "Trailing stop" is reached. But "Trailing stop" doesn't care, as I mentioned, and would move the stop of the buy trade and/or the sell trade if it needs to.

            To separate trades, you can try this. After "check age" put "check type". And if the type is Buy - go to one Trailing stop which only works for buys (in the filter settings). Or, if the type is Sell go to another Trailing stop that works only for sells.

            Or, here is an example for trailing stop made with pink blocks - https://fxdreema.com/demo/mt4-loop-trailing-stop. After "check age" you can put those "pips away" and "modify stops" blocks. This will work, because all these pink blocks are working on individual trades loaded by "For each Trade'. While the blue "Trailing stop" has its own "for each" loop inside and works over all trades by itself.

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

            Online Users

            S
            O
            K
            M
            M
            C

            14
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors