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