From 35c70e093dd126998960519fcbc99ecd2ef9aa73 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 2 Aug 2025 06:07:15 +0000 Subject: [PATCH] =?UTF-8?q?2025=E5=B9=B48=E6=9C=882=E6=97=A5=2006:07?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3in1 copy.pine | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/3in1 copy.pine b/3in1 copy.pine index a4f6360..a849fa9 100644 --- a/3in1 copy.pine +++ b/3in1 copy.pine @@ -1460,7 +1460,7 @@ if show_info_table and barstate.islast // 获取配置的文字大小 text_size = get_text_size() - // ═════════ 扩展表格标题行(原6列 + 高级警报4列 + 成交量2列) ═════════ + // ═════════ 扩展表格标题行(原6列 + 高级警报4列 + 成交量2列 + SRBR1列) ═════════ table.cell(info_table, 0, 0, "RSI", text_color=color.white, bgcolor=color.new(color.purple, 30), text_size=text_size) table.cell(info_table, 1, 0, "价格位置", text_color=color.white, bgcolor=color.new(color.purple, 30), text_size=text_size) table.cell(info_table, 2, 0, "MA50位置", text_color=color.white, bgcolor=color.new(color.purple, 30), text_size=text_size) @@ -1475,6 +1475,8 @@ if show_info_table and barstate.islast // 成交量相关列 table.cell(info_table, 10, 0, "成交量", text_color=color.white, bgcolor=color.new(color.blue, 30), text_size=text_size) table.cell(info_table, 11, 0, "量能确认", text_color=color.white, bgcolor=color.new(color.blue, 30), text_size=text_size) + // SRBR相关列 + table.cell(info_table, 12, 0, "SRBR状态", text_color=color.white, bgcolor=color.new(color.maroon, 30), text_size=text_size) // ═════════ 多列紧凑数据 ═════════ // 计算各指标的背景颜色(类似combined_mrc_ma200_rsi.pine) @@ -1508,6 +1510,10 @@ if show_info_table and barstate.islast volume_color = current_volume > 0 ? color.new(color.green, 40) : current_volume < 0 ? color.new(color.red, 40) : color.new(color.gray, 60) volume_confirm_color = volume_is_strong ? color.new(color.lime, 40) : color.new(color.gray, 80) + // 计算SRBR相关数据 + srbr_status_text = srbr_bullish_signal ? "看涨" : srbr_bearish_signal ? "看跌" : "中性" + srbr_color = srbr_bullish_signal ? color.new(color.green, 40) : srbr_bearish_signal ? color.new(color.red, 40) : color.new(color.gray, 60) + // 第1行:数值 table.cell(info_table, 0, 1, str.tostring(rsi, '#.#'), text_color=color.black, bgcolor=rsi_color, text_size=text_size) table.cell(info_table, 1, 1, str.tostring(close, '#.##'), text_color=color.black, bgcolor=price_color, text_size=text_size) @@ -1523,6 +1529,8 @@ if show_info_table and barstate.islast // 成交量数据 table.cell(info_table, 10, 1, str.tostring(current_volume, '#.##'), text_color=color.black, bgcolor=volume_color, text_size=text_size) table.cell(info_table, 11, 1, volume_trend ? "✓确认" : "待确认", text_color=color.black, bgcolor=volume_confirm_color, text_size=text_size) + // SRBR数据 + table.cell(info_table, 12, 1, srbr_status_text, text_color=color.black, bgcolor=srbr_color, text_size=text_size) // 第2行:状态 table.cell(info_table, 0, 2, rsi_neutral ? "中性" : rsi_overbought_signal ? "超买" : rsi_oversold_signal ? "超卖" : "正常", text_color=color.black, bgcolor=rsi_color, text_size=text_size)