NinjaScript > Language Reference > Indicator >

DrawOnPricePanel

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
If true, all draw objects are painted on the price panel which is the panel that displays the price bar data. If false, draw objects are painted on the actual indicator panel itself.

 

Property Value

This property returns true if the indicator paints draw objects on the price panel; otherwise, false. Default set to true.

 

Syntax

DrawOnPricePanel

 

 

Examples

// Initialize method of a custom indicator
protected override void Initialize()
{
    Add(new Plot(Color.Orange, "SMA"));
    DrawOnPricePanel = false; // Draw objects now paint on the indicator panel itself
}