fxDreema

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

    Can't get user defined inputs to work!

    Questions & Answers
    2
    4
    350
    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.
    • S
      spyderman last edited by

      I'm trying to write a trade management EA to close open trades at cross of stochastic main/signal line. Input box pops up when EA is initiated but the inputs do not seem to change the function. The current chart seems to override inputs.

      Thanks in advance for any help

      1_1640111787685_Stochastic close mtf.mq4 0_1640111787684_Stochastic close mtf.ex4

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

        @spyderman Do you mean the timeframe in the constants?

        0_1640135428437_042c2cd5-a18c-4aa1-a95b-b37d1f1fee33-image.png

        If so on MT4 the easiest way is to make the type int, and use the minutes as the value, so 4h is 240. Other wise you can use ENUM_TIMEFRAMES as the type, PERIOD_CURRENT etc as the value.

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

        S 1 Reply Last reply Reply Quote 0
        • S
          spyderman @jstap last edited by

          @jstap Yes that was one of them. I'll try that. The stochastic settings also didn't seem to modify.

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

            @spyderman int is the type I would use for these.

            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 0
            • 1 / 1
            • First post
              Last post

            Online Users

            D
            B

            19
            Online

            146.9k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors