Advertisement
PineCoders

alertcondition() and highest() arguments

Jul 31st, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. //@version=4
  2. study("")
  3. // Works as alertcondition() "message=" argument?
  4. s1 = "kyky" // Y s1 is compile time const string
  5. s2 = input("ky") // N s2 is runtime input string
  6. s3 = "" //
  7. s3 := s2 + s1 // N s3 is mutable series string
  8. s4 = close > open ? "yes" : s3 // N s4 is series string
  9. s5 = s1 + s2 // N s5 is runtime input string
  10. s6 = s1 + "aaa" // Y s6 is compile time const string
  11. s7 = s1 + tostring(10) // N s7 is compile time simple string
  12. s8 = s1 + tostring(close) // N s8 is series string
  13. alertcondition(true, "", s6)
  14.  
  15. // Works as highest() "length=" argument?
  16. a1 = 1 // Y a1 is compile-time const int
  17. a2 = input(2) // Y a2 is runtime input int
  18. a3 = input(3)
  19. a3 := a1 + a2 // Y a3 is mutable series int
  20. a4 = close > open ? 10 : 20 // N a4 is series int
  21. a5 = a1 + a2 // Y a5 is runtime input int
  22. a6 = a1 + 11 // Y a6 is compile-time const int
  23. plot(highest(a6))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement