Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Previous value of Series<double> always comes as zero

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

    Previous value of Series<double> always comes as zero

    Hello I am doing an indicator ... and i have a problem where Series&lt;double&gt; ShortStop , if i do ShortStop[0] i get the value but ShortStop[0] is 0 even after i do

    ShortStop[0] = MIN(Close, Length)[0] + atr;
    so when i do ShortStopPrev[0] = ShortStop[1] ..

    It is always zero ShortStop[1]

    ChandelierExit.cs

    #2
    Hello archReactor,

    Thanks for your post.

    When testing your indicator on my end I see the ShortStop[0] and ShortStop[1] prints values greater than 0 to the NinjaScript Output window.

    See the attached screenshot.

    What exactly are the steps and settings you are using when you see this behavior occurring?

    I look forward to assisting further.
    Attached Files
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    579 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 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
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X