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 usazencortex, Today, 12:43 AM
    0 responses
    1 view
    0 likes
    Last Post usazencortex  
    Started by sidlercom80, 10-28-2023, 08:49 AM
    168 responses
    2,262 views
    0 likes
    Last Post sidlercom80  
    Started by Barry Milan, Yesterday, 10:35 PM
    3 responses
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by WeyldFalcon, 12-10-2020, 06:48 PM
    14 responses
    1,429 views
    0 likes
    Last Post Handclap0241  
    Started by DJ888, 04-16-2024, 06:09 PM
    2 responses
    9 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Working...
    X