Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

No Value

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

    No Value

    Hi

    i'm trying to write a simple indicator to highlight simple engulfing patterns ... if I do this i get both plots


    EngulfingUp.Set(0,Low[0]);
    EngulfingDn.Set(0,High[0]);

    if I do this I get nothing ?

    if (Open[0] <= Close[1] && Close[0] >= Open[1]) EngulfingUp.Set(0,Low[0]);
    else if (Open[0] >= Close[1] && Close[0] <= Open[1]) EngulfingDn.Set(0,High[0]);

    Do I need to set a value for every plot for every bar ... is there a NOVALUE constant or something ?

    Thanks

    Paul

    #2
    Hello Paul,

    Thank you for writing in.

    When you plot, you need at least two consecutive plots in a row for any 1 plot segment to show. (You need two bars next to each other to draw a segment between them)

    When one is detected, you can set the current bar and the previous bar at the same time. This would make it show.

    if (Open[0] <= Close[1] && Close[0] >= Open[1])
    {
    EngulfingUp.Set(Low[0]); <- sets the value for the plot on the current bar
    EngulfingUp.Set(1, Low[0]); < - sets the value for the plot on the previous bar
    }
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X