Advertisement
danucante

Untitled

Nov 11th, 2023
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. length_AROON = input.int(25, minval=1, group = "AROON")
  2.  
  3. //CALCULATIONS//
  4. upper = 100 * (ta.highestbars(high, length_AROON + 1) + length_AROON)/length_AROON
  5. lower = 100 * (ta.lowestbars(low, length_AROON + 1) + length_AROON)/length_AROON
  6.  
  7. //TRADE CONDITIONS//
  8. AROON_LONG = upper > 94 and lower < 6
  9. AROON_SHORT = lower > 94 and upper < 6
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement