NexusFi: Find Your Edge


Home Menu

 





Custom Adapter 'Brand name is not matching'


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one decs0057 with 4 posts (0 thanks)
    2. looks_two psytopy with 2 posts (0 thanks)
    3. looks_3 sam028 with 2 posts (0 thanks)
    4. looks_4 jeronymite with 1 posts (0 thanks)
    1. trending_up 2,435 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 8 posts
    2. attach_file 5 attachments




 
Search this Thread
  #1 (permalink)
 decs0057 
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?


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
$134M Ground Entry Contract in Disputed Final Review Aft …
Prediction Markets & Event Contracts
CFTC Chair Selig Puts Timeline on US Crypto Perpetual Fu …
Cryptocurrency
Cboe Launches BITVX Bitcoin Volatility Index and Unveils …
Prediction Markets & Event Contracts
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
Iran Ceasefire Surges to 19.5% on US 15-Point Plan -- 82 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Hello Im new here
5 thanks
  #2 (permalink)
 jeronymite   is a Vendor
 
Posts: 21 since Jul 2013
Thanks Given: 6
Thanks Received: 22

Hard to assist without the actual code. Are you able to share?


Reply With Quote
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,756 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,632



decs0057 View Post
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)
Follow me on X Reply With Quote
  #4 (permalink)
 decs0057 
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
Started this thread Reply With Quote
  #5 (permalink)
 psytopy 
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?


Reply With Quote
  #6 (permalink)
 psytopy 
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
Reply With Quote
  #7 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,756 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,632

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 View Post
@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)
Follow me on X Reply With Quote
  #8 (permalink)
 decs0057 
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 View Post
@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
Started this thread Reply With Quote
  #9 (permalink)
 decs0057 
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?


Started this thread Reply With Quote




Last Updated on December 2, 2024


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts