Why is such a huge difference
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Back testing
Collapse
X
-
Originally posted by NinjaTrader_Dave View PostHello,
Do you have CalculateOnBarClose set to false in your strategy, by chance? Are you seeing the executions occur on different bars (one bar late in backtesting)?
I look forward to your reply.
So how do you explain such a difference ???Last edited by vit007; 04-23-2015, 03:25 PM.
Comment
-
That is interesting. Are you running the Market Replay at a very high speed, by chance? Market Replay can skip data when it is running at very high speeds, whereas the Strategy Analyzer will be using all data.
If you are running Market Replay at a close-to-realtime speed, then I may need to test your code on my end to see what is going on. If so, please send me a full export of your code to platformsupport [at] ninjatrader [dot] com, and reference ticket # 1303256, so that I can investigate and test further.Dave I.NinjaTrader Product Management
Comment
-
Originally posted by vit007 View PostCalculateOnBarClose set to-- true . The settings are the same for both ( default ) . But when I run back test for last 4 trading days Im getting $2040 profit and same on replay gives me minus-$350
So how do you explain such a difference ???
The fake open means that the Replay is running quasi-realtime, and is running on VERY DIFFERENT data from what is being used to calculate in the BackTest where the only available data is the OHLC data.
That is the abiding problem of Renko Bars. What you see is not what you get. Renko does not show the travel of price; just a nice manufactured bar that depends on a quantum of relative movement from the previous close. So the nice picture of the low or high of the bar, very often (i.e., except in the middle of strong established trends), is not the extent of travel of price. Ergo, your nice picture is fake, and great at showing trading genius; the reality is very different.
There are a myriad of posts about the Renko illusion. Just search the forum. Try the keywords: Renko and incorrect.
Here are just a few of the threads that you will find.
Comment
-
Originally posted by koganam View PostThe Strategy is running on Renko bars. You have to write your code to take care of the fake open of the Renko Bars. The only true data on a Renko bar is the Close.
The fake open means that the Replay is running quasi-realtime, and is running on VERY DIFFERENT data from what is being used to calculate in the BackTest where the only available data is the OHLC data.
That is the abiding problem of Renko Bars. What you see is not what you get. Renko does not show the travel of price; just a nice manufactured bar that depends on a quantum of relative movement from the previous close. So the nice picture of the low or high of the bar, very often (i.e., except in the middle of strong established trends), is not the extent of travel of price. Ergo, your nice picture is fake, and great at showing trading genius; the reality is very different.
There are a myriad of posts about the Renko illusion. Just search the forum. Try the keywords: Renko and incorrect.
Here are just a few of the threads that you will find.
http://www.ninjatrader.com/support/f...ad.php?t=27293
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Touch-Ups, Today, 10:36 AM
|
0 responses
2 views
0 likes
|
Last Post
by Touch-Ups
Today, 10:36 AM
|
||
Started by geddyisodin, 04-25-2024, 05:20 AM
|
8 responses
61 views
0 likes
|
Last Post Yesterday, 10:45 AM | ||
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
4 responses
3,289 views
1 like
|
Last Post
by jgualdronc
Today, 10:02 AM
|
||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
22 views
0 likes
|
Last Post Today, 09:41 AM |
Comment