NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > Suggestions and Feedback > Suggestions And Feedback

Suggestions And Feedback New feature suggestions and feedback.

Reply
 
Thread Tools Display Modes
Old 11-17-2009, 12:39 AM   #1
tazatek
Senior Member
 
Join Date: Jul 2008
Location: Grand Junction, CO
Posts: 148
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to tazatek
Default 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 ;
}
tazatek is offline  
Reply With Quote
Old 11-17-2009, 01:07 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Please consult the docs: http://www.ninjatrader-support.com/H...eV6/Count.html
NinjaTrader_Dierk is offline  
Reply With Quote
Old 11-17-2009, 01:34 AM   #3
tazatek
Senior Member
 
Join Date: Jul 2008
Location: Grand Junction, CO
Posts: 148
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to tazatek
Default

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
tazatek is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 08:36 PM.