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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X