fxDreema

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

    Indicator buffers issue

    Questions & Answers
    3
    6
    1364
    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.
    • J
      Jnmr1 last edited by

      I have a mql5 HMA indicator I'm trying to use in an EA, the problem I am having is the buffers don't seem to be separately defined. FXDreema picked up on 2 buffers but the Logic points tester shows that neither of the 2 turn on/off when the color changes. any help is greatly appreciated.

      ......
      colorhma.mq5
      Untitled.png

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

        read data only from buffer0, so if buffer0 < 0 than it is "color1" and when buffer0 > 0 than it is "color2"
        dont use buffer1 because it is filled with color0 before comparing and setting to right color

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

        1 Reply Last reply Reply Quote 0
        • J
          Jnmr1 last edited by

          so there is no way to distinguish between the 2 colors using buffers?

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

            I dont know this because I am not using it this way. Maybe it is possible with blocks Condition for Indicators 😄
            You can try solution with my previous post

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

            1 Reply Last reply Reply Quote 0
            • J
              Jnmr1 last edited by

              oh i see ok, thank you

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

                I don't fully understand how indicators work, in the case I don't know how and why there are 3 colors like that. If you can get any good value from the indicator, try to find a way to detect when colors change by working with buffer's values

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

                Online Users

                A
                M
                E
                A
                E
                N
                S
                K

                13
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors