xmd79

MINDY TripleRSI

Oct 10th, 2021
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
  2. // © mindykittyjung
  3.  
  4. //@version=4
  5. study("MINDY TripleRSI",overlay=0)
  6.  
  7. // RSI Indicator
  8. rsi1_period = input(10, title ="RSI First Period", minval = 1)
  9. rsi2_period = input(25, title ="RSI Secound Period", minval=1)
  10. rsi3_period = input(200, title = "RSI Third Period", minval = 1 )
  11.  
  12.  
  13. MaxBuy_Fast = input(55,title = "Max Buy Fast",minval = 20)
  14. MaxBuy_Med = input(55,title = "Max Buy Med", minval = 20)
  15. MaxBuy_Slow = input(55,title = "Max Buy Slow", minval = 20)
  16. MinBuy_Fast = input(10,title = "Min Buy Fast",minval = 20)
  17. MinBuy_Med = input(10,title = "Min Buy Med", minval = 20)
  18. MinBuy_Slow = input(10,title = "Min Buy Slow", minval = 20)
  19.  
  20. MaxSell_Fast = input(65,title = "Max Sell Fast",minval = 20)
  21. MaxSell_Med = input(65,title = "Max Sell Med", minval = 20)
  22. MaxSell_Slow = input(65,title = "Max Sell Slow", minval = 20)
  23.  
  24. MinSell_Fast = input(35,title = "Min Sell Fast",minval = 20)
  25. MinSell_Med = input(35,title = "Min Sell Med", minval = 20)
  26. MinSell_Slow = input(35,title = "Min Sell Slow", minval = 20)
  27.  
  28. diff_rsi = input(5,title = "Different RSI (Point)", minval = 1)
  29.  
  30. rsi1=rsi(close,rsi1_period)
  31. rsi2=rsi(close,rsi2_period)
  32. rsi3=rsi(close,rsi3_period)
  33.  
  34. rsi_crossup = rsi1 > rsi2 and rsi2 > rsi3 and rsi1 <= MaxBuy_Fast and rsi1 >= MinBuy_Fast and rsi2 < MaxBuy_Med and rsi2 >= MinBuy_Med and rsi3 < MaxBuy_Slow and rsi3 > MinBuy_Slow and abs(rsi1-rsi2) <= diff_rsi and abs(rsi2-rsi3) <= diff_rsi
  35.  
  36. rsi_crossdown = rsi1 < rsi2 and rsi2 < rsi3 and rsi1 <= MaxSell_Fast and rsi1 >= MinSell_Fast and rsi2 <= MaxSell_Med and rsi2 >= MinSell_Med and rsi3 <= MaxSell_Slow and rsi3 >= MinSell_Slow and abs(rsi1-rsi2) <= diff_rsi and abs(rsi2-rsi3) <= diff_rsi
  37. plot(rsi1,title="RSI_Fast",color=color.blue)
  38. plot(rsi2,title="RSI_Slow",color=color.orange)
  39. plot(rsi3, title = "RSI Third", color = color.red)
  40.  
  41. plotshape(rsi_crossup,style=shape.triangleup,location=location.bottom,color=color.blue,size=size.tiny)
  42. plotshape(rsi_crossdown,style=shape.triangledown,location= location.top,color=color.red,size=size.tiny)
Advertisement
Add Comment
Please, Sign In to add comment