BitMEX / ninjatrader-bitmex

Releases of the BitMEX <-> NinjaTrader Adapter.
87 stars 26 forks source link

no historical data #16

Open tickcharter opened 6 years ago

tickcharter commented 6 years ago

hello, im following the guide charting xbtusd in nt8 my issue is, in my new chart, there is no historical data. It's connect to bitmex but the data always start at new datafeed, there is no past data before that. And when im close it, it always begin again from new datafeed. Example is, xbtusd now at 9040, there is no data before 9040. Hope i can get answer in here, thank you capture

sblanchard commented 6 years ago

Tick replay enabled?

ryanfox commented 6 years ago

There is an option to specify a date range in the chart widget. This lets you query for historical data.

tickcharter commented 6 years ago

I'm already trying download historical data, but still no result.

@sblanchard where is this tick replay enabled? sorry for asking, because im still new using nt8

@ryanfox is the option is when we gonna make new chart or in download historical data menu?

tickcharter commented 6 years ago

im trying tick replay enabled, no results, specify data range also no result. in options - market data - general, historical and real data, i use bitmex for stock, forex, and futures and in historical, i enable show tick replay. im restarting nt8, but in chart, im only got loading...

sblanchard commented 6 years ago

have you tried turning tick replay off and only loading some 5 minute bars for 1 day?

sblanchard commented 6 years ago

this plugin seems a bit finicky on newer builds of ninja for some reason. I've had to uninstall and delete my whole folder because I still got some error on it insisting to start downloading Tick data for an instrument despite not having any chart or anything open yet. I've got an older build on another pc where it's working better.

tickcharter commented 6 years ago

@sblanchard yeah im trying that, still only loading..., still no result :/

sblanchard commented 6 years ago

Check your trace files for any errors and paste them here

C:\Users\xxx\Documents\NinjaTrader 8\trace

tickcharter commented 6 years ago

like this? trace.20180423.00000.txt trace.20180423.00001.txt trace.20180423.00002.txt trace.20180423.00003.txt trace.20180423.00004.txt trace.20180423.00005.txt trace.20180423.00006.txt trace.20180423.00007.txt trace.20180423.00008.txt trace.20180423.00009.txt trace.20180423.00010.txt trace.20180423.00011.txt trace.20180423.00012.txt trace.20180423.00013.txt trace.20180423.00014.txt trace.20180423.00015.txt trace.20180423.00016.txt trace.20180424.00000.txt trace.20180502.00000.txt trace.20180502.00001.txt trace.20180502.00002.txt trace.20180502.00003.txt trace.20180505.00000.txt trace.20180505.00001.txt trace.20180505.00002.txt trace.20180506.00000.txt trace.20180506.00001.txt

sblanchard commented 6 years ago

Same error I had... I gave them the solution

2018-05-06 11:18:46:187 Cbi.Instrument.RequestBars (to Provider): instrument='XBTUSD' from='30/04/2018 00.00.00' to='06/05/2018 00.00.00' period='1 Minute' 2018-05-06 11:18:47:563 error retrieving data: The remote server returned an error: (400) Bad Request. 2018-05-06 11:18:47:866 subscribing to quotes for XBTUSD 2018-05-06 11:18:47:866 first quote subscription, connecting to bitmex websocket for quotes 2018-05-06 11:18:47:901 first trade subscription, connecting to bitmex websocket for instrument XBTUSD 2018-05-06 11:18:47:917 Cbi.Instrument.RequestBars (to Provider): instrument='XBTUSD' from='06/05/2018 00.00.00' to='06/05/2018 00.00.00' period='1 Minute' 2018-05-06 11:18:48:067 (My BitMEX) BitmexConnect.SubscribeMarketData Exception=System.ArgumentException: The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly. For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local. Parameter name: sourceTimeZone at System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags, CachedData cachedData) at NinjaTrader.Data.MarketReplay.OnMarketData(MarketDataType marketDataType, Double price, Int64 volume, DateTime timeLocal) at NinjaTrader.Cbi.Instrument.MarketDataHandling(MarketDataEventArgs e) at NinjaTrader.Cbi.Instrument.MarketDataCallback(MarketDataType marketDataType, Double price, Int64 volume, DateTime time, Int64 tickId) at NinjaTrader.NinjaScript.Adapters.NinjaTraderAdapter.<>c__DisplayClass26_0.b__0(Int32 dataType, Double price, Int64 size, DateTime timestamp) at BitmexConnect.BitmexConnector.SubscribeMarketData(String symbol, Action4 marketDataCallback) at NinjaTrader.NinjaScript.Adapters.NinjaTraderAdapter.SubscribeMarketData(Instrument instrument, Action5 callback) 2018-05-06 11:18:48:074 ERROR: Panic: Resource 'BitmexConnectErrorSubscribeMarketData' not defined in 'CustomAdapter.Resource' 2018-05-06 11:18:48:339 error retrieving data: The remote server returned an error: (400) Bad Request. 2018-05-06 11:19:13:618 Cbi.Instrument.RequestBars (to Provider): instrument='XBTUSD' from='04/05/2018 00.00.00' to='06/05/2018 00.00.00' period='1 Minute' 2018-05-06 11:19:14:439 error retrieving data: The remote server returned an error: (400) Bad Request. 2018-05-06 11:19:29:090 Cbi.Instrument.RequestBars (to Provider): instrument='XBTUSD' from='04/05/2018 00.00.00' to='06/05/2018 00.00.00' period='1 Minute' 2018-05-06 11:19:29:460 error retrieving data: The remote server returned an error: (400) Bad Request. 2018-05-06 11:20:51:592 Cbi.Instrument.RequestBars (to Provider): instrument='XBTUSD' from='29/04/2018 00.00.00' to='06/05/2018 00.00.00' period='1 Minute' 2018-05-06 11:20:52:075 error retrieving data: The remote server returned an error: (400) Bad Request.

tickcharter commented 6 years ago

@sblanchard how to apply your solution?

sblanchard commented 6 years ago

I can't attach it unfort...need programming knowledge and they should either open source the code or fix it.

tickcharter commented 6 years ago

so..no solutions for me now i guess hehe..thank you for always answering and trying to help @sblanchard

ryanfox commented 6 years ago

@sblanchard You can specify a date range in the chart creation widget. The section labeled "Time Frame".

sblanchard commented 6 years ago

Yes the default is 5 days, he's actually getting an error if you check the last trace file.

Cap135 commented 6 years ago

Doesn't work to on ninja8. There is connect but no data.

0relmely commented 6 years ago

hello guys !!

i Think we can obten data from here https://public.bitmex.com/

but i dont know how its work!!! I obten .csv files , but we need to fixed to be able it for ninja trader 8

yanyr commented 6 years ago

Hi,

I can load some historical data to the chart but I'm not able to load historical data for playback. I would like to use playback because I want to see historical Level II depth chart data also. Is it possible to solve it somehow?

Thanks

tayron123 commented 5 years ago

i did andestend:))))))))