fxDreema

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

    custom indicator parameter (field) problem

    Questions & Answers
    2
    2
    102
    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.
    • O
      oskars last edited by

      hello
      Is anyone know how tu add such a type of parmeter to custom indicator which have a few option to choose
      Screenshot_1.png

      like on screen, "Mode" have options "Historical" and "Current", but
      "Style" have "Colored" and "Monochrome"

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

        They are enums add this to the enumerations at the top of indicator:

        enum Mode
        {
        Historical,
        Current
        };

        enum Style
        {
        Colored,
        Monochrome
        };

        Add Mode & Style as the type and this should make it work

        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! 😊

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

        Online Users

        C
        E
        M
        F
        T
        M
        P

        22
        Online

        146.6k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors