fxDreema

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

    Get the current color

    Questions & Answers
    1
    1
    695
    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.
    • T
      Tjommas last edited by

      Hello,
      I'm trying to make a simple script that changes the chart (background, foreground, ...) colors. This way I can save presets of colors, instead of saving a full Template in MT4 which ovewrite everything.
      I found how I can do that, but each time I use the script again it resets the color selection boxes, this is normal at the moment.

      I want the color box to show the current color of elements. Then I need to define my constants parameters to the current color of each of them.
      But I can't figure out to do that. I tried to put 'CHART_COLOR_BACKGROUND' (found in list of constant on mql5 website) in the value of the constant of the background color. No error during compilation but it doesnt show the current color, it shows a wrong color code instead.
      Is there a way to achieve that?

      Also, next step will be to try to apply colors on multiple charts at the same time (all, same pair, same ea)... but I still don't know how I will do that, any idea?

      thx in advance

      Tom

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

      Online Users

      M
      E
      L
      S

      17
      Online

      147.0k
      Users

      22.4k
      Topics

      122.6k
      Posts

      Powered by NodeBB Forums | Contributors