From 3c95735326ac48557b5d825c7569b8e100b4599a Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 2 Aug 2025 04:50:00 +0000 Subject: [PATCH] =?UTF-8?q?2025=E5=B9=B48=E6=9C=882=E6=97=A5=2004:50?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3in1.pine | 54 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/3in1.pine b/3in1.pine index 9409016..90c4360 100644 --- a/3in1.pine +++ b/3in1.pine @@ -143,6 +143,34 @@ table_position = input.string('top_right', title='表格位置', options=['top_l // 辅助函数定义 //************************************************************************************************************ +// ═════════ 品种特定成交量参数获取 ════════ +get_volume_multiplier() => + sym = ticker.standard(syminfo.tickerid) + switch sym + 'TICKMILL:BTCUSD' => btc_vol_multiplier + 'TICKMILL:XAUUSD' => xau_vol_multiplier + 'TICKMILL:ETHUSD' => eth_vol_multiplier + 'TICKMILL:GBPJPY' => gbp_vol_multiplier + => vol_multiplier + +get_volume_strength_multiplier() => + sym = ticker.standard(syminfo.tickerid) + switch sym + 'TICKMILL:BTCUSD' => btc_vol_strength + 'TICKMILL:XAUUSD' => xau_vol_strength + 'TICKMILL:ETHUSD' => eth_vol_strength + 'TICKMILL:GBPJPY' => gbp_vol_strength + => volume_strength_multiplier + +get_min_volume_ratio() => + sym = ticker.standard(syminfo.tickerid) + switch sym + 'TICKMILL:BTCUSD' => btc_min_vol_ratio + 'TICKMILL:XAUUSD' => xau_min_vol_ratio + 'TICKMILL:ETHUSD' => eth_min_vol_ratio + 'TICKMILL:GBPJPY' => gbp_min_vol_ratio + => min_volume_ratio + // ═════════ 成交量分析函数(改进版本) ════════ // Delta Volume Function - 区分买卖成交量 upAndDownVolume() => @@ -249,33 +277,7 @@ get_r1s1_distance_threshold() => 'TICKMILL:GBPJPY' => gbp_r1s1_dist => default_r1s1_dist -// ═════════ 品种特定成交量参数获取 ════════ -get_volume_multiplier() => - sym = ticker.standard(syminfo.tickerid) - switch sym - 'TICKMILL:BTCUSD' => btc_vol_multiplier - 'TICKMILL:XAUUSD' => xau_vol_multiplier - 'TICKMILL:ETHUSD' => eth_vol_multiplier - 'TICKMILL:GBPJPY' => gbp_vol_multiplier - => vol_multiplier -get_volume_strength_multiplier() => - sym = ticker.standard(syminfo.tickerid) - switch sym - 'TICKMILL:BTCUSD' => btc_vol_strength - 'TICKMILL:XAUUSD' => xau_vol_strength - 'TICKMILL:ETHUSD' => eth_vol_strength - 'TICKMILL:GBPJPY' => gbp_vol_strength - => volume_strength_multiplier - -get_min_volume_ratio() => - sym = ticker.standard(syminfo.tickerid) - switch sym - 'TICKMILL:BTCUSD' => btc_min_vol_ratio - 'TICKMILL:XAUUSD' => xau_min_vol_ratio - 'TICKMILL:ETHUSD' => eth_min_vol_ratio - 'TICKMILL:GBPJPY' => gbp_min_vol_ratio - => min_volume_ratio // ═════════ 表格文字大小转换 ════════ get_text_size() =>