Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom moving average w/ Opacity setting

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

    Custom moving average w/ Opacity setting

    Is it possible to define "Opacity" for a moving average? If so, what's basic syntax or link to the code in the manual?

    #2
    Hello thuff,

    Yes, you can assign a brush with transparency to the plot brushes.

    Brush newBrush = Brushes.Green.Clone();
    newBrush.Opacity = .5;
    newBrush.Freeze();

    AddPlot(newBrush, "myPlot");

    Below is a public link to the help guide on working with brushes.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    569 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X