Plots the Spread of two instruments
The first instrument is the primary chart data series. The secondary instrument is specified by the parameter "Symbol2".
The Parameters "Qty1" and "Qty2" are multipliers which are applied to each instrument's price before adding the two; default values are "Qty1=1" and "Qty2=‐1" which will simply plot the difference between the two instruments (P1‐P2). They may be set to other values, for example in pairs trading where the quantities might be set for roughly equal dollar amounts for each instrument. Also useful with Interactive Brokers' "Generic Combo" orders.
The Spread indicator may be used as the input to other indicators such as Bollinger Bands, to plot its relationship to its recent volatility.
The "UseMultiplier" parameter defaults to "true" to incorporate the contract multiplier into the calculation.
Default behavior is "Calculate.OnEachTick" for real‐time display; set to "Calculate.OnBarClose" if not needed.
Created By | NinjaTrader_Jim |
NinjaTrader Version | 8 |
File Size | 2.1 KB |
Create Date | 08/23/2017 |
# of Downloads | 2555 |
Importing to NinjaTrader 8 is Easy!
To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:
- Download the app or add-on file to your desktop
- From the NinjaTrader Control Center window, select the menu Tools > Import > NinjaScript Add-On…
- Select the downloaded file from your desktop
Questions?
Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.