Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Updated December 2, 2024
Top Posters
looks_one
decs0057
with 4 posts (0 thanks)
looks_two
psytopy
with 2 posts (0 thanks)
looks_3
sam028
with 2 posts (0 thanks)
looks_4
jeronymite
with 1 posts (0 thanks)
trending_up
1,239 views
thumb_up
0 thanks given
group
4 followers
forum
8 posts
attach_file
5 attachments
March 30th, 2023, 04:32 AM
Munich, Germany
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 73 since Feb 2010
Thanks Given: 15
Thanks Received: 25
I want to create a custom NinjaTrader Adpater connecting to api of data feed from germany.
I created the CustomConnectOptions and implemented Adapter interface.
Configuration of connection is working, but if I connect to adapter this error message is logged
"2023-03-30 08:32:05:192|0|2|My Consorsbank: Brand name is not matching. (Panic)"
Any idea how to resolve this issue?
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
April 2nd, 2023, 07:39 PM
Posts: 21 since Jul 2013
Thanks Given: 6
Thanks Received: 22
Hard to assist without the actual code. Are you able to share?
April 3rd, 2023, 01:25 PM
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,630
decs0057
I want to create a custom
NinjaTrader Adpater connecting to api of data feed from germany.
I created the CustomConnectOptions and implemented Adapter interface.
Configuration of connection is working, but if I connect to adapter this error message is logged
"2023-03-30 08:32:05:192|0|2|My Consorsbank: Brand name is not matching. (Panic)"
Any idea how to resolve this issue?
Hard to say without the source code, but do you have a public override string BrandName => "Consorsbank"; in your ConsorsbankAdapaterOptions.cs ?
Still, writing an adapter from scratch is tricky, it's much simpler to use the External adapter (but unfortunately no the level 2 ), and if the level 2 is required created a back-end using a supported connector which has a known API (IB or IQFeed for example).
Success requires no deodorant! (Sun Tzu)
April 6th, 2023, 03:31 PM
Munich, Germany
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 73 since Feb 2010
Thanks Given: 15
Thanks Received: 25
attached source file for options and skeleton of adapter
you can use pem file in TestCCN.zip for credentials in options dialog
Attached Files
Elite Membership required to download: AdapterCCN.zip
Elite Membership required to download: TestCCN.zip
May 15th, 2023, 12:03 AM
Austin, TX
Experience: Intermediate
Platform: NinjaTrader, MetaTrader
Trading: Forex, Futures
Posts: 5 since Mar 2017
Thanks Given: 2
Thanks Received: 0
@decs0057 were you able to resolve the issue?
May 16th, 2023, 12:00 AM
Austin, TX
Experience: Intermediate
Platform: NinjaTrader, MetaTrader
Trading: Forex, Futures
Posts: 5 since Mar 2017
Thanks Given: 2
Thanks Received: 0
@sam028 here's a connection adapter, I've been trying to get to connect but I keep getting the same error, below is my error log. Any suggestion/recommendation is very much welcomed.
cc: @jeronymite
Thank you
Code
2023-05-15 21:22:57:919 (My Custom15) Gui.ControlCenter.OnConnect
2023-05-15 21:22:57:935 (My Custom15) Cbi.Connection.Connect0: status=Disconnected assembly=8.0.28.0 date=2023-05-15 runAsProcess=False
2023-05-15 21:22:57:950 (My Custom15) Cbi.Connection.ConnectionStatusCallback: status=Connecting priceStatus=Connecting previousStatus=Disconnected previousPriceStatus=Disconnected errorCode=NoError nativeError=''
2023-05-15 21:22:57:953 (My Custom15) NinjaTrader.Gui.ControlCenter.OnConnectionStatus: Custom15 status=Connecting priceStatus=Connecting previousStatus=Disconnected previousPriceStatus=Disconnected errorCode=NoError nativeError=''
2023-05-15 21:22:57:965 (My Custom15) Cbi.Connection.Connect1
2023-05-15 21:22:57:978 (My Custom15) Cbi.Connection.Connect2
2023-05-15 21:22:57:978 (My Custom15) Cbi.Connection.Connect3
2023-05-15 21:22:57:982 (My Custom15) Cbi.Connection.CreateAccount: account='Sim101' displayName='Sim101' fcm='' denomination=UsDollar forexLotSize=10000
2023-05-15 21:22:57:988 (My Custom15) Cbi.Account.OnConnectionStatus: account='Sim101' fcm='' status=Connecting previousStatus=Disconnected message=''
2023-05-15 21:22:57:989 (My Custom15) NinjaTrader.Gui.ControlCenter.OnConnectionStatus.DispatcherInvoke: Custom15 status=Connecting priceStatus=Connecting previousStatus=Disconnected previousPriceStatus=Disconnected errorCode=NoError nativeError=''
2023-05-15 21:22:57:991 (My Custom15) Gui.ControlCenter.OnConnectionStatus.Adding: provider=Custom15 status=Connecting priceStatus=Connecting
2023-05-15 21:22:57:991 (My Custom15) Cbi.Account.OnConnectionStatus.PositionExecutions: account='Sim101'
2023-05-15 21:22:58:012 (My Custom15) Cbi.Connection.Connect4
2023-05-15 21:22:58:341 NinjaTrader.Gui.ControlCenter.OnConnectionStatus: foundPriceLoss=False foundTradeLoss=False foundConnectingStatus=True foundConnected=False
2023-05-15 21:22:58:342 NinjaTrader.Gui.ControlCenter.OnConnectionStatus: Status=Connecting
2023-05-15 21:22:58:430 (My Custom15) Cbi.Connection.ConnectionStatusCallback: status=Disconnected priceStatus=Disconnected previousStatus=Connecting previousPriceStatus=Connecting errorCode=Panic nativeError='Brand name is not matching.'
2023-05-15 21:22:58:430 (My Custom15) Core.Connection.Statistics: connectAttempts=1/0.0ms
2023-05-15 21:22:58:432 (My Custom15) Cbi.Account.OnConnectionStatus: account='Sim101' fcm='' status=Disconnected previousStatus=Connecting message=''
2023-05-15 21:22:58:434 Flushing DB thread
2023-05-15 21:22:58:435 (My Custom15) NinjaTrader.Gui.ControlCenter.OnConnectionStatus: Custom15 status=Disconnected priceStatus=Disconnected previousStatus=Connecting previousPriceStatus=Connecting errorCode=Panic nativeError='Brand name is not matching.'
2023-05-15 21:22:58:436 (My Custom15) NinjaTrader.Gui.ControlCenter.OnConnectionStatus.DispatcherInvoke: Custom15 status=Disconnected priceStatus=Disconnected previousStatus=Connecting previousPriceStatus=Connecting errorCode=Panic nativeError='Brand name is not matching.'
Attached Files
Elite Membership required to download: MTAdapter.zip
May 19th, 2023, 05:42 PM
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,630
Check my previous reply (post #3).
Still, for a Metatrader connect you should use the External connector, it's documented and super easy to deal with.
psytopy
@
sam028 here's a connection adapter, I've been trying to get to connect but I keep getting the same error, below is my error log. Any suggestion/recommendation is very much welcomed.
cc: @
jeronymite
Thank you
Code
2023-05-15 21:22:57:919 (My Custom15) Gui.ControlCenter.OnConnect
2023-05-15 21:22:57:935 (My Custom15) Cbi.Connection.Connect0: status=Disconnected assembly=8.0.28.0 date=2023-05-15 runAsProcess=False
2023-05-15 21:22:57:950 (My Custom15) Cbi.Connection.ConnectionStatusCallback: status=Connecting priceStatus=Connecting previousStatus=Disconnected previousPriceStatus=Disconnected errorCode=NoError nativeError=''
2023-05-15 21:22:57:953 (My Custom15) NinjaTrader.Gui.ControlCenter.OnConnectionStatus: Custom15 status=Connecting priceStatus=Connecting previousStatus=Disconnected previousPriceStatus=Disconnected errorCode=NoError nativeError=''
2023-05-15 21:22:57:965 (My Custom15) Cbi.Connection.Connect1
2023-05-15 21:22:57:978 (My Custom15) Cbi.Connection.Connect2
2023-05-15 21:22:57:978 (My Custom15) Cbi.Connection.Connect3
2023-05-15 21:22:57:982 (My Custom15) Cbi.Connection.CreateAccount: account='Sim101' displayName='Sim101' fcm='' denomination=UsDollar forexLotSize=10000
2023-05-15 21:22:57:988 (My Custom15) Cbi.Account.OnConnectionStatus: account='Sim101' fcm='' status=Connecting previousStatus=Disconnected message=''
2023-05-15 21:22:57:989 (My Custom15) NinjaTrader.Gui.ControlCenter.OnConnectionStatus.DispatcherInvoke: Custom15 status=Connecting priceStatus=Connecting previousStatus=Disconnected previousPriceStatus=Disconnected errorCode=NoError nativeError=''
2023-05-15 21:22:57:991 (My Custom15) Gui.ControlCenter.OnConnectionStatus.Adding: provider=Custom15 status=Connecting priceStatus=Connecting
2023-05-15 21:22:57:991 (My Custom15) Cbi.Account.OnConnectionStatus.PositionExecutions: account='Sim101'
2023-05-15 21:22:58:012 (My Custom15) Cbi.Connection.Connect4
2023-05-15 21:22:58:341 NinjaTrader.Gui.ControlCenter.OnConnectionStatus: foundPriceLoss=False foundTradeLoss=False foundConnectingStatus=True foundConnected=False
2023-05-15 21:22:58:342 NinjaTrader.Gui.ControlCenter.OnConnectionStatus: Status=Connecting
2023-05-15 21:22:58:430 (My Custom15) Cbi.Connection.ConnectionStatusCallback: status=Disconnected priceStatus=Disconnected previousStatus=Connecting previousPriceStatus=Connecting errorCode=Panic nativeError='Brand name is not matching.'
2023-05-15 21:22:58:430 (My Custom15) Core.Connection.Statistics: connectAttempts=1/0.0ms
2023-05-15 21:22:58:432 (My Custom15) Cbi.Account.OnConnectionStatus: account='Sim101' fcm='' status=Disconnected previousStatus=Connecting message=''
2023-05-15 21:22:58:434 Flushing DB thread
2023-05-15 21:22:58:435 (My Custom15) NinjaTrader.Gui.ControlCenter.OnConnectionStatus: Custom15 status=Disconnected priceStatus=Disconnected previousStatus=Connecting previousPriceStatus=Connecting errorCode=Panic nativeError='Brand name is not matching.'
2023-05-15 21:22:58:436 (My Custom15) NinjaTrader.Gui.ControlCenter.OnConnectionStatus.DispatcherInvoke: Custom15 status=Disconnected priceStatus=Disconnected previousStatus=Connecting previousPriceStatus=Connecting errorCode=Panic nativeError='Brand name is not matching.'
Success requires no deodorant! (Sun Tzu)
December 2nd, 2024, 04:54 AM
Munich, Germany
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 73 since Feb 2010
Thanks Given: 15
Thanks Received: 25
psytopy
@
decs0057 were you able to resolve the issue?
I resolved issue with attached base class ConnectOptionsKH.
See example how to us it in ConnectOptionsYahooKH
Attached Files
Elite Membership required to download: ConnectOptionsKH.cs
Elite Membership required to download: ConnectOptionsYahooKH.cs
December 2nd, 2024, 05:02 AM
Munich, Germany
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 73 since Feb 2010
Thanks Given: 15
Thanks Received: 25
Does anyone have an example of a back-end adapter that uses supported IB API connector?
Last Updated on December 2, 2024