PROTECTED SOURCE SCRIPT
K线Delta显示(带总和)

//version=5
indicator("K线Delta显示(带总和)", overlay=true)
// 输入参数
show_labels = input.bool(true, title="在K线上显示Delta值")
show_cumulative = input.bool(true, title="显示累计Delta")
period_length = input.int(24, title="计算周期", minval=1)
// 数值格式化函数 - 将大数字转换为K/M/B单位
format_number(value) =>
abs_value = math.abs(value)
if abs_value >= 1000000000
str.tostring(value / 1000000000, "#.##") + "B"
else if abs_value >= 1000000
str.tostring(value / 1000000, "#.##") + "M"
else if abs_value >= 1000
str.tostring(value / 1000, "#.##") + "K"
else
indicator("K线Delta显示(带总和)", overlay=true)
// 输入参数
show_labels = input.bool(true, title="在K线上显示Delta值")
show_cumulative = input.bool(true, title="显示累计Delta")
period_length = input.int(24, title="计算周期", minval=1)
// 数值格式化函数 - 将大数字转换为K/M/B单位
format_number(value) =>
abs_value = math.abs(value)
if abs_value >= 1000000000
str.tostring(value / 1000000000, "#.##") + "B"
else if abs_value >= 1000000
str.tostring(value / 1000000, "#.##") + "M"
else if abs_value >= 1000
str.tostring(value / 1000, "#.##") + "K"
else
受保护脚本
此脚本以闭源形式发布。 However, you can use it freely and without any limitations – learn more here.
免责声明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
受保护脚本
此脚本以闭源形式发布。 However, you can use it freely and without any limitations – learn more here.
免责声明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.