fxDreema

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

    can I Add Save Any Number In Memory EA ?

    Questions & Answers
    4
    10
    1805
    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.
    • M
      Moon last edited by Moon

      hello
      if i say if candle cross simple move to up save price this point this candle in memory Under name A
      and if candles will be next cross simple move to up again save price this point this candle again in memory under name B

      this mean price A available if i want use it and too price B available if i want use it.

      Can i do that By FXdreema ? And how .... Please Show Example

      thank you

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

        Hi!

        This simple example should give the basic idea:
        https://fxdreema.com/shared/EraTbqmde
        0_1554995992028_b6c68dad-9dfa-440a-9863-c1a17bd32bed-image.png

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        M 1 Reply Last reply Reply Quote 0
        • M
          Moon @roar last edited by

          @roar
          if i want save multi points price how i can do that ?
          your projects about save one memory and create order if candle cross this memory
          i dont want that ...

          i want if candle cross simple move up now - save this point in memory A
          and next this if candle again cross simple move up again - save this point in memory B
          and next if happen candle again cross simple move up again - save this point in memory C

          and all this memory A and B And C available if i want use this points saved it in my EA .

          thank you

          1 Reply Last reply Reply Quote 0
          • M
            Moon last edited by

            ????????

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

              As roar posted above, you can store values in these Variables. Variables are exactly that - pointers to certain address in the memory 🙂

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

                @fxdreema look
                by example roar
                1 / if candle past 1 cross simple move past 1 up = memoryA
                2 / if next candle past 1 cross simple move past 1 up again = memoryB
                now are memoryA different memoryB ?? Answer ,,,,,, Nooooooo
                will be the same because condition happen the same until if happen in position different

                i want if 1 happen save data
                if 2 happen save new data happen and data 1 also saved ( different position )

                you understand me

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

                  you can do this if the condition is the same, but you want some older data saved
                  0_1555595178612_fd284b9f-8bec-4804-8328-2524bab89f8e-image.png

                  if there are 2 different conditions and you want 2 different values then just make a condition block for each and a modify variable block for each.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    Moon @Spuzy last edited by

                    @spuzy i am sorry how ?
                    you can give me example for 3 points different save it in the same condition ?
                    thank you

                    Spuzy 1 Reply Last reply Reply Quote 0
                    • Spuzy
                      Spuzy @Moon last edited by

                      @moon I did, is the thing.

                      that picture shows it, to have 3 different values saved just make 3 variables and do it in a different order than the picture

                      Have Var_C = Var_B
                      Var_B = Var_A
                      Var_A = your value you want to save

                      so when the condition is true first we will save the old B value into C, then we will save the old A value into B and then we will change A into the new value.

                      meaning you have 3 values saved from the same condition in order.

                      so Var_C will be the value from 3 conditions ago. B from 2 conditions ago and A from the last time the condition occurred.

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

                        @moon said in can I Add Save Any Number In Memory EA ?:

                        you understand me

                        I don't understand. I'm not sure if you understand how variables work. Or you understand them, but you don't know how to do something with them. Here I post a video that I like, that explains variables in a good way:

                        https://www.youtube.com/watch?v=aeoGGabJhAQ

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

                        Online Users

                        G
                        L
                        K
                        H

                        23
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors