如何在tradingview的松树脚本中绘制水平线?

时间:2019-12-30 01:10:52

标签: pine-script

我是pine-script的新手,想寻求帮助

我已经尝试了好几天了,我知道答案将是如此简单...

我希望make脚本可以在make方程后绘制3条线的水平线

p1 = can be change this number in option script
r1 = can be change this number in option script
z= can be change this number in option script

p2= p1*z
r2= r1*z

x1 = (r2^2+p2^2)/0.5
if 5 > x1 <=3
   plot(x1, color=red)
or 
  18 > x1 <= 9
   plot(x1, color=yellow)
or 
  80 > x1 <= 20
   plot(x1, color=green)

希望所有图都是实线的水平线

0 个答案:

没有答案