Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

A way to turn on/off indicator's color without calling indicators window (Ctrl+I)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    A way to turn on/off indicator's color without calling indicators window (Ctrl+I)

    I was wondering if there is an example on how to turn on/off an Indicators color without having to open the indicator's window from the chart (Ctrl+I)
    Thank you very much!!
    FVJ

    #2
    Hello efeuvejota01,

    Thank you for your post.

    You'd need a button to click to turn it on and off. Take a look at this example script - it plots several different EMA lines you can turn on and off by clicking the buttons on the chart.

    Please let us know if we may be of further assistance to you.
    Attached Files

    Comment


      #3
      Thank you Kate!!

      Comment


        #4
        In the case of a Zigzag, my guess is that the drawing objects has to be edited also.. am I correct??

        Comment


          #5
          Hello efeuvejota01,

          Thank you for your reply.

          ZigZag doesn't use drawing objects, it uses custom rendering using SharpDX to render those lines, so that one's a little tricky. But you're in luck here, because it includes a plot that it uses the color of to render the Zig Zag. You'd have to call it from an indicator and have the button update the ZigZag plot color. Take a look at the attached script - it's pretty simple.

          Please let us know if we may be of further assistance to you.
          Attached Files

          Comment


            #6
            Thank you very much!!!
            FVJ

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CaptainJack, 05-29-2026, 05:09 AM
            0 responses
            241 views
            0 likes
            Last Post CaptainJack  
            Started by CaptainJack, 05-29-2026, 12:02 AM
            0 responses
            157 views
            0 likes
            Last Post CaptainJack  
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            165 views
            1 like
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            248 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            199 views
            0 likes
            Last Post CarlTrading  
            Working...
            X