NinjaScript > Language Reference > Indicator >

FormatPriceMarker()

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
The FormatPriceMarker() method can be used to format the plot values

 

Property Value

This method returns a string representing the formatted price value.

 

Syntax

You must override the method in your indicator with the following syntax

 

protected override string FormatPriceMarker(double price)
{
 
}

 

 

Examples

// FormatPriceMarker method of a custom indicator
public override string FormatPriceMarker(double price)
{

    // Formats price values to 4 decimal places
    return price.ToString("N4");
}