fxDreema

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

    Use Adjust field with Constant or Variables

    Questions & Answers
    3
    5
    2833
    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.
    • D
      David197 last edited by

      Re: Question about 'Adjust'

      Hello,

      I read the post about this topic but I didn't reach any solution.

      I want to use the field adjust but with a variable or even a constant.

      I tried to define the variable/constant (as double) and then write in the adjust field:

      +VarName pips
      VarName pips
      +VarName@pips
      +(VarName)@pips

      +VarName pips (defined as string)
      +Varmame

      Some compilation errors appears every time or don't make any change in the tests at all.

      How can I solve it?

      Have I to use toDigits() function ??

      Thank you,
      David

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

        I tried the very first variant +VarName pips and it works for me. It turns the value of 10 to 0.001 for EURUSD

        D 1 Reply Last reply Reply Quote 0
        • D
          David197 last edited by David197

          Hello,

          When I use +ConstantName pips i get compilation errors.

          Compilation errors
          'pips' - undeclared identifier
          'pips' - some operator expected

          Screenshot (banda_arriba is the constant):
          0_1506325796322_upload-c4f74e70-210f-49e0-aeed-39b70ff72b39

          When I use +VariableName pips i get compilation errors, as well:

          Compilation errors
          'ancho' - undeclared identifier
          'pips' - undeclared identifier
          'pips' - some operator expected

          Screenshot (ancho is the variable):
          0_1506326082105_upload-96acd174-badd-4510-a177-43f938572da4

          I don't know what I'm doing wrong...

          Thank you in advance for your help.

          David

          kelly.morgan 1 Reply Last reply Reply Quote 0
          • D
            David197 @fxDreema last edited by

            @fxDreema
            Hello,
            I tested with +VarName pips and it didn't work...

            should it work either with variables or constants?

            thank you,
            David

            1 Reply Last reply Reply Quote 0
            • kelly.morgan
              kelly.morgan @David197 last edited by

              @david197

              I had the same problem. What you will have to do in the adjust box is put +ConstantName pips just like you did with +banda_arriba pips, but in your constants value box, only put a value such as 15. If I were to guess, you are putting pips in the value box after your number. I hope this helps 🙂

              0_1511705779713_07954f71-e35f-4cc6-8b11-68b5f787956e-image.png

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

              Online Users

              A
              F

              6
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors