Go Back   NinjaTrader Support Forum > NinjaTrader 8 > Platform Technical Support

Platform Technical Support General platform technical support for NinjaTrader 8.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 01-17-2018, 01:41 AM   #16
Ricam
Senior Member
 
Join Date: Jul 2009
Posts: 366
Thanks: 117
Thanked 52 times in 38 posts
Default

That was a very helpful response. I applied that method to a delta and cumulative delta indicator and it worked great. There is a tremendous overall reliability improvement after having been able to ditch tick replay.

The related help articles, and sample indicators such as buy sell pressure, should be updated accordingly

Is there a way to get the bid and ask associated with a last price in a Bar Type? Comparing the bid, ask and last works in real time but is not accurate for the backfill.
Ricam is offline  
Reply With Quote
Old 01-17-2018, 04:12 PM   #17
NinjaTrader_Brett
NinjaTrader Product Management
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO
Posts: 7,265
Thanks: 149
Thanked 568 times in 482 posts
Default

In BarType the OnDataPoint() as bid and ask parameters which are populated for 1 tick series.

We may consider updating BuySellVolume to use the 1 tick secondary series approach.
NinjaTrader_Brett is offline  
Reply With Quote
Old 01-17-2018, 04:55 PM   #18
Ricam
Senior Member
 
Join Date: Jul 2009
Posts: 366
Thanks: 117
Thanked 52 times in 38 posts
Default

On the Big Mike forum one of the contributors posted a bar type using this approach to plot constant delta bars. It seems to work accurately in real time, but the bar cutoffs appear to be somewhat "off" for historical backfill.
Ricam is offline  
Reply With Quote
Old 01-18-2018, 08:49 AM   #19
NinjaTrader_Brett
NinjaTrader Product Management
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO
Posts: 7,265
Thanks: 149
Thanked 568 times in 482 posts
Default

OK. Can't comment without taking a look. If there is an issue please report it with steps I could use to reproduce with your expected result and actual result and I'll take a look.
NinjaTrader_Brett is offline  
Reply With Quote
Old 01-21-2018, 02:00 PM   #20
Ricam
Senior Member
 
Join Date: Jul 2009
Posts: 366
Thanks: 117
Thanked 52 times in 38 posts
Default Different stories from different folks

In this post Patrick H seems to contradict what Brett says about tick replay and bid ask historical data.

https://ninjatrader.com/support/foru...d.php?t=107069

Quote:
"Will it still be necessary to use Tick Replay to access accurate historical values of the best bid and ask associated with each "last" price?" - Ricam

"Yes, this will still be necessary." - Ninjatrader Patrick H.

Note that until Brett's recent clarification the story always was that the only way to access the historical bid ask data was by using OnMarketData with tick replay. I repeatedly questioned this and the answer was always the same.
Last edited by Ricam; 01-21-2018 at 02:29 PM.
Ricam is offline  
Reply With Quote
Old 01-21-2018, 02:10 PM   #21
Ricam
Senior Member
 
Join Date: Jul 2009
Posts: 366
Thanks: 117
Thanked 52 times in 38 posts
Default problem with indicators using one tick secondary data series

The following pitfalls must be borne in mind when coding an indicator that uses a one tick secondary data series and runs in NON tick replay.

In tick replay mode the historical data for the primary and secondary series are in the correct order and these problems do not happen.

For historical NON tick replay there is only one tick per each bar of the primary series, BIP = 0.. This is the LAST tick of the primary bar NOT the first tick. This raises two problems.
  1. The historical data of the secondary series BIP =1 gets assigned to the wrong bar of the primary series and needs to be shifted forward one bar position to the right on the chart.
  2. After the first tick of bar of the primary series, which is really the last tick of that bar, the very next tick of the secondary series is for the same trade that triggered the immediately preceding BIP = 0 event. So the data associated with that secondary tick needs to be assigned to the PREVIOUS bar on the chart because it happened during the LAST tick of the primary bar that JUST ENDED.

Another problem is that when the indicator transitions from historical to real time these conditions no longer apply but the techniques used to correct them may result in a discontinuity in the plot such as a zero value.
Last edited by Ricam; 01-22-2018 at 12:44 PM.
Ricam is offline  
Reply With Quote
Old 01-22-2018, 02:13 PM   #22
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 11,366
Thanks: 774
Thanked 1,953 times in 1,882 posts
Default

Hello Ricam,

Thank you for your post.

Brett is correct here and he had spoken to me about this thread. Thank you for bringing up the other thread as I can go back there and add a post correcting my earlier post.
Quote:
Originally Posted by Ricam View Post
In this post Patrick H seems to contradict what Brett says about tick replay and bid ask historical data.

Note that until Brett's recent clarification the story always was that the only way to access the historical bid ask data was by using OnMarketData with tick replay. I repeatedly questioned this and the answer was always the same.
NinjaTrader_PatrickH is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Historical tick side (ask/bid) alex_bbfg Indicator Development 5 12-02-2015 03:06 PM
Historical 1-tick Last, Bid, Ask cls71 Version 8 Beta 9 10-01-2015 04:48 PM
Anyone have market replay files and/or tick data for CL since 1/1/2007? richwaters General Development 0 02-28-2011 10:28 AM
Creating and accessing historical tick data files kaydgee Strategy Development 1 09-05-2010 10:30 AM
Where Can I find historical replay files? maxreturn Platform Technical Support 0 02-10-2009 01:50 PM


All times are GMT -6. The time now is 05:40 AM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content.