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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      59 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      143 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      161 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      97 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X