Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 pkefal, 04-11-2024, 07:39 AM
    11 responses
    36 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Yesterday, 08:51 AM
    8 responses
    44 views
    0 likes
    Last Post bill2023  
    Started by yertle, Today, 08:38 AM
    6 responses
    25 views
    0 likes
    Last Post ryjoga
    by ryjoga
     
    Started by algospoke, Yesterday, 06:40 PM
    2 responses
    24 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X