NexusFi: Find Your Edge


Home Menu

 





[Q] Indicator-to-External App comms


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Traderji with 4 posts (1 thanks)
    2. looks_two TimeTrade with 2 posts (2 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 NJAMC with 1 posts (0 thanks)
    1. trending_up 3,048 views
    2. thumb_up 4 thanks given
    3. group 4 followers
    1. forum 8 posts
    2. attach_file 1 attachments




 
Search this Thread

[Q] Indicator-to-External App comms

  #1 (permalink)
 Traderji 
Australia
 
Experience: Advanced
Platform: NinjaTrader, Multicharts
Trading: Spot Forex, Gold, Silver
Posts: 176 since Oct 2010
Thanks Given: 114
Thanks Received: 114

I would like to send realtime Market Depth data from Ninjatrader to an external program. I looked at the Ninjatrader.Client.dll option but it is very poorly documented and completely unsupported by NT. Besides VS Intellisense does not show a OnMarketDepth() function to call.

Any suggestions on the best method to do this?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
NexusFi Journal Challenge - April 2024
Feedback and Announcements
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
58 thanks
Battlestations: Show us your trading desks!
51 thanks
NexusFi site changelog and issues/problem reporting
47 thanks
What percentage per day is possible? [Poll]
31 thanks
GFIs1 1 DAX trade per day journal
31 thanks

  #3 (permalink)
 TimeTrade 
Erfurt Germany
 
Experience: Master
Platform: rtMagic, NinjaTrader
Broker: AMP/CQG, IAB
Trading: ES, 6E, FDAX, FGBL
Posts: 338 since Aug 2011
Thanks Given: 54
Thanks Received: 461



Traderji View Post
I would like to send realtime Market Depth data from Ninjatrader to an external program. I looked at the Ninjatrader.Client.dll option but it is very poorly documented and completely unsupported by NT. Besides VS Intellisense does not show a OnMarketDepth() function to call.

Any suggestions on the best method to do this?


..."Ninjatrader.Client.dll"... you thiink to complex

- start with a simple indicator without any function
- search in the (elite) download section for a sample of live market profile oder live stats,... with a included OnMarketDepth() event function as calling sample and remove the functional code
- write own startup / terminate functions for create and dispose your needed classes

- now create a named pipe, a socket or look for window handle in your startup function
- in your OnMarketDepth() fill a structure with all needed informations and transmit this as binary record or as serialized record per WM_COPYDATA or write to pipe/socket
- write the cleanup code in your termiantion function

For all this you can use any C# sources and samples (google, microsoft...)
Write your own external receive app and make a first test. Add a good NON BLOCKING error handling in the NT7 code (connection break, reconnect,...) or better implement a additional threaded ring buffer logic in your indicator for 100% secure non blocking OnMarketDepth() work and realize the transmit code thread based.

This is all, no magic, only a little bit logic work and search for copy&paste

Reply With Quote
The following 2 users say Thank You to TimeTrade for this post:
  #4 (permalink)
 Traderji 
Australia
 
Experience: Advanced
Platform: NinjaTrader, Multicharts
Trading: Spot Forex, Gold, Silver
Posts: 176 since Oct 2010
Thanks Given: 114
Thanks Received: 114


TimeTrade View Post
..."Ninjatrader.Client.dll"... you thiink to complex

.
.
.

This is all, no magic, only a little bit logic work and search for copy&paste


Thank you for a more comprehensive answer than I could have reasonably hoped for

Started this thread Reply With Quote
  #5 (permalink)
 TimeTrade 
Erfurt Germany
 
Experience: Master
Platform: rtMagic, NinjaTrader
Broker: AMP/CQG, IAB
Trading: ES, 6E, FDAX, FGBL
Posts: 338 since Aug 2011
Thanks Given: 54
Thanks Received: 461


Traderji View Post
Thank you for a more comprehensive answer than I could have reasonably hoped for

I hope, you well publish your version of the NT7 code part for this "problem"... up to this time no other version can be find... you the first publisher and its no "top secret" logic/work

Reply With Quote
  #6 (permalink)
 Traderji 
Australia
 
Experience: Advanced
Platform: NinjaTrader, Multicharts
Trading: Spot Forex, Gold, Silver
Posts: 176 since Oct 2010
Thanks Given: 114
Thanks Received: 114


TimeTrade View Post
I hope, you well publish your version of the NT7 code part for this "problem"... up to this time no other version can be find... you the first publisher and its no "top secret" logic/work


Generally I post on futures.io (formerly BMT) any indicators that I written. But since this one will be orders of magnitude more complex than the previous ones I have written, so as long as no one laughs at my spaghetti code I'll be happy to share

Started this thread Reply With Quote
  #7 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394


Traderji View Post
Generally I post on futures.io (formerly BMT) any indicators that I written. But since this one will be orders of magnitude more complex than the previous ones I have written, so as long as no one laughs at my spaghetti code I'll be happy to share

Angel Hair code is what I develop... Just a little finer thread and more strands!

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 Traderji 
Australia
 
Experience: Advanced
Platform: NinjaTrader, Multicharts
Trading: Spot Forex, Gold, Silver
Posts: 176 since Oct 2010
Thanks Given: 114
Thanks Received: 114


NJAMC View Post
Angel Hair code is what I develop... Just a little finer thread and more strands!



Started this thread Reply With Quote
The following user says Thank You to Traderji for this post:
  #9 (permalink)
habibalex
pasadena
 
Posts: 6 since Feb 2013
Thanks Given: 3
Thanks Received: 2

Traderji did you get your code to work?

Reply With Quote
The following user says Thank You to habibalex for this post:





Last Updated on May 12, 2013


© 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