NinjaScript > Educational Resources > Reference Samples > Indicator >

Coloring a region

Print this Topic Previous pageReturn to chapter overviewNext page

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()
•DrawRegion()

 

Other methods and properties of interest include

•DrawDiamond()
•DrawRectangle()
•DrawOnPricePanel

 

Import instructions

1.Download the file contained in this Help Guide topic to your PC desktop
2.From the Control Center window, select the menu File > Utilities > Import NinjaScript
3.Select the downloaded file and click Import.

 

SampleDrawRegion_NT7.zip