![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Suggestions And Feedback New feature suggestions and feedback. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
|
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 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Please consult the docs: http://www.ninjatrader-support.com/H...eV6/Count.html
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
|
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strategy Position - Any way to stop a strategy processing historical data? | ScoobyStoo | Strategy Development | 7 | 04-10-2012 06:09 AM |
| REQ: Access Final Bar Status | tazatek | Suggestions And Feedback | 2 | 11-17-2009 01:33 AM |
| REQ: Allow Access to OHLCV data in Initialize() | tazatek | Suggestions And Feedback | 1 | 11-17-2009 01:05 AM |
| Suppress processing bars when loading strategy | atrader101 | Strategy Development | 2 | 09-23-2009 03:45 AM |
| Quick Questions regarding strategy historical processing | bridenour | Automated Trading | 16 | 02-24-2009 04:54 AM |