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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      41 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X