fxDreema

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

    Type of constant

    Questions & Answers
    2
    3
    1658
    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.
    • V
      varso last edited by

      Hi, Mr
      Im back here after some break. I have question. I want use input constant to adjust value. Its plus pips value

      when i wrote text in type of constant it give me error in compilate EA. What is correct format?
      Thank youso much
      0_1497477403982_question.jpg

      Problem

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

        string instead of Text, but what you are trying to do is not actually possible. Variable (or constant) is something that has a name (Delta_plus for example) and behind that name there is a value. That value can a number, a string or even an array, but in all cases the variable is only a reference to that value. You are trying to assign mathematical operation to a variable, which is not possible in any programming language that I know.

        Instead, just make int or double constant with value of 1 and in the Adjust field write something like + Delta_plus pips

        1 Reply Last reply Reply Quote 0
        • V
          varso last edited by

          It works now. Thank you very much.

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

          Online Users

          S
          A
          R
          B
          N
          M
          A
          T
          V
          M
          A
          A
          R
          S

          27
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors