fxDreema

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

    problem in input variable in custom indicator with same name

    Questions & Answers
    3
    5
    167
    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.
    • H
      hamidreza11 last edited by

      i want use custom indicator but i have problem in input variable name.
      indicator have variable with same name but i can't define variable with same name in fxdreema. i think this is not the variable real name and this is description.
      how can i fix this problem?
      Screen Shot 1403-04-29 at 14.40.20.png
      for example bullish Structure in the image
      i think in source code of this indicator define like this:
      Input int bullishStructure 1// Bullish Structure
      Input int bullishStructure2 // Bullish Structure

      S 1 Reply Last reply Reply Quote 0
      • H
        hamidreza11 last edited by

        Screen Shot 1403-04-29 at 14.45.09.png

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

          Is hard to say from a picture but I think this is an enum type, to create this at the top of the indicator insert:
          enum Bullish Structure
          {
          type 1,
          type2,
          type3,
          type etc,
          };
          Get the type words from the indicator inputs, add exactly how they are, and for type add enum

          Learn fxDreema Without the Wait!

          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

          Don’t miss out

          Click here➡️ https://mybook.to/fxDreema to get your copy today!

          Enjoy! 😊

          H 1 Reply Last reply Reply Quote 0
          • H
            hamidreza11 @jstap last edited by

            @jstap
            thanks
            you are true but my question is another thing.
            in the inputs in picture we have two input with same name( Bullish Structure).
            in source code this two input has another name because in mql5 we can't have two input with same name. my question is how can i find real name of input names?

            1 Reply Last reply Reply Quote 0
            • S
              sktsec @hamidreza11 last edited by

              @hamidreza11
              Variable naming in indicators has nothing to do with that in fxdreema

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

              Online Users

              X
              K
              F
              A

              18
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors