fxDreema

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

    Question regarding the "adjust" field

    Questions & Answers
    3
    9
    3897
    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
      eranger last edited by

      In the adjust field inside the Condition block is it possible to enter "*(-1)-30"?

      Thank You

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

        yes you can this, without quotes ...

        Between trading and gambling is a very small gap, be careful.

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

          Thanks Miro,
          Do you know if l can use a constant in the adjust field instead of a number like: +Profit/-Profit
          Instead of +30/-30

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

            yes you can ... you can use some words like pips to make this
            +10pips
            this adds for reference value +10pips, which is for EURUSD +0.0010 or for GBPJPY +0.1
            ... I dont know all this words, only this pips, maybe there are more ...
            you can use some functions as well .... like *(NormalizeDouble(yourVariable,0)) ... or *(MathAbs(yourVariable)) ....

            do some research and try most of what you are asking, it would be probably faster reply for you 🙂

            Between trading and gambling is a very small gap, be careful.

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

              Thanks Miro! I will look into it...

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

                If something like "+10pips" is used, note that this "pips" keyword works because of fxDreema, it's not something from MQL4/5. This keyword is actually replaced with some MQL4/5 code that makes it possible to convert 10 to something like 0.0010. In this code the symbol parameter is used, that symbol that is used just above the Adjust field. So the end result might be 0.010, depending on the symbol that is used.

                There is another keyword "%", so you can do "*10%" for example.

                "+10 pips" will not work, because in this situation the word "pips" looks like a valid variable, while "+10pips" is normally wrong MQL4/5 code.

                Everything else in "Adjust" can be MQL4/5 code.

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

                  Thanks,
                  So am I right... in order to use "+10pips" in the Adjust field l must specify the symbol first?

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

                    you dont need specify symbol, leave symbol free, it is loaded automatically from chart info (from chart where EA is located)

                    Between trading and gambling is a very small gap, be careful.

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

                      By default the symbol (Market) is set to empty in all blocks - this means the current symbol, the symbol of the chart where the EA is placed. If you write something specific, only then some other symbol is used in that particular block only

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

                      Online Users

                      R
                      A
                      E

                      8
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors