fxDreema

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

    Asign sell price to a variable

    Questions & Answers
    2
    6
    801
    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.
    • E
      emilio last edited by

      Hello all

      I want to asign (modify) the sell price to the variable ENTRADA when a sell operation is done.

      http://prntscr.com/8fetm9

      It doesnt work, but if I change the paramenters the condition below works.

      http://prntscr.com/8feuko

      What should I change to do the first work ??

      Thank you

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

        No, no, Terminal Variables are something completely different. Put the variable (with right-click) in Value->Numeric (Text, Boolean...), not in Terminal Variables

        1 Reply Last reply Reply Quote 0
        • E
          emilio last edited by

          Sorry but I don´t understand-

          Step one.

          I want the open price of one sell trade will be stored in the proyect variable called "ENTRADA"

          http://prntscr.com/8flfdq

          F.E. It means that I create "ENTRADA" with the value 1.11111 and after sell ejecution its value shoul be 1.112345. ok ???

          Step two

          Now I can compare with an "if" the new value (1.112345 ) stored in the proyect variable "ENTRADA"

          http://prntscr.com/8fli62

          ok ??

          Anycase one simple example will be helpfull

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

            Again, Terminal Variables are NOT the same as the project's Variables. https://fxdreema.com/help/-/working%20w ... 0variables
            Do it like this: http://prntscr.com/8g92lo

            1 Reply Last reply Reply Quote 0
            • E
              emilio last edited by

              Ok now,

              my confusion was to use terminal variable instead of global variables.

              thank you

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

                Imagine what was the confusion before when the name "Global Variables" was used. And they are in fact named exactly "Global Variables", just hit F3 in MetaTrader and you will see the title of the windows that will appear. Then I decided to rename them to "Terminal Variables", but people are still confused 🙂

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

                Online Users

                S
                K
                M
                R
                D
                S
                B
                D
                K
                B
                F

                18
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors