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 > Application Technical Support > Miscellaneous Support > Historical NinjaTrader 6.5 Archive > Historical NinjaTrader 6.5 Beta Threads

 
 
Thread Tools Display Modes
Old 01-27-2008, 04:33 PM   #1
OregonSun
Junior Member
 
Join Date: Jan 2008
Location: Eugene, OR
Posts: 17
Thanks: 0
Thanked 1 time in 1 post
Question Beta bug? Strategy Analyzer backtest properties window showing wrong properties

I didn't find another reference to this, apologies if already posted.

When backtesting against an instrument (ex. USDJPY), and selecting a strategy *other than the first default one in the properties window* the user defined properties do not change to match the selected strategy, they stay as the properties that go with the default strategy. Not clear what values are actually used when it runs.

In case this is useful info, the strategy I've selected is one that I exported from v6 and imported into v6.5_8. The properties that don't work right have been edited in code (added by the wizard originally, but edited). This might suggest an obvious code problem, however, the properties have worked in v6.

Code for properties:

variables region
privatebool noEntries = false; // Used to prevent entries on Mondays and Fridays and after hours
privatedouble trailingSLPercent = .05;
privatedouble profitTarget = 250;
privatedouble stopLoss = 25;
privateint reversalPeriod = 1;
privatedouble maxPositionProfit = 0;
privatedouble currentPositionProfit = 0;

property procedure region
[Description("Trailing stoploss percent")]
[Category(
"Parameters")]
publicdouble TrailingSLPercent
{
get { return trailingSLPercent; }
set { trailingSLPercent = Math.Max(.05, value); }
}
[Description(
"Position profit target")]
[Category(
"Parameters")]
publicdouble ProfitTarget
{
get { return profitTarget; }
set { profitTarget = Math.Max(1, value); }
}
[Description(
"Position stoploss")]
[Category(
"Parameters")]
publicdouble StopLoss
{
get { return stopLoss; }
set { stopLoss = Math.Max(1, value); }
}
[Description(
"ReversalPeriod")]
[Category(
"Parameters")]
publicint ReversalPeriod
{
get { return reversalPeriod; }
set { reversalPeriod = Math.Max(1, value); }
}


OregonSun is offline  
Old 01-27-2008, 04:47 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

This is a limitation of the strategy dialogue window. To work around this, name input variables with unique names.
NinjaTrader_Ray is offline  
Old 01-27-2008, 05:42 PM   #3
OregonSun
Junior Member
 
Join Date: Jan 2008
Location: Eugene, OR
Posts: 17
Thanks: 0
Thanked 1 time in 1 post
Default

Ah, ok. Thanks for the response. Sounds like I can just create unique names across strategies.
OregonSun is offline  
 

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
6.5.0.4 Strategy Analyzer totaly wrong whitegun Historical NinjaTrader 6.5 Beta Threads 9 01-10-2008 11:50 PM
Fib Extension Properties zelli Miscellaneous Support 1 01-04-2008 01:04 PM
Chart properties in backtest dtf139 Charting 6 12-17-2007 11:17 AM
Time and Sales window properties grd974 Suggestions And Feedback 3 06-23-2007 03:21 PM
Stategy Properties Json Strategy Development 1 04-02-2007 02:08 AM


All times are GMT -6. The time now is 07:55 AM.