Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

plots and changing color

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

    plots and changing color

    I am creating a volume bar indicator for myself. I was wondering if i want to change the color
    dynamically on certain parameter criteria, do i have to create more than 1 pen plots like these. I will have 5 color criteria based on my logic.

    Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Bar, "VerticalBar"));

    What I want to do is after bar close change the color of bar depending on what my algo is

    #2
    Hello ballboy11,

    Thanks for opening the thread.

    You should not need to create multiple plots to show different colors. I would advise creating an additional plot if there was more than one type of visual output you would like to observe from the same data set.

    To change the colors of a plot, it is recommended to use the PlotColors array.

    Syntax, documentation, and sample code can be found here: https://ninjatrader.com/support/help...plotcolors.htm

    We also have a sample indicator that demonstrates how to add colors as a parameter that may be of use to you when adding these parameters to your volume indicator.

    User Definable Color Inputs - http://ninjatrader.com/support/forum...ead.php?t=4977

    Please let me know if I may be of further help.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    331 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
    549 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    549 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X