So I have a few questions:
Q1. Where can I find a list of data symbols that can be added via the built-in Continuium, etc. feeds?
Q2. Is there sample code that loads and stores data from other REST apis?
Q3. Is there a direct way to add calculated fields to a chart?
In more detail....
Q1: Is there a list somewhere that tells me where to get feeds for the following symbols? Or the possible list of symbols?
NinjaTrader comes preloaded with the most commonly traded instruments. Should you wish to add an instrument to your database that is not located in the preloaded lists, please follow these steps:[LIST][*]Navigate to the Control Center > Tools > Instruments window.[*]Left-click on the ‘add’ button that appears near the lower right-hand corner of the Instruments window.[*]Enter instrument-specific symbol mapping, exchanges, and other information on the Instrument editor that appears. This information will largely depend on your broker or data feed provider’s specific settings regarding the instrument in question.[*]Left-click the OK button once each field has been filled out with correct information.[/LIST] The new instrument has now been created in your database. Should you wish to add this instrument to an instrument list:[LIST][*]Navigate to the Control Center > Tools > Instruments Lists window.[*]Left-click to select the instrument list that you wish to add this instrument to in the left panel, then left-click on the ‘add’ button at the bottom of the right-hand panel.[*]Type the name and (if applicable) front month of your instrument in the search field that appears. Press the Enter button on your keyboard to confirm this change.[*]Left-click the OK button to close the Instrument Lists window.[/LIST] Your new instrument is now added to the instrument list of your choice.
Maybe for CQG (Continuum) it's here? https://www.cqg.com/partners/exchanges/tradable-symbols or http://help.cqg.com/fcm/symbols.xlsx
But I didn't find what I wanted -- bond rates aren't exactly "tradable symbols" so maybe I just need to get my own feed somewhere else?
Q2: Are there any code examples for how I'd store and use custom data feeds that aren't already part of one of the predefined sources? How should I use data from some web service that provides what I need?
I'd like to include trend lines based on other stock, futures and bond quotes as well as combinations of them.
EXAMPLE 1: DE10Y - DE02Y
German Government Bonds 10 Year Yield - German Government Bonds 2 Year Yield
TradingView can do all these things and provides the data. I'd like to have this in Ninja Trader.
Q3: How would I draw lines that are based on multiple data elements? i.e. Calculations based on multiple fields?
EXAMPLE 3: ZN - ZF - 10 yr. T-Note Futures - 5 Year T-Note Futures
If I were to do this by brute force then I'd add a new Indicator that adds the required series [AddDataSeries()] and then calculates in OnBarUpdate() and exports the values.
OR is this common behavior built in?
Is there an example?

Comment