Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is it possible to have a button that repaints all the bars?

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

    Is it possible to have a button that repaints all the bars?

    HI
    I am the author of ToggleVisibility.
    I have tried, unsuccessfully to get this type of operation to make bars coloured or uncoloured depending upon your indicator.
    My only working solution is to use

    SendKeys.SendWait("{F5}");

    Can anyone provide some pointers as I am genuinely stuck with this clunky solution?

    Edit : I should add I am using PlotBrushes to paint the bars.
    Last edited by Mindset; 05-27-2024, 08:08 AM.

    #2
    Hello Mindset,

    Thank you for your post.

    Are you calling ForceRefresh() to force the chart visuals to update during your button click event?



    I am also attaching a sample script which demonstrates changing the plot colors from transparent to another color via a button press.

    Please let us know if we can assist further.
    Attached Files

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    87 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    57 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    118 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    195 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    176 views
    0 likes
    Last Post CarlTrading  
    Working...
    X