Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy recalculation on subsequent bars

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

    Strategy recalculation on subsequent bars

    I need some help please, and thanks in advance.

    Problem: My auto trading strategy needs to recalculate the value of Bar [0] based on information from the next five (5) bars Bar [-5] as each bar closes.

    The code from my indicator is as follows:

    (MAX(CCI(28), 7)[0-LowestBar(CCI(14), 5) ]

    Is there any feasible to make this happen in NT7?

    Again - thanks in advance for any insight.

    d

    #2
    Hello nanook77,
    Thanks for your post and I am happy to assist you.

    Could specify what exactly you are trying to do, so that I can point to the right direction.

    I look forward assisting you.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Originally posted by nanook77 View Post
      I need some help please, and thanks in advance.

      Problem: My auto trading strategy needs to recalculate the value of Bar [0] based on information from the next five (5) bars Bar [-5] as each bar closes.

      The code from my indicator is as follows:

      (MAX(CCI(28), 7)[0-LowestBar(CCI(14), 5) ]

      Is there any feasible to make this happen in NT7?

      Again - thanks in advance for any insight.

      d
      You cannot calculate the CurrentBar, bar[0], based on a future that has not yet happened. Is your real meaning that you want to recalculate the value for 5 bars ago, based on the bars that have happened since then until the CurrentBar?

      Comment

      Latest Posts

      Collapse

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