Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reading Input Parameters of Data Series within a Strategy

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

    Reading Input Parameters of Data Series within a Strategy

    Hello Ninjatrader staff,

    Let's say I load up a Renko chart and fill in the number 50 in the input parameters of the data series, and then I decide to apply a new Strategy to my Renko chart.
    Is there a way to access the input parameter (in this case, 50) when applying my stategy on the chart, and then send it to an integer value in the strategy when the strategy is enabled?

    Thank you in advance for your time, I look forward to your answer.

    GLFX005

    #2
    Hello GLFX005
    You can access the bar properties by using BarsPeriod:
    Code:
    Bars.BarsPeriod.Value
    The properties for bars types are named generic as Value and Value2.
    You could use this code directly in the strategy and it would not be required to set it to a variable.



    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X