Advertisement
Guest User

Untitled

a guest
Apr 11th, 2024
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. //What to Display?
  2. wtd = input.string("Cobra Curve", "What to display?", ["Cobra Curve", "TPI", "Conditions"] )
  3. //Plottings
  4. ST = str.contains(wtd,"TPI")
  5. SCC = str.contains(wtd,"Cobra Curve")
  6. SC = str.contains(wtd,"Conditions")
  7.  
  8.  
  9. plot (ST ?TPI: na , title = "Long TPI" , color = TPIcol)
  10. plot (SC ? 1 : na , title = "Long" , color = c1 ? color.lime : na)
  11. plot (SC ?-1 : na , title = "Short" , color = c2 ? color.red : na)
  12. plot (SC ? 0 : na , title = "STC" , color = c3 ? color.lime : color.red)
  13.  
  14.  
  15. plot(SCC ? cobra.curve(disp_ind) : na, color = color.rgb(213, 213, 213))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement