fxDreema

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

    Constant or variable in More Settings/Adjust

    Questions & Answers
    3
    4
    849
    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.
    • P
      ptejerina last edited by

      Hi,

      Instead of using "1" inside the yellow rectangle of the image, I would like to use a constant or variable. I tried "-variablepips" but it didn't work.

      Thanks.

      https://s17.postimg.org/3ue2i3sej/2016_09_10_0937.png

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

        you need define your variable into Variables, let say: Variable1
        after this you type into adjust field: +Variable1 (not with right click, but normal with keyboard)
        but dont forget, your variable must have right value, like Variable1=0.0010 for 10pips, you can not define Variable1=10pips (I am no sure, but I think this way it is not working) ...
        or if you will have variable in pips, lets say Variable1=10, than try type into adjust field this:
        +(toDigits(Variable1,Symbol()))
        not sure if all I typed is working, I have not testing it 😄

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

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

          Well, the word "pips" is a keyword defined by me, but it only works after a numeric value. If you have "variablepips", the whole thing is considered as a variable name. After all, you may really want to name some variable like that, for example "SLpips" or "TPpips". In the same time I'm not sure whether something like (variable)pips would work. I guess no, but I can't tell for sure.

          I don't really recommend using this function toDigits(), because I may decide to change it in future. It can stay the same for years as well, I can't give any guarantee 🙂

          1 Reply Last reply Reply Quote 0
          • P
            ptejerina last edited by

            Thank you, but it didn't work. I decided to change it manually on the mq4 script.

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

            Online Users

            L
            A
            G
            N
            S
            E
            S
            N
            O

            19
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors