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 jeronymite, 04-12-2024, 04:26 PM
      3 responses
      40 views
      0 likes
      Last Post jeronymite  
      Started by bill2023, Today, 08:51 AM
      2 responses
      16 views
      0 likes
      Last Post bill2023  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      167 responses
      2,260 views
      0 likes
      Last Post jeronymite  
      Started by warreng86, 11-10-2020, 02:04 PM
      7 responses
      1,362 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by Perr0Grande, Today, 08:16 PM
      0 responses
      5 views
      0 likes
      Last Post Perr0Grande  
      Working...
      X