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

Color line, histogram different color when above certain value

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

    Color line, histogram different color when above certain value

    Is there an example of code where if lets say ADX is above 25, the color of the line will be a different color? Or region shaded?

    #2
    Hello Boonfly8,

    We have a simple crossover example using the SMA which shows coloring a plot here: https://ninjatrader.com/support/help...ub=PlotBrushes

    The SMA could be replaced with another indicator such as the ADX. You could additionally see the following link for a Greater than or Equal to instead of a cross condition: https://ninjatrader.com/support/help...htsub=barbrush

    If you are using an indicator that has a Plot, you can use PlotBrushes to assign different colors when conditions become true.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by The_Sec, Today, 03:37 PM
    0 responses
    1 view
    0 likes
    Last Post The_Sec
    by The_Sec
     
    Started by GwFutures1988, Today, 02:48 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    6 responses
    32 views
    0 likes
    Last Post ScottWalsh  
    Started by frankthearm, Today, 09:08 AM
    10 responses
    36 views
    0 likes
    Last Post frankthearm  
    Started by mmenigma, Today, 02:22 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X