fxDreema

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

    Storing lowest/highest price on Variables

    Questions & Answers
    2
    11
    401
    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.
    • U
      Uriel 0 last edited by

      Hi the logic that I want to get is:
      1.-Candle conditions is met, then
      2.- Candle lowest (for longs, highest for shorts) is stored on variables (and it must not be deleted until pending order is opened or expired...
      3.-How to save those having more than 1 pending order opened?

      The problem: Every time that another pending order is opened (at same time than other is opened), the variable reset and get the data from the new price (lowest/highest)
      524e9d75-1492-40df-9049-b11363490643-image.png
      98a66463-f601-46fb-883f-fb44c5dbd490-image.png

      EA link: https://fxdreema.com/shared/tZKjN1kAb

      U 1 Reply Last reply Reply Quote 0
      • U
        Uriel 0 @Uriel 0 last edited by

        @Uriel-0 Sorry, I'm trying to put Pinned but is not getting. Blocks 40 is for the storing to longs, 112 is for storing of Shorts. 40 block is for the block condition 156, that if price is lower than the variable level, then delete long pending order. Viceversa for 112 and 174 blocks.

        1 Reply Last reply Reply Quote 0
        • U
          Uriel 0 last edited by

          Hi @jstap , do you have any another idea of how to save the lowest/highest (1) price every time that a new pending order is opened? Just to cancel it if price break the variable. Please:)

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

            Use candle 1, not highest/lowest price, on trade tab will give you the price once a trade has opened.

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click here➡️ https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

            U 1 Reply Last reply Reply Quote 0
            • U
              Uriel 0 @jstap last edited by

              @jstap Nice. But would it works if I store at same time some candles because new pending orders are opened? I mean, it would not be changed every time a new pending order is opened? I Will test it also

              1 Reply Last reply Reply Quote 0
              • U
                Uriel 0 last edited by

                Hi @roar , could you help me with this? please

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

                  You would have to use logic to decide what and when to store where.

                  Learn fxDreema Without the Wait!

                  My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                  The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                  Don’t miss out

                  Click here➡️ https://mybook.to/fxDreema to get your copy today!

                  Enjoy! 😊

                  U 1 Reply Last reply Reply Quote 0
                  • U
                    Uriel 0 @jstap last edited by

                    @jstap Sure, as I put before, I use the variables to put highest/lowest level of candle (1) just when a pending order is put. The problem is when there are 2 or more Types (the same e.g. 2 buy pending o) because the variable be changed by the Candle 1 of the new pending order. What I want is save the highest/lowest (this is for delete the pending if price crosses the level) and that it don't be affected if is open or more, then those have save its own level

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

                      You can use (for example) check trade count, or for each trade, to limit actions to the trades running.

                      Learn fxDreema Without the Wait!

                      My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                      The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                      Don’t miss out

                      Click here➡️ https://mybook.to/fxDreema to get your copy today!

                      Enjoy! 😊

                      U 1 Reply Last reply Reply Quote 0
                      • U
                        Uriel 0 @jstap last edited by

                        @jstap sure, I have put it (As the link above). But the idea is works with more than 1 pending order of the same type at same time without be affected for the new variable data

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

                          Once a pending order becomes a trade it is then usable as a number, you can save the ticket number, then use this to reference the trade.

                          Learn fxDreema Without the Wait!

                          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                          Don’t miss out

                          Click here➡️ https://mybook.to/fxDreema to get your copy today!

                          Enjoy! 😊

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

                          Online Users

                          M
                          R
                          F

                          15
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors