• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

I'm stuck on getting market data

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    I'm stuck on getting market data

    Hi All,

    I'm trying to develop a very basic add on to ninjatrader. This add on would show me a screen and display 4 prices on it (from 4 instruments). It would then compare the price changes between these instruments and alert me when some of those prices have changed.

    Eventually, I'd like an order button that would execute a spread but let's not get crazy.

    ALL I would like to do right now is to get the prices from the market data feed and display them in a window.

    I can't seem to find any documentation on how to retrieve data from the feed. Does anyone have sample code or can point me to a sample project that shows the data being updated?

    Thanks!

    Ron

    #2
    Hello rsteckly,

    Thanks for opening the thread.

    The AddOnFramework sample provided in our help guide has a working implementation for subscribing to MarketData and displaying the results in the AddOn window. The relevant code can be found in the Data Access regions of the sample. The sample subscribes to this data within the Instrument class of the InstrumentProvider interface.

    This sample can be found in our help guide here: https://ninjatrader.com/support/help...t_overview.htm

    Some documentation on the components used in the sample to handle subscribing to MarketData can be found below:

    InstrumentProvider - https://ninjatrader.com/support/help..._interface.htm

    MarketData - https://ninjatrader.com/support/help...marketdata.htm

    I currently do not have a smaller sample that I could share to demonstrate.

    Please let me know if I can be of further assistance.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by xsgex, Yesterday, 09:46 PM
    0 responses
    2 views
    0 likes
    Last Post xsgex
    by xsgex
     
    Started by Steve L, Yesterday, 09:36 PM
    0 responses
    3 views
    0 likes
    Last Post Steve L
    by Steve L
     
    Started by krugman25, Yesterday, 09:34 PM
    0 responses
    4 views
    0 likes
    Last Post krugman25  
    Started by indy73, Yesterday, 04:42 PM
    0 responses
    15 views
    0 likes
    Last Post indy73
    by indy73
     
    Started by Italianforex, Yesterday, 06:20 AM
    2 responses
    13 views
    0 likes
    Last Post gplatis
    by gplatis
     
    Working...
    X