format

format.inherit #

Is a named constant for selecting the formatting of the script output values from the parent series in the indicator function.

関連 #

indicator, format.price, format.volume

format.mintick #

Is a named constant to use with the str.tostring function. Passing a number to str.tostring with this argument rounds the number to the nearest value that can be divided by syminfo.mintick, without the remainder, with ties rounding up, and returns the string version of said value with trailing zeroes.

関連 #

indicator, format.inherit, format.price, format.volume

format.percent #

Is a named constant for selecting the formatting of the script output values as a percentage in the indicator function. It adds a percent sign after values.

備考 #

The default precision is 2, regardless of the precision of the chart itself. This can be changed with the ‘precision’ argument of the indicator function.

関連 #

indicator, format.inherit, format.price, format.volume

format.price #

Is a named constant for selecting the formatting of the script output values as prices in the indicator function.

備考 #

If format is format.price, default precision value is set. You can use the precision argument of indicator function to change the precision value.

関連 #

indicator, format.inherit, format.volume

format.volume #

Is a named constant for selecting the formatting of the script output values as volume in the indicator function, e.g. ‘5183’ will be formatted as ‘5.183K’.

関連 #

indicator, format.inherit, format.price

© - 2021 - TradingViewの教科書