2025年8月2日 04:50
This commit is contained in:
54
3in1.pine
54
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() =>
|
||||
|
||||
Reference in New Issue
Block a user