Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator value accessible in strategy

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

    Indicator value accessible in strategy

    I created a simple indicator calculating the last swing high and low. See attached

    How do I make these values accessible in a strategy?

    I looked at the bollinger indicator that comes with NT which has access to Upper Middle Lower
    I see these values are under the OnBarUpdate() and #region Properties

    When I used the wizard to create the indicator #region Properties was not created.

    I reviewed the help guide https://ninjatrader.com/support/help...alues_that.htm
    and reviewed the SampleBoolSeries indicator.

    It looks like I need to create a price series.

    How do I get the wizard to create the Properties?


    Thanks in advance



    Attached Files

    #2
    Hello sdauteuil,

    For a strategy to use the value you would generally want to use a Plot. What you have is a single double variable.



    From the indicator wizard you can add a Plot and that will generate the necessary public property for the strategy to use. Then your code would stay basically the same, you would only need to change how you assign the value:

    SwingHigh[0] = High[1];

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    574 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    333 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
    553 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