![]() |
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
|
|||||||
| Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2009
Location: Budapest, HUNGARY
Posts: 258
Thanks: 0
Thanked 0 times in 0 posts
|
Hello,
how does the Strategy Analyzer work, if the below mentioned code is in MyStrategy? Does it have any effect on the result of backtest? Code:
protected override void OnBarUpdate()
{
// Only run on real-time data
if (Historical)
return;
}
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
|
Hello,
Just checking, did you see this line in the help guide: "With a strategy, when running a backtest, this property will always return true" So you may want to comment that part out of your code when you backtest, depending on the result you want.
Ben
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2009
Location: Budapest, HUNGARY
Posts: 258
Thanks: 0
Thanked 0 times in 0 posts
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Query regarding Historical property | ScoobyStoo | General Programming | 14 | 05-22-2009 09:39 AM |
| rectangle Opacity Property | mikeytrader | General Programming | 1 | 05-09-2009 02:08 PM |
| Positions Property available within OnPositionUpdate? | kcsystemtrader | Strategy Development | 5 | 03-12-2009 10:46 AM |
| Added Property to Strategy but Not Showing on Property Grid | stocastix | Automated Trading | 2 | 11-07-2008 04:00 PM |
| Add Hidden Property? | pivot44 | Market Analyzer | 1 | 04-16-2008 10:09 AM |