Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Sample connection adapter
Collapse
X
-
From my brief knowledge of this I believe its mostly just the label of the provider and the actual code is then referenced in the class and overridable functions you have here.
-ChadLast edited by NinjaTrader_PatrickG; 07-06-2021, 06:24 AM.
-
Hello everyone,
each int number of a provider seems to refer to different connection providers with its settings:
base.Provider = (Provider)1000;
Is that correct, that this is a fixed list of connections? Or am I able to define an own custom connection name?
Thanks in advance.
Leave a comment:
-
This is the foundation of a connection
Code:public class AdapterConnectOptions : CustomConnectOptions { [Browsable(false)] public override Type AdapterClassType { get { return typeof(NinjaTraderAdapter); } } public AdapterConnectOptions() { base.Provider = (Provider)1000; } } public class NinjaTraderAdapter : AdapterBase, IAdapter, IDisposable { void IAdapter.Cancel(Order[] orders) { throw new NotImplementedException(); } void IAdapter.Change(Order[] orders) { throw new NotImplementedException(); } void IAdapter.Connect(IConnection connection) { throw new NotImplementedException(); } void IAdapter.Disconnect() { throw new NotImplementedException(); } void IAdapter.RequestBars(IBars bars, Action<IBars, ErrorCode, string> callback, IProgress progress) { throw new NotImplementedException(); } void IAdapter.RequestHotlistNames(Action<string[], ErrorCode, string> callback) { throw new NotImplementedException(); } void IAdapter.ResolveInstrument(Instrument instrument, Action<Instrument, ErrorCode, string> callback) { throw new NotImplementedException(); } void IAdapter.Submit(Order[] orders) { throw new NotImplementedException(); } void IAdapter.SubscribeAccount(Account account) { throw new NotImplementedException(); } void IAdapter.SubscribeFundamentalData(Instrument instrument, Action<FundamentalDataType, object> callback) { throw new NotImplementedException(); } void IAdapter.SubscribeHotlist(Hotlist hotlist, Action callback) { throw new NotImplementedException(); } void IAdapter.SubscribeMarketData(Instrument instrument, Action<MarketDataType, double, long, DateTime, long> callback) { throw new NotImplementedException(); } void IAdapter.SubscribeMarketDepth(Instrument instrument, Action<int, string, Operation, MarketDataType, double, long, DateTime> callback) { throw new NotImplementedException(); } void IAdapter.SubscribeNews() { throw new NotImplementedException(); } void IAdapter.UnsubscribeAccount(Account account) { throw new NotImplementedException(); } void IAdapter.UnsubscribeFundamentalData(Instrument instrument) { throw new NotImplementedException(); } void IAdapter.UnsubscribeHotlist(Hotlist hotlist) { throw new NotImplementedException(); } void IAdapter.UnsubscribeMarketData(Instrument instrument) { throw new NotImplementedException(); } void IAdapter.UnsubscribeMarketDepth(Instrument instrument) { throw new NotImplementedException(); } void IAdapter.UnsubscribeNews() { throw new NotImplementedException(); } public void Dispose() { throw new NotImplementedException(); } }
- Likes 3
Leave a comment:
-
Hello jshapen,
Thanks for opening the thread.
I know it doesn't support, but if you can help me...
People have been able to use the External Data Feed in conjunction with the DLL interface to connect to unsupported connections for market data. You may reference the DLL interface documentation as well as the example linked below. These are all the resources we have available for this feature and support is very limited since the DLL interface is provided as-is.
DLL interface - https://ninjatrader.com/support/help..._interface.htm
Example program - https://ninjatrader.com/support/foru...442#post514442
I'll leave this thread open ended in case another member of the forums would like to share their input.Last edited by NinjaTrader_Jim; 02-28-2018, 08:37 AM.
Leave a comment:
-
Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Tim-c, Today, 03:54 AM
|
0 responses
3 views
0 likes
|
Last Post
by Tim-c
Today, 03:54 AM
|
||
Started by FrancisMorro, Today, 03:24 AM
|
0 responses
2 views
0 likes
|
Last Post
by FrancisMorro
Today, 03:24 AM
|
||
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
10 responses
1,771 views
0 likes
|
Last Post
by Leafcutter
Today, 03:01 AM
|
||
Change colour of Stop market and limit orders to red and green via indicator script
by Rapine Heihei
Started by Rapine Heihei, 04-23-2024, 07:51 PM
|
2 responses
31 views
0 likes
|
Last Post
by Max238
Today, 02:25 AM
|
||
Started by Shansen, 08-30-2019, 10:18 PM
|
24 responses
945 views
0 likes
|
Last Post
by spwizard
Today, 01:29 AM
|
Leave a comment: