DrawOnPricePanel

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Indicator >

DrawOnPricePanel

Previous page Return to chapter overview Next page

Definition

Determines the chart panel the draw objects renders

 

Property Value

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

 

Syntax

DrawOnPricePanel

 

Examples

ns


protected override void OnStateChange()
{
    if (State == State.SetDefaults)

    {

         DrawOnPricePanel = false; // Draw objects now paint on the indicator panel itself  

         AddPlot(Brushes.Orange, "SMA");

    }
}