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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    29 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    17 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    9 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    16 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X