Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,611 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    9 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    19 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    6 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    22 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X