fxDreema

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

    Sorry to ask you Again and Again. How to get the buy/Sell Price value from Modify variable Block. i dont know how to store the variable. Can you share practical Example. Thanks

    Questions & Answers
    3
    7
    3560
    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.
    • A
      amri19rosz last edited by

      Sorry to ask you Again and Again. How to get the buy/Sell Price value from Modify variable Block. i dont know how to store the variable. Can you share practical Example. Thanks

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

        What do you mean by Buy/Sell price value?

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

          When I want to store the price wether in the moment of opening a trade or in any other moment I use the formula block, but I guess you can use the modify variables block also. Just select "Market properties"/"Ask, bid, mid" and put it in the variable (in the modify variables block is the space to the right top where it says "select variable (right click)").

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

            If we are talking for the Open Price, it is probably better to get that value from the trade itself 🙂 Because if something happens and the EA is restarted, variables could be lost.

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

              Yes, I agree that in that case it is better to take the price from the trade itself but since he said he didn't know how to store the value in the variable it is better to settle that too now that we are on it (for he might need to store other prices later different from the open/close price). I particualarly use variables to store what would be the "break even" price from a group of trades where some may be closed while others remain opened so it's messy, but I experienced what you mentioned, having to reopen MT4 losing the data stored in the variables.

              1 Reply Last reply Reply Quote 0
              • A
                amri19rosz last edited by

                May be.. i dont know how to store the value of buy or sell opening price value.. just give me one example how to store the buy or sell opening price value. also what is the use of modify variable. give me one example. thank you so much

                Andermaiden2nd 1 Reply Last reply Reply Quote 0
                • Andermaiden2nd
                  Andermaiden2nd @amri19rosz last edited by

                  @amri19rosz 0_1505499051489_modifyvariables_openprice.jpg

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

                  Online Users

                  B
                  T
                  P
                  C
                  S
                  T
                  I
                  B
                  A

                  22
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors