2025年8月2日 06:13

This commit is contained in:
2025-08-02 06:13:22 +00:00
parent a163306ff3
commit e5f5c3bb3b

View File

@@ -1738,8 +1738,12 @@ if show_mtf_table and barstate.islast
table.cell(mtf_table, 8, 2, na(distance_to_mean_5m) ? "N/A" : str.tostring(distance_to_mean_5m, '#.##'), text_color=color.black, bgcolor=mean_bg_color_5m, text_size=text_size)
table.cell(mtf_table, 9, 2, na(distance_to_r1_5m) ? "N/A" : str.tostring(distance_to_r1_5m, '#.##'), text_color=color.black, bgcolor=r1_bg_color_5m, text_size=text_size)
table.cell(mtf_table, 10, 2, na(distance_to_s1_5m) ? "N/A" : str.tostring(distance_to_s1_5m, '#.##'), text_color=color.black, bgcolor=s1_bg_color_5m, text_size=text_size)
table.cell(mtf_table, 11, 2, get_signal_text(osc_5m, long_5m, short_5m), text_color=color.black, bgcolor=signal_color_5m, text_size=text_size)
table.cell(mtf_table, 12, 2, get_final_judgment(osc_5m, long_5m, short_5m), text_color=color.black, bgcolor=signal_color_5m, text_size=text_size)
// SRBR状态
srbr_status_5m = srbr_bullish_5m ? "看涨" : srbr_bearish_5m ? "看跌" : "中性"
srbr_color_5m = srbr_bullish_5m ? color.new(color.green, 40) : srbr_bearish_5m ? color.new(color.red, 40) : color.new(color.gray, 60)
table.cell(mtf_table, 11, 2, srbr_status_5m, text_color=color.black, bgcolor=srbr_color_5m, text_size=text_size)
table.cell(mtf_table, 12, 2, get_signal_text(osc_5m, long_5m, short_5m), text_color=color.black, bgcolor=signal_color_5m, text_size=text_size)
table.cell(mtf_table, 13, 2, get_final_judgment(osc_5m, long_5m, short_5m), text_color=color.black, bgcolor=signal_color_5m, text_size=text_size)
// ═════════ 15分钟时间框架数据 ═════════
if mtf_15m and not na(rsi_15m)