2025年8月2日 13:17

This commit is contained in:
2025-08-02 13:17:52 +00:00
parent be6dd0f52f
commit 4c16812d8b

View File

@@ -155,6 +155,25 @@ table_position = input.string('top_right', title='表格位置', options=['top_l
// 辅助函数定义
//************************************************************************************************************
// ═════════ 交易对特定成交量参数获取函数 ════════
get_volume_multiplier() =>
sym = ticker.standard(syminfo.tickerid)
if str.contains(sym, "BINANCE:")
crypto_vol_multiplier // Binance 加密货币使用加密货币倍数
else if str.contains(sym, "XAUUSD") or str.contains(sym, "XAGUSD")
commodity_vol_multiplier // 贵金属使用商品倍数
else
forex_vol_multiplier // 其他使用外汇倍数
get_min_volume_ratio() =>
sym = ticker.standard(syminfo.tickerid)
if str.contains(sym, "BINANCE:")
0.4 // 加密货币使用较高的最小比率
else if str.contains(sym, "XAUUSD") or str.contains(sym, "XAGUSD")
0.35 // 贵金属使用中等比率
else
0.3 // 外汇使用标准比率
// ═════════ 成交量分析函数(改进版本) ════════
// Delta Volume Function - 区分买卖成交量
upAndDownVolume() =>
@@ -339,24 +358,7 @@ get_r1s1_distance_threshold() =>
'BINANCE:MATICUSDT' => binance_matic_r1s1_dist
=> default_r1s1_dist
// ═════════ 交易对特定成交量参数获取函数 ════════
get_volume_multiplier() =>
sym = ticker.standard(syminfo.tickerid)
if str.contains(sym, "BINANCE:")
crypto_vol_multiplier // Binance 加密货币使用加密货币倍数
else if str.contains(sym, "XAUUSD") or str.contains(sym, "XAGUSD")
commodity_vol_multiplier // 贵金属使用商品倍数
else
forex_vol_multiplier // 其他使用外汇倍数
get_min_volume_ratio() =>
sym = ticker.standard(syminfo.tickerid)
if str.contains(sym, "BINANCE:")
0.4 // 加密货币使用较高的最小比率
else if str.contains(sym, "XAUUSD") or str.contains(sym, "XAGUSD")
0.35 // 贵金属使用中等比率
else
0.3 // 外汇使用标准比率
// 这些函数已移动到更早的位置
// ═════════ 表格文字大小转换 ════════
get_text_size() =>