fxDreema

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

    I want to create a variable, but I can't find a possible way to do that

    Questions & Answers
    2
    9
    726
    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.
    • khalids222
      khalids222 last edited by

      I want to create a variable, but I can't find a possible way to do that

      X>1= R1
      X<1=R2

      How do I put the name or value of a variable to use?

      S 1 Reply Last reply Reply Quote 0
      • S
        seb 0 @khalids222 last edited by seb 0

        @khalids222
        To create a variable you need to do this :0_1600976609169_Capture d’écran (231).png
        https://fxdreema.com/shared/qxFbyE1td
        In the 3d step write the type of variable, its name, and the value it will take by default. Once created you can use this variable to load the value of something, here the price of candle 1. Once the first block passes the variable isn't equal to 0 anymore but to the price of the market. And you can use it on the next blocks.

        khalids222 1 Reply Last reply Reply Quote 0
        • khalids222
          khalids222 @seb 0 last edited by

          @seb-0 Thank you, but I did not mean this, I will explain what is required in a better way
          I want to create a variable that contains negative values and a variable that contains positive values
          I do not want to use it to buy and sell, but to close deals
          https://fxdreema.com/shared/gRKHclJXc
          0_1600979440317_333333333333.jpg

          I want a value for each of these conditions so that I can use it again in comparison with profits
          Is the picture clear؟

          S 1 Reply Last reply Reply Quote 0
          • S
            seb 0 @khalids222 last edited by

            @khalids222
            From what i got,
            if : BUYUNDERZERO < 0 => BUYUNDERZERO = R1
            if : BUYABOVEZERO > 0 => BUYABOVEZERO = R2
            Is that it ?

            khalids222 1 Reply Last reply Reply Quote 0
            • khalids222
              khalids222 @seb 0 last edited by

              @seb-0
              if : BUYUNDERZERO < 0 = R1
              if : BUYABOVEZERO > 0 = R2

              S 1 Reply Last reply Reply Quote 0
              • S
                seb 0 @khalids222 last edited by

                @khalids222
                By what you write, you are telling that R1 and R2 are both equals to 0, doesn't make lot of sense to me.

                khalids222 1 Reply Last reply Reply Quote 0
                • khalids222
                  khalids222 @seb 0 last edited by

                  @seb-0
                  I am Sorry, I did not understand your question well at the beginning, yes, the rule is correct
                  if : BUYUNDERZERO < 0 => BUYUNDERZERO = R1
                  if : BUYABOVEZERO > 0 => BUYABOVEZERO = R2

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    seb 0 @khalids222 last edited by

                    @khalids222
                    Hum like that then ? https://fxdreema.com/shared/wocIhsRE

                    khalids222 1 Reply Last reply Reply Quote 0
                    • khalids222
                      khalids222 @seb 0 last edited by

                      @seb-0
                      Thank you so much, that's exactly what I wanted.

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

                      Online Users

                      M
                      M
                      E
                      L
                      S
                      M
                      T
                      A
                      R

                      14
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors