Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Back test result problem
Collapse
X
-
Back test result problem
If I run a back test of a strategy from Jan 1 2009 to Auguts 31, 2009 the trades happen till March only. When I run the backtest only for April 2009 2 trades happen. Why are the trades of april not being reflected when I run the full set of data from Jan to August when they appear when I run for one month only.Tags: None
-
The last date when I run full test is August 31, 2009 and when I run for April only it is April 30.
Another strange thing happened when I rum from March 3 to May 1 I get trades in April. When I run from March 4 to May 1 I do not get even 1 trade in April.
I have reloaded the data on 3 machines and it is giving same results. I have tried on version xxxxx.13 and xxxxx.14
Originally posted by kassaindia View PostIf I run a back test of a strategy from Jan 1 2009 to Auguts 31, 2009 the trades happen till March only. When I run the backtest only for April 2009 2 trades happen. Why are the trades of april not being reflected when I run the full set of data from Jan to August when they appear when I run for one month only.
Comment
-
-
If I apply Sample MA cross over trades are coming
I back test 6E09-09 with data merged from Jan 1 2009 to this instrument.
Originally posted by NinjaTrader_Jason View PostDo you see trade results after March if you apply the SampleMACrossOver strategy on the same data/instrument?
Do you backtest the 6E 03-09?
Comment
-
Hello kassaindia,
Could you please check if your strategy contains a bug as Baruch mentioned.
1) Open NinjaTrader
2) From the Control Center -> Tools -> Edit NinjaScript -> Strategy
3) Select any strategy and double click on it.
4) A new window will appear and you will need to right click and select 'Compile'. All(!) NinjaScript files will now be compiled.
5) At the bottom of the window a new section will appear were you can find the error locations. Double click the error and you will be directed to the location of the error. If not, all files compiled successful.
6) From there you have the option to debug it. You can find general debug information at the link below.
Baruch, thank you for your input!JasonNinjaTrader Customer Service
Comment
-
But can a strategy run without it being compiled? When we make a strategy we compile it and it is debugged then if errors come. Else it says strategy generated successfully. Is this correct or I must recompile it again ?
Originally posted by NinjaTrader_Jason View PostHello kassaindia,
Could you please check if your strategy contains a bug as Baruch mentioned.
1) Open NinjaTrader
2) From the Control Center -> Tools -> Edit NinjaScript -> Strategy
3) Select any strategy and double click on it.
4) A new window will appear and you will need to right click and select 'Compile'. All(!) NinjaScript files will now be compiled.
5) At the bottom of the window a new section will appear were you can find the error locations. Double click the error and you will be directed to the location of the error. If not, all files compiled successful.
6) From there you have the option to debug it. You can find general debug information at the link below.
Baruch, thank you for your input!
Comment
-
I have recompiled it; it shows strategy successfully generated ; error still persists.
Originally posted by NinjaTrader_Jason View PostYes, it will need to be compiled first. Could you please try and check if the strategy contains a bug. Perhaps the strategy code was modified in between.
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by samish18, 10-07-2024, 02:37 PM
|
4 responses
43 views
0 likes
|
Last Post
by firebird631
Today, 04:08 PM
|
||
Started by nicthe, Today, 12:29 PM
|
4 responses
18 views
0 likes
|
Last Post
by nicthe
Today, 03:14 PM
|
||
Started by greenhollow803, 10-23-2023, 10:47 AM
|
18 responses
315 views
0 likes
|
Last Post
by Blaze212
Today, 01:29 PM
|
||
Started by Blaze212, 12-04-2024, 10:05 PM
|
4 responses
44 views
0 likes
|
Last Post
by Blaze212
Today, 01:25 PM
|
||
Started by Keela, Today, 11:29 AM
|
0 responses
5 views
0 likes
|
Last Post
by Keela
Today, 11:29 AM
|
Comment