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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X