Ratio

Plots the Ratio of two instruments

The first (numerator) instrument is the primary chart data series. The secondary (denominator) instrument is specified by the parameter "Symbol2". The secondary instrument does not need to be plotted on the chart, but if it is, then "Symbol2" may be left blank and if will default to the second instrument displayed on the chart.

The Ratio indicator may be used as the input to other indicators such as Bollinger Bands, to plot its relationship to its recent volatility.

The "Normalize" parameter defaults to "false" (Ratio = P1/P2), but may be set to "true" for a normalized ratio calculation: Ratio = P1/(P1+P2)

The "UseMultiplier" parameter defaults to "true" to incorporate the contract multiplier into the calculation.

Default behavior is "CalculateOnBarClose = false" for real‐time display; set to "true" if not needed.

Created By kdoren
NinjaTrader Version 7
File Size 7.8 KB
Create Date 06/28/2010
# of Downloads 1373

Importing to NinjaTrader 7 is Easy!

To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:

  1. Download the app or add-on file to your desktop
  2. From the NinjaTrader Control Center window, select the menu File > Utilities > Import NinjaScript
  3. 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.