fxDreema

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

    Get Indicator's Color Property

    Questions & Answers
    2
    2
    855
    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.
    • N
      ntsikinis last edited by

      Fellow dreemaers,

      I want to use MACD Tape for part of my EA on MT5. The indicator has an absolute color property, which is either green of red. However, after viewing its source code, it does not return its color and I an not familiar enough with buffers to export it myself.
      Is it somehow possible to take the color of the MACD Tape? Below is a screenshot of the interface:

      http://www.forexmetatraderindicators.com/wp-content/uploads/2010/03/tape-macd-mt5-indicator.jpg

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

        Do you care about the color or about the signal? Obviously there are 2 MA lines and the color depends on their position. And their position can be easily compared (and this will indirectly give you the color, if you really need it), you can check if the fastest MA is lower or above the slowest one. That should be at least 2 buffers for this indicator, one for each line.

        Otherwise color or other attributes can be get from chart objects like arrows, lines and others. But I'm not sure that exactly these colorful areas are such types of objects, I think that they are something that the EA has no direct access to.

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

        Online Users

        M
        A
        F

        7
        Online

        146.8k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors