Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. [st_line1, trend1] = getSuperTrend(multi1, period1)
  2. [st_line2, trend2] = getSuperTrend(multi2, period2)
  3. [st_line3, trend3] = getSuperTrend(multi1, period1) and (multi2, period2)
  4.  
  5.  
  6. // Plotting
  7. plot1 = plot(st_line1, color = trend1 == 1 ? color.green : color.red, style = plot.style_line, linewidth = 1, title = "SuperTrend 1")
  8. plot2 = plot(st_line2, color = trend2 == 1 ? color.green : color.red, style = plot.style_line, linewidth = 1, title = "SuperTrend 2")
  9. plot3 = plot(st_line1 + st_line2, color = trend3 == 1 ? color.yellow : color.blue, style = plot.style_line, linewidth = 1, title = "SuperTrend 3")
  10. fill(plot1, plot2, color = color.aqua, title = "Cloud")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement