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 hazylizard, Today, 08:38 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by geddyisodin, Today, 05:20 AM
    2 responses
    17 views
    0 likes
    Last Post geddyisodin  
    Started by Max238, Today, 01:28 AM
    5 responses
    45 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by giulyko00, Yesterday, 12:03 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by habeebft, Today, 07:27 AM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Working...
    X