Coloring a region

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Educational Resources > Reference Samples > Indicator >

Coloring a region

Previous page Return to chapter overview Next 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()

Draw.Region()

Other methods and properties of interest include:

Draw.Diamond()

Draw.Rectangle()

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 Tools > Import > NinjaScript

3.Select the downloaded file

 

SampleDrawRegion_NT8.zip