![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: May 2009
Posts: 81
Thanks: 1
Thanked 1 time in 1 post
|
I use "Volume[0]" in a strategy. Using print statements, I am seeing significant differences between back testing and real time volume upon bar close.
The historical volume appears to be accurate but the real time is definitely erroneous. It is approximately 10x higher and beyond. CalculateOnBarClose is set to true. Any ideas on why this is occurring and how to rectify? Thanks. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,394
Thanks: 252
Thanked 968 times in 951 posts
|
eleven, thanks for the post - which broker or connection are you using in your testing?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: May 2009
Posts: 81
Thanks: 1
Thanked 1 time in 1 post
|
Bertrand,
I am using BarChart data feed. Running live or in market replay give me erroneous data. Running historical in strategy analyzer seems to be accurate. |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,394
Thanks: 252
Thanked 968 times in 951 posts
|
eleven, then I would suggest contacting BarChart about their data directly, as NinjaTrader does not change the received live data (which would also be used in your replay data). Did this occur for all markets you tested on?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: May 2009
Posts: 81
Thanks: 1
Thanked 1 time in 1 post
|
Prior to contacting BarChart I decided to troubleshoot this further and add VOL to my chart. The volume is accurate until the moment I started my strategy, as you can see from the volume spike on the lower panel.
How is this possible? The lower panel is a VOL indicator apart from my strategy. When I start my strategy not only is volume erroneous in my strategy but also the VOL indicator. When my strategy is not running the volume is accurate. To me this doesn't seem like a data feed problem. What else could be going on with this? |
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Close NT, reopen NT, connect data provider, open chart with no indicators or anything else, right click -> reload historical data, add VOL indicator, watch chart in real-time for awhile. Then add strategy and continue to watch volume.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Member
Join Date: May 2009
Posts: 81
Thanks: 1
Thanked 1 time in 1 post
|
Josh,
I will do as you describe. Hold my thoughts from above post. I might not of accurately analyzed this. I will take a look at this tomorrow. eleven |
|
|
|
|
|
#8 |
|
Member
Join Date: May 2009
Posts: 81
Thanks: 1
Thanked 1 time in 1 post
|
It is the data feed. I opened a chart with just the VOL indicator. You can see the spike (bad data) on the picture. I've contacted BarChart and they are working on correcting the issue.
Last edited by eleven; 07-29-2009 at 11:35 AM.
|
|
|
|
|
|
#9 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,394
Thanks: 252
Thanked 968 times in 951 posts
|
Thanks for reporting back eleven.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Differences in Open price | marketmasher | Charting | 3 | 03-27-2009 07:22 AM |
| D Value Area differences ? | T2020 | Charting | 2 | 01-26-2009 07:15 AM |
| Chart differences | vast524 | Charting | 8 | 01-13-2009 05:24 AM |
| Differences in Exit Orders | three faced devil | Strategy Development | 3 | 10-27-2008 10:41 AM |
| Calculation differences | ThePatientOne | Strategy Development | 1 | 05-24-2007 12:07 PM |