fxDreema

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

    Trailing Stop Help

    Questions & Answers
    2
    8
    901
    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.
    • S
      sdoppke last edited by

      Hi there I am trying to use the trailing stop block (image off settings attached). I am trying to have it trigger at the previous candle high x 1.5 and start at the previous candle high x 1.4 with 10 pip steps. I am using the 2 formula blocks (blocks 18 and 19) to calculate the trigger and start points.

      However it does not seem to be working.

      Would you be able see where I might be going wrong on the settings based on this picture?

      Thanks for any help

      SD

      ......
      FxD_1.png

      1 Reply Last reply Reply Quote 0
      • S
        sdoppke last edited by

        I also have tried this setup. I have opened the formula boxes for all to see my setup for any input. This all seems intuitive.

        Could the problem be the formula blocks are not attached to anything?

        Thanks a ton for any help.

        SD

        ......
        FxD_2.png

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

          One of the important things is that blocks that are not connected to other blocks will not be included to the final project file. You can just connect those two Formula blocks. But they should be used before this Trailing stop, so maybe is better to put them before it.

          I don't like one of those Formula blocks. You are using this (on trade)... stuff, but this is not supposed to be used under "on Tick" at all. And you probably don't need it anyway.

          1 Reply Last reply Reply Quote 0
          • S
            sdoppke last edited by

            Thank you! Very helpful.

            SD

            1 Reply Last reply Reply Quote 0
            • S
              sdoppke last edited by

              I'm sorry I spoke to soon. I am still struggling. It might be quicker to ask if someone could show how to do this one and I will learn from that.

              I am trying to set a trailing stop that will start (trigger) when the price is 1.5 times the previous (previous means the previous candle from when the order was placed) size.

              The trailing stop will be place at 1.4 times the previous candle size (just below the trigger point) with a 10 pip step.

              Also if it helps for calculating the trailing stop. I have the SL at the low/high (depending buy or sell order) of previous candle and the TP at 3 times the previous candle size (all of the previous candle from when the order was placed).

              Thank you very much in advance for any help.

              SD

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

                Trailing stop block works in the current moment. Also, Candle[1] means the previous candle, but that candle changes when a new one appears, so Candle[1] is not always the same thing.

                You want to get some value from the previous candle in the moment when a trade is created and use that value in future. If you always have 1 trade at a time, then the easiest is to use some variable and store that value in it when a new trade is created. Then, while the trade is alive, use that variable where it's needed.

                1 Reply Last reply Reply Quote 0
                • S
                  sdoppke last edited by

                  Thanks again, that will get me started. Do you have any examples I can refer to rather than hitting you up with frequent questions? 🙂

                  I see you man the entire forum by yourself and don't want to be a bother.

                  SD

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

                    If you want to define, modify and check some variable, there are many examples here and there. The other thing - to control each trade by itself... well, things are going to be creative here.

                    I was thinking about this problem and I still don't know the best answer. The problem comes from the fact that we can't store much custom information for trades and orders, and this information to be available from everywhere. Let's say that we can use the "Comment" attribute to store some information, but the problem here is that the comment is limited to something like 32 symbols. We can store information in variables, but it's lost when the EA is removed. We can store information in files, but then how will EAs fight for it, and file access is generally slow. We can store information in graphical objects, but such an object exists in a single chart only.

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

                    Online Users

                    M
                    X
                    A

                    12
                    Online

                    146.8k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors