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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    93 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    138 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    123 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    73 views
    0 likes
    Last Post PaulMohn  
    Working...
    X