PaintPriceMarkers

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Indicator >

PaintPriceMarkers

Previous page Return to chapter overview Next page

Definition

If true, any indicator plot values display price markers in the y-axis.

 

Property Value

This property returns true if the indicator plot values display in the y-axis; otherwise, false. Default set to true.

 

Warning:  This property should ONLY bet set from the OnStateChange() method during State.SetDefaults or State.Configure

 

 

Syntax

PaintPriceMarkers

 

Examples

ns


protected override void OnStateChange()
{
    if (State == State.SetDefaults)
    {
        PaintPriceMarkers = true; // Indicator plots values display in the y-axis    
        AddPlot(Brushes.Orange, "SMA");
    }
}