• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot Color

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

    Plot Color

    Is there a way I can query the color of a plot object from within my indicator ... I want to set the color of another object to the same color as my plat object

    #2
    Hello FCatan,

    Thank you for your note.

    From your indicator you can check either the PlotColors for the color per bar using a BarsAgo value, or the Pen of the entire plot.

    Print(PlotColors[0][0].ToString());
    Print(Plots[0].Pen.Color.ToString());

    PlotColors - http://ninjatrader.com/support/helpG...plotcolors.htm

    Plots - http://ninjatrader.com/support/helpGuides/nt7/plots.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mykro, Today, 08:42 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by franki, Yesterday, 12:52 PM
    3 responses
    23 views
    0 likes
    Last Post koganam
    by koganam
     
    Started by SuperDriveGuy, Today, 08:13 AM
    0 responses
    2 views
    0 likes
    Last Post SuperDriveGuy  
    Started by bouncetherubble, Today, 07:24 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by fiddich, Today, 08:06 AM
    1 response
    6 views
    0 likes
    Last Post fiddich
    by fiddich
     
    Working...
    X