Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy with custom indicator

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

    Strategy with custom indicator

    I'm trying to make strategy with custom indicator in NT 6.5 (I have cs and dll files in Custom directory).
    This indicator draws graph perfectly, but it's hard to build strategy with it.
    Indicator has Values[] datasets with double type values.
    Sometime dataset values is undefined and then these values equals to Close[0]!
    Not zero, not -1, not null. Why?
    How I can check that indicator.Values[0][0] is undefined?
    I think expression Values[0][0] == Close[0] is not very good solution.

    #2
    Hello none1,

    Welcome to the NinjaTrader forums!

    You can use ContainsValue() to make sure there is a valid value for the plot. This sample can help with this:
    Ensuring indicator plots are valid before programmatically accessing them
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X