fxDreema

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

    Need help for price from last candle

    Questions & Answers
    2
    11
    370
    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.
    • J
      jay_619 last edited by jay_619

      Hello. I would like to take the low price of the previous candle (Candle ID 2) at the opening of the BUY trade and close my trade if the price reaches this price. I don't want a trailing stop, I want a fixed price which is the low of the previous candle at the OPENING of the trade. the technique I used works in trailing stop and I don't want that.

      The blocks in the area
      https://fxdreema.com/shared/UVjwDhnkb

      J 2 Replies Last reply Reply Quote 0
      • J
        jay_619 @jay_619 last edited by jay_619

        that's what I want
        0_1649196356761_111.PNG

        1 Reply Last reply Reply Quote 0
        • J
          jay_619 @jay_619 last edited by

          This works in trailing stop and that's not what I want
          0_1649196812139_222.PNG

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

            This might be too simple, but why not just use a stop loss based on the low of the last candles and just enter ID 2 as measurement? Like this:

            0_1649227097489_26036d08-4b42-432a-9057-80651304f2ab-Unbenannt.PNG

            J 1 Reply Last reply Reply Quote 0
            • J
              jay_619 @SirLuk last edited by

              @sirluk your technique works!!! thank you!, but I would like to put it as an activatable option. i will test with condition block

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

                That's no problem with this option as well.

                J 1 Reply Last reply Reply Quote 0
                • J
                  jay_619 @SirLuk last edited by jay_619

                  @sirluk this is not working. do you know what is the problem ? it still works as a trailing stop and i dont want that
                  0_1649266678864_11.PNG

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

                    Yes. The values of this condition block always changes...you will not get a fixed stop loss like this because everytime you have a new bar, ID 1 becomes ID 2 and the former ID 0 becomes ID 1. You should use the method I suggested. You can still activated. Explain what you mean about activate it?

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jay_619 @SirLuk last edited by jay_619

                      @sirluk aahhh if it's the only option to have a fixed price, then I have no choice ahah thx ! 🙂 and i talk about having a true false option

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

                        There are always other options. Why don't you post a shared version of your EA, then it's easier to see.

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          jay_619 @SirLuk last edited by

                          @sirluk write to me in private

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

                          Online Users

                          J
                          H
                          E

                          11
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors