Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Where is Bars Ago Data coming from in strategy builder?

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

    Where is Bars Ago Data coming from in strategy builder?

    Obviously the current chart... BUT:

    Scenario:

    1. A Range-12 chart is being used as the primary chart for a strategy, so the strategy is loaded and running on this chart.
    2. Amongst other indicators relative to the primary chart, an indicator is also being used which has been told to pull its data from a 5 minute chart data series.
    3. That indicator is being instructed to look at a desired value and compare 5 minute bar zero to five minute 10 bars ago.
    4. So even though I've told the conditional statement to pull from the 5 minute, is the strategy builder 'bars ago' logic in fact still utilizing the primary chart for the bar count?

    #2
    Disregard, I need to dig a little further on this. I have two in the strat now pulling 5 min data... One appears to obey, the other does not. It might need tick...

    Comment


      #3
      Hello johnMoss,

      The Strategy Builder is limited to processing on the primary series of the chart bar updates.

      To evaluate logic during other BarsInProgress, you will need to unlock the script and remove the 'if (BarsInProgress == 0) return;' lines of code at the top of OnBarUpdate().


      In the Strategy Builder, you can use the information from other series when the primary series is updating, by clicking Input Series and selecting the added series.
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      62 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 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
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X