[英]Can it be plot only on one candle?
当我用我写的代码显示 plot 时,它看起来像一张图片。
但我想修改代码,使 plot 只显示在一根蜡烛上。
我需要帮助。
TP = strategy.position_avg_price * (1 + min_profit)
var bool TP_reached = 0
if ta.crossover(high, TP)
TP_reached := 1
close_condition = TP_reached ? TP : 0
plot(close_condition, style=plot.style_cross, linewidth=6, color=color.new(color.fuchsia, 0))
尝试这个
plot(close_condition and not close_condition[1], style=plot.style_cross, linewidth=6, color=color.new(color.fuchsia, 0))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.