NexusFi: Find Your Edge


Home Menu

 





Custom Adapter 'Brand name is not matching'


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one decs0057 with 2 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 776 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 6 posts
    2. attach_file 3 attachments




 
Search this Thread

Custom Adapter 'Brand name is not matching'

  #1 (permalink)
 decs0057 
Munich, Germany
 
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 71 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?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
ZombieSqueeze
Platforms and Indicators
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
58 thanks
Battlestations: Show us your trading desks!
48 thanks
NexusFi site changelog and issues/problem reporting
47 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
31 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,761 since Jun 2009
Thanks Given: 3,824
Thanks Received: 4,629



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 Twitter Reply With Quote
  #4 (permalink)
 decs0057 
Munich, Germany
 
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 71 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,761 since Jun 2009
Thanks Given: 3,824
Thanks Received: 4,629

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 Twitter Reply With Quote





Last Updated on May 19, 2023


© 2024 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 - Privacy Policy - Downloads - Top
no new posts