Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Req: Access to number of historical bars processing

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

    Req: Access to number of historical bars processing

    Enhancement Request:

    Allowing access to the number of total bars expected to be processed would be another advanced technique that could be found useful to many programmers. This would allow us to add heavier weighting as we approach the current bar via a simple array.

    ie:

    Code:
    private int totalbars = 0;
    private double weight = 0.0;
    Initialize() {
    
    totalbars = NumBarsToProcess();
    
    }
    
    OnBarUpdate() {
    
    weight =  (totalbars - currentbar ) / .25 ;
    }

    #2
    Please consult the docs: http://www.ninjatrader-support.com/H...eV6/Count.html

    Comment


      #3
      Again - Thanks for helping out.

      This is exactly what I needed. It was missed in another thread as a possiblity, so I opened up an enhancement needlessly.

      Thanks

      Matt

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by WHICKED, Today, 12:56 PM
      2 responses
      14 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by Felix Reichert, Today, 02:12 PM
      0 responses
      1 view
      0 likes
      Last Post Felix Reichert  
      Started by Tim-c, Today, 02:10 PM
      0 responses
      1 view
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by cre8able, Today, 01:16 PM
      2 responses
      9 views
      0 likes
      Last Post cre8able  
      Started by chbruno, 04-24-2024, 04:10 PM
      3 responses
      49 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X