Barcolor ใน TradingView

Viewing 0 reply threads
  • Author
    Posts
    • #48176

      Barcolor เขียว-แดง ใน Pine script TradingView นี้ ต้องเขียนเพิ่มอย่างไรครับ

      study(“Turtle Donchian Channel”, overlay=true)
      long = input(title=”long”, type=input.integer, defval=20)
      short = input(title=”short”, type=input.integer, defval=20)
      upper = highest(close[1], long)
      lower = lowest(close[1], short)
      long_signal = close >= upper
      short_signal = close <= lower
      plot(upper, color=color.rgb(75, 246, 8), linewidth=2, transp=20)
      plot(lower, color=color.rgb(255, 59, 69), linewidth=2, transp=20)
      plotshape(long_signal, style=shape.triangleup, location=location.abovebar, color=color.green)
      plotshape(short_signal, style=shape.triangledown, location=location.belowbar, color=color.red)

      ขอบคุณมากครับ

Viewing 0 reply threads
  • You must be logged in to reply to this topic.