Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Paint Dot on Indicator Value

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

    Paint Dot on Indicator Value

    Would someone direct me to existing source code for an indicator that paints a dot above or below the price bar referencing a value range for a standard indicator?

    If it is available, I assume I can edit the code and reference an indicator of choice.

    Example:
    Red dot above bar if Stochastic is above 79
    Orange dot above bar if Stochastic is between 50 and 79
    Lime dot below bar if Stochastic is between 21 and 49
    Red dot below bar if Stochastic is below 21

    Thank you for any guidance.

    #2
    Off the top of my head I can't think of any indicators that do someting similar (does not mean they don't exist) so you would have to go through the NinjaScript File Sharing section to see what's there.

    Here is a code snippet to get you started.

    if (Stochastics(3, 14, 7)[0] > 79) DrawDot("DOT" + CurrentBar, false, 0, High[0] + TickSize, Color.Red);
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    266 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    169 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    171 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    260 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    210 views
    0 likes
    Last Post CarlTrading  
    Working...
    X