NexusFi: Find Your Edge


Home Menu

 





Difference between normal Chart and Charts from Backtest


Discussion in NinjaTrader

Updated
    1. trending_up 1,582 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 3 attachments




 
Search this Thread

Difference between normal Chart and Charts from Backtest

  #1 (permalink)
UweH
Myslenice Poland
 
Posts: 25 since Aug 2019
Thanks Given: 6
Thanks Received: 8

Good evening:-)
I have tested an new approach by using Backtest and later Market Replay. Because I was wondering about the difference in results I have compared my Replay-Chart with the Chart which is shown in the Backtestresults. Here it is:

This picture is from the Backtestchart (LineBreak 150 Ticks)




This is the same move, but on the ReplayChart (LineBreak 150 Ticks)




As you can see, there is a big difference in amount of bars on identical settings by using the same datafeed. How is that possible...?
After the last update in NT8 I also have problems with optimization. The optimizer freezes if I want to use him with LineBreaks. I have tried every Datafeed I have, it’s always the same. Any idea what that could be?



Sent using the NexusFi mobile app

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
What broker to use for trading palladium futures
Commodities
 
  #2 (permalink)
kr36303
Montgomery, AL
 
Posts: 2 since Dec 2013
Thanks Given: 0
Thanks Received: 1

When using tick charts exactly where you start makes more difference since you don't have a time reference to synchronize with. Maybe the live view and the replay are not synchronized and could be as far as 1/2 bar off. Also are you sure you are using the same tick setting for both? I have tried to stack two charts horizontally on the same platform (TOS) and could not get them to exactly match. Even when it was an INDEX and a derivative option. Your pictures are indicating trades at two different price levels so they have to be at somewhat different times.

2807.00 and 2808.50

Reply With Quote
Thanked by:
  #3 (permalink)
UweH
Myslenice Poland
 
Posts: 25 since Aug 2019
Thanks Given: 6
Thanks Received: 8


Please don’t look at the trade executions. The pictures are showing the same time window. The different execution levels are a result of difference between charts which causes different (and wrong) entry signals to my strategy script.

That there could be a problem with time synchronization is possible. But would that cause such a big reduction in bars...? Look at this:



A 150-Tick TLB on Market Replay with start at 04.03.2019. As you can see, the “days ago” are looking correctly for this type of chart, the range of every 150-tick-bar is around 0,5 - 1,0 points in ES. But look at the bars on the right side, where is the Market Replay Starting Point. From that moment I got 20 bars with an unnormal range for the whole day(!). 20 bars x 150 ticks = 3000 ticks in ES from 8.00 to 22.00, that’s unbelievable :-D


Sent using the NexusFi mobile app

Reply With Quote
  #4 (permalink)
UweH
Myslenice Poland
 
Posts: 25 since Aug 2019
Thanks Given: 6
Thanks Received: 8


kr36303 View Post
When using tick charts exactly where you start makes more difference since you don't have a time reference to synchronize with. Maybe the live view and the replay are not synchronized and could be as far as 1/2 bar off. Also are you sure you are using the same tick setting for both? I have tried to stack two charts horizontally on the same platform (TOS) and could not get them to exactly match. Even when it was an INDEX and a derivative option. Your pictures are indicating trades at two different price levels so they have to be at somewhat different times.



2807.00 and 2808.50



.


Sent using the NexusFi mobile app

Reply With Quote
  #5 (permalink)
 
xplorer's Avatar
 xplorer 
London UK
Site Moderator
 
Experience: Beginner
Platform: CQG
Broker: S5
Trading: Futures
Posts: 5,982 since Sep 2015
Thanks Given: 15,509
Thanks Received: 15,435


UweH View Post

As you can see, there is a big difference in amount of bars on identical settings by using the same datafeed. How is that possible...?
After the last update in NT8 I also have problems with optimization. The optimizer freezes if I want to use him with LineBreaks. I have tried every Datafeed I have, it’s always the same. Any idea what that could be?



Hi UweH, chances are you will find the answer here

https://forum.ninjatrader.com/forum/ninjatrader-8/strategy-development/100192-comparing-real-time-historical-and-replay-performance

Reply With Quote
Thanked by:
  #6 (permalink)
UweH
Myslenice Poland
 
Posts: 25 since Aug 2019
Thanks Given: 6
Thanks Received: 8





Thank you for the link, maybe there is an answer.


Sent using the NexusFi mobile app

Reply With Quote




Last Updated on June 27, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts