Thanks.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Difference
Collapse
X
-
Hello Trader17,
Thank you for the post.
This would not be enough information to answer your question but based on this image I can see that the number of trades were different so we should not expect a matching performance report here.
To know why it was different, that would come down to the specifics of the test and your logic.
To start, are you comparing historical results only from the chart and does the chart have identical settings as the backtest?
The setup between the two tests will be very important in getting similar results. This would include all settings and data, the data would need to match the backtest exactly so that your strategy can run over the same timeframe again in the same way.
Besides this, are you certain that all conditions to trade became true in the same way as the backtest? To know this, you may need to add debugging into the script such as using Prints to confirm it is working in an identical way. Once the logic is able to run in an identical way over historical data you should see similar results between historical tools. If the logic is not able tore-run in the exact same way, that could create completely different results depending on the logic being used.
I look forward to being of further assistance.
JesseNinjaTrader Customer Service
- Likes 1
-
Hello Trader17,
It would generally be your logic that determines when to enter another trade to open a position.
From the builder you could use:
Strategy -> CurrentMarketPosition
equals
Strategy -> Market Position -> Flat
I look forward to being of further assistance.
JesseNinjaTrader Customer Service
- Likes 1
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by traderqz, Today, 12:06 AM
|
2 responses
3 views
0 likes
|
Last Post
by traderqz
Today, 09:17 AM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
5 responses
28 views
0 likes
|
Last Post Today, 08:48 AM | ||
Started by f.saeidi, Today, 08:13 AM
|
1 response
7 views
0 likes
|
Last Post Today, 08:47 AM | ||
Started by DavidHP, Today, 07:56 AM
|
1 response
6 views
0 likes
|
Last Post Today, 08:16 AM | ||
Started by kujista, Today, 06:23 AM
|
3 responses
11 views
0 likes
|
Last Post
by kujista
Today, 08:15 AM
|
Comment