PDA

View Full Version : Indicator: Coloring a region


NinjaTrader_Josh
12-02-2007, 01:58 PM
Reference sample for NinjaTrader 6.5.XXXX.X or greater.

Filling in a region between two DataSeries objects on your indicators can be beneficial for creating visual indicators. The colored regions allow for immediate recognition of various zones that can help a discretionary trader quickly identify what’s important and trade accordingly.

This reference sample demonstrates the following concept:

Coloring a region between two DataSeries objects
Coloring a region between a DataSeries object and a double value

Important methods and properties used include:

Bollinger() (http://www.ninjatrader.com/support/helpGuides/nt7/bollinger_bands.htm)
DrawRegion() (http://www.ninjatrader.com/support/helpGuides/nt7/drawregion.htm)

Other methods and properties of interest include:

DrawDiamond() (http://www.ninjatrader.com/support/helpGuides/nt7/drawdiamond.htm)
DrawRectangle() (http://www.ninjatrader.com/support/helpGuides/nt7/drawrectangle.htm)
DrawOnPricePanel (http://www.ninjatrader.com/support/helpGuides/nt7/drawonpricepanel.htm)

Import instructions for NinjaTrader 6.5.XXXX.X or greater:


Download the file contained in this thread to your PC desktop
From the Control Center window, select the menu File > Utilities > Import NinjaScript
Select the downloaded file