This is an indicator for plotting spreads, however will plot spreads using candlesticks.
Please note that one cannot trade spreads in NinjaTrader, however many people have asked for the ability to plot them with candlesticks so this is why I have made this indicator.
Please note it will only work with Time‐dependent charts, as time‐independent charts such as range bars, volume bars, tick, etc. have no fixed time scale for comparison of two separate instruments.
This is based on kdoren's code, however omits the synced dataseries code as well as some of the other features. It is meant to serve as an example of how to use candlesticks.
If you wish to use this as a basis for making a candlestick based indicator, you can simply change the High/low/open/close dataseries to some other name and have them calculated with your own formula.
|File Size||3.8 KB|
|# of Downloads||2971|
Importing to NinjaTrader 7 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 File > Utilities > Import NinjaScript
- Select the downloaded file from your desktop
Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.