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 cmoran13, 04-16-2026, 01:02 PM
            0 responses
            51 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            31 views
            0 likes
            Last Post PaulMohn  
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            165 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            100 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            160 views
            2 likes
            Last Post CaptainJack  
            Working...
            X