Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.02 KB | None | 0 0
  1. // @version=4
  2. // @author=The_Caretaker
  3. // The Caretakers On Chart Rsi Div V4
  4.  
  5. study ( title = "Caretakers Rsi Div Indicator Version 4" , shorttitle = "CT Rsi Div V4" , overlay = true, format = format.price , precision = 2 )
  6.  
  7. // Inputs
  8.  
  9. RsiLen       = input ( 14  , minval = 1 , title = "RSI Length" )
  10. RsiEmaLen    = input ( 22    , minval = 1 , title = "RSI EMA Length" )
  11.  
  12. Labels       = input ( true , "Bull & Bear Arrows" )
  13. ArrowOffSet  = input ( 10  , minval = 1 , maxval = 100, title = "ArrowOffset 1" )
  14.  
  15. GuideLines   = input ( true , "Guide Lines")
  16. OffSet1      = input ( 0  , minval = 0 , maxval = 100, title = "Line Offset" )
  17.  
  18. VrtBars      = input ( true , "Vertical Signal Bars" )
  19. LookBackBars = input ( 2000 , "Div Lookback Bars" , type = input.integer , minval = 1, maxval = 4000 )
  20.  
  21. // Calculations
  22.  
  23. Rsi     = rsi ( close , RsiLen )
  24. RsiEma  = ema   ( Rsi   , RsiEmaLen)
  25.  
  26. // Divergence Detection Function Declarations
  27.  
  28. HiBars1 (S) => S[4] < S[2] and S[3] < S[2] and S[2] > S[1] and S[2] > S[0]
  29. LoBars1 (S) => S[4] > S[2] and S[3] > S[2] and S[2] < S[1] and S[2] < S[0]
  30.  
  31. HiBars2 (S) => S[6] < S[3] and S[5] < S[3] and S[4] < S[3] and S[3] > S[2] and S[3] > S[1] and S[3] > S[0]
  32. LoBars2 (S) => S[6] > S[3] and S[5] > S[3] and S[4] > S[3] and S[3] < S[2] and S[3] < S[1] and S[3] < S[0]
  33.  
  34. HiBars3 (S) => S[8] < S[4] and S[7] < S[4] and S[6] < S[4] and S[5] < S[4] and S[4] > S[3] and S[4] > S[2] and S[4] > S[1] and S[4] > S[0]
  35. LoBars3 (S) => S[8] > S[4] and S[7] > S[4] and S[6] > S[4] and S[5] > S[4] and S[4] < S[3] and S[4] < S[2] and S[4] < S[1] and S[4] < S[0]
  36.  
  37. HiBars4 (S) => S[10] < S[5] and S[9] < S[5] and S[8] < S[5] and S[7] < S[5] and S[6] < S[5] and S[5] > S[4] and S[5] > S[3] and S[5] > S[2] and S[5] > S[1] and S[5] > S[0]
  38. LoBars4 (S) => S[10] > S[5] and S[9] > S[5] and S[8] > S[5] and S[7] > S[5] and S[6] > S[5] and S[5] < S[4] and S[5] < S[3] and S[5] < S[2] and S[5] < S[1] and S[5] < S[0]
  39.  
  40. HiBars5 (S) => S[12] < S[6] and S[11] < S[6] and S[10] < S[6] and S[9] < S[6] and S[8] < S[6] and S[7] < S[6] and S[6] > S[5] and S[6] > S[4] and S[6] > S[3] and S[6] > S[2] and S[6] > S[1] and S[6] > S[0]
  41. LoBars5 (S) => S[12] > S[6] and S[11] > S[6] and S[10] > S[6] and S[9] > S[6] and S[8] > S[6] and S[7] > S[6] and S[6] < S[5] and S[6] < S[4] and S[6] < S[3] and S[6] < S[2] and S[6] < S[1] and S[6] < S[0]
  42.                                       
  43. HiBars6 (S) => S[14] < S[7] and S[13] < S[7] and S[12] < S[7] and S[11] < S[7] and S[10] < S[7] and S[9] < S[7] and S[8] < S[7] and S[7] > S[6] and S[7] > S[5] and S[7] > S[4] and S[7] > S[3] and S[7] > S[2] and S[7] > S[1] and S[7] > S[0]
  44. LoBars6 (S) => S[14] > S[7] and S[13] > S[7] and S[12] > S[7] and S[11] > S[7] and S[10] > S[7] and S[9] > S[7] and S[8] > S[7] and S[7] < S[6] and S[7] < S[5] and S[7] < S[4] and S[7] < S[3] and S[7] < S[2] and S[7] < S[1] and S[7] < S[0]
  45.  
  46. HiBars7 (S) => S[16] < S[8] and S[15] < S[8] and S[14] < S[8] and S[13] < S[8] and S[12] < S[8] and S[11] < S[8] and S[10] < S[8] and S[9] < S[8] and S[8] > S[7] and S[8] > S[6] and S[8] > S[5] and S[8] > S[4] and S[8] > S[3] and S[8] > S[2] and S[8] > S[1] and S[8] > S[0]
  47. LoBars7 (S) => S[16] > S[8] and S[15] > S[8] and S[14] > S[8] and S[13] > S[8] and S[12] > S[8] and S[11] > S[8] and S[10] > S[8] and S[9] > S[8] and S[8] < S[7] and S[8] < S[6] and S[8] < S[5] and S[8] < S[4] and S[8] < S[3] and S[8] < S[2] and S[8] < S[1] and S[8] < S[0]
  48.  
  49. HiBars8 (S) => S[18] < S[9] and S[17] < S[9] and S[16] < S[9] and S[15] < S[9] and S[14] < S[9] and S[13] < S[9] and S[12] < S[9] and S[11] < S[9] and S[10] < S[9] and S[9] > S[8] and S[9] > S[7] and S[9] > S[6] and S[9] > S[5] and S[9] > S[4] and S[9] > S[3] and S[9] > S[2] and S[9] > S[1] and S[9] > S[0]
  50. LoBars8 (S) => S[18] > S[9] and S[17] > S[9] and S[16] > S[9] and S[15] > S[9] and S[14] > S[9] and S[13] > S[9] and S[12] > S[9] and S[11] > S[9] and S[10] > S[9] and S[9] < S[8] and S[9] < S[7] and S[9] < S[6] and S[9] < S[5] and S[9] < S[4] and S[9] < S[3] and S[9] < S[2] and S[9] < S[1] and S[9] < S[0]
  51.  
  52.  
  53. AllBars1 (x) => HiBars1 (x) ? 1 : LoBars1 (x) ? -1 : 0
  54. AllBars2 (x) => HiBars2 (x) ? 1 : LoBars2 (x) ? -1 : 0
  55. AllBars3 (x) => HiBars3 (x) ? 1 : LoBars3 (x) ? -1 : 0
  56. AllBars4 (x) => HiBars4 (x) ? 1 : LoBars4 (x) ? -1 : 0
  57. AllBars5 (x) => HiBars5 (x) ? 1 : LoBars5 (x) ? -1 : 0
  58. AllBars6 (x) => HiBars6 (x) ? 1 : LoBars6 (x) ? -1 : 0
  59. AllBars7 (x) => HiBars7 (x) ? 1 : LoBars7 (x) ? -1 : 0
  60. AllBars8 (S) => HiBars8 (S) ? 1 : LoBars8 (S) ? -1 : 0
  61.  
  62. // Divergence Detection
  63.  
  64. AllBarsTopRsi1 = AllBars1 ( Rsi ) > 0 ? Rsi[2] : na
  65. AllBarsLowRsi1 = AllBars1 ( Rsi ) < 0 ? Rsi[2] : na
  66.  
  67. AllBarsTopRsi2 = AllBars2 ( Rsi ) > 0 ? Rsi[3] : na
  68. AllBarsLowRsi2 = AllBars2 ( Rsi ) < 0 ? Rsi[3] : na
  69.  
  70. AllBarsTopRsi3 = AllBars3 ( Rsi ) > 0 ? Rsi[4] : na
  71. AllBarsLowRsi3 = AllBars3 ( Rsi ) < 0 ? Rsi[4] : na
  72.  
  73. AllBarsTopRsi4 = AllBars4 ( Rsi ) > 0 ? Rsi[5] : na
  74. AllBarsLowRsi4 = AllBars4 ( Rsi ) < 0 ? Rsi[5] : na
  75.  
  76. AllBarsTopRsi5 = AllBars5 ( Rsi ) > 0 ? Rsi[6] : na
  77. AllBarsLowRsi5 = AllBars5 ( Rsi ) < 0 ? Rsi[6] : na
  78.  
  79. AllBarsTopRsi6 = AllBars6 ( Rsi ) > 0 ? Rsi[7] : na
  80. AllBarsLowRsi6 = AllBars6 ( Rsi ) < 0 ? Rsi[7] : na
  81.  
  82. AllBarsTopRsi7 = AllBars7 ( Rsi ) > 0 ? Rsi[8] : na
  83. AllBarsLowRsi7 = AllBars7 ( Rsi ) < 0 ? Rsi[8] : na
  84.  
  85. SrcHigh1 = close [2]
  86. SrcLow1  = close [2]
  87.  
  88. SrcHigh2 = close [3]
  89. SrcLow2  = close [3]
  90.  
  91. SrcHigh3 = close [4]
  92. SrcLow3  = close [4]
  93.  
  94. SrcHigh4 = close [5]
  95. SrcLow4  = close [5]
  96.  
  97. SrcHigh5 = close [6]
  98. SrcLow5  = close [6]
  99.  
  100. SrcHigh6 = close [7]
  101. SrcLow6  = close [7]
  102.  
  103. SrcHigh7 = close [8]
  104. SrcLow7  = close [8]
  105.  
  106. high_prev1  = valuewhen ( AllBarsTopRsi1 , Rsi [2]  , 0 ) [2]
  107. high_price1 = valuewhen ( AllBarsTopRsi1 , SrcHigh1 , 0 ) [2]
  108.  
  109. low_prev1   = valuewhen ( AllBarsLowRsi1 , Rsi [2]  , 0 ) [2]
  110. low_price1  = valuewhen ( AllBarsLowRsi1 , SrcLow1  , 0 ) [2]
  111.  
  112. high_prev2  = valuewhen ( AllBarsTopRsi2 , Rsi [3]  , 0 ) [3]
  113. high_price2 = valuewhen ( AllBarsTopRsi2 , SrcHigh2 , 0 ) [3]
  114.  
  115. low_prev2   = valuewhen ( AllBarsLowRsi2 , Rsi [3]  , 0 ) [3]
  116. low_price2  = valuewhen ( AllBarsLowRsi2 , SrcLow2  , 0 ) [3]
  117.  
  118. high_prev3  = valuewhen ( AllBarsTopRsi3 , Rsi [4]  , 0 ) [4]
  119. high_price3 = valuewhen ( AllBarsTopRsi3 , SrcHigh3 , 0 ) [4]
  120.  
  121. low_prev3   = valuewhen ( AllBarsLowRsi3 , Rsi [4]  , 0 ) [4]
  122. low_price3  = valuewhen ( AllBarsLowRsi3 , SrcLow3  , 0 ) [4]
  123.  
  124. high_prev4  = valuewhen ( AllBarsTopRsi4 , Rsi [5]  , 0 ) [5]
  125. high_price4 = valuewhen ( AllBarsTopRsi4 , SrcHigh4 , 0 ) [5]
  126.  
  127. low_prev4   = valuewhen ( AllBarsLowRsi4 , Rsi [5]  , 0 ) [5]
  128. low_price4  = valuewhen ( AllBarsLowRsi4 , SrcLow4  , 0 ) [5]
  129.  
  130. high_prev5  = valuewhen ( AllBarsTopRsi5 , Rsi [6]  , 0 ) [6]
  131. high_price5 = valuewhen ( AllBarsTopRsi5 , SrcHigh5 , 0 ) [6]
  132.  
  133. low_prev5   = valuewhen ( AllBarsLowRsi5 , Rsi [6]  , 0 ) [6]
  134. low_price5  = valuewhen ( AllBarsLowRsi5 , SrcLow5  , 0 ) [6]
  135.  
  136. high_prev6  = valuewhen ( AllBarsTopRsi6 , Rsi [7]  , 0 ) [7]
  137. high_price6 = valuewhen ( AllBarsTopRsi6 , SrcHigh6 , 0 ) [7]
  138.  
  139. low_prev6   = valuewhen ( AllBarsLowRsi6 , Rsi [7]  , 0 ) [7]
  140. low_price6  = valuewhen ( AllBarsLowRsi6 , SrcLow6  , 0 ) [7]
  141.  
  142. high_prev7  = valuewhen ( AllBarsTopRsi7 , Rsi [8]  , 0 ) [8]
  143. high_price7 = valuewhen ( AllBarsTopRsi7 , SrcHigh7 , 0 ) [8]
  144.  
  145. low_prev7   = valuewhen ( AllBarsLowRsi7 , Rsi [8]  , 0 ) [8]
  146. low_price7  = valuewhen ( AllBarsLowRsi7 , SrcLow7  , 0 ) [8]
  147.  
  148. // Divergence Detection
  149.  
  150. RegBearDiv1 = AllBarsTopRsi1 and SrcHigh1 > high_price1 and Rsi[2] < high_prev1
  151. HidBearDiv1 = AllBarsTopRsi1 and SrcHigh1 < high_price1 and Rsi[2] > high_prev1
  152.  
  153. RegBullDiv1 = AllBarsLowRsi1 and SrcLow1 < low_price1 and Rsi[2] > low_prev1
  154. HidBullDiv1 = AllBarsLowRsi1 and SrcLow1 > low_price1 and Rsi[2] < low_prev1
  155.  
  156. RegBearDiv2 = AllBarsTopRsi2 and SrcHigh2 > high_price2 and Rsi[3] < high_prev2
  157. HidBearDiv2 = AllBarsTopRsi2 and SrcHigh2 < high_price2 and Rsi[3] > high_prev2
  158.  
  159. RegBullDiv2 = AllBarsLowRsi2 and SrcLow2 < low_price2 and Rsi[3] > low_prev2
  160. HidBullDiv2 = AllBarsLowRsi2 and SrcLow2 > low_price2 and Rsi[3] < low_prev2
  161.  
  162. RegBearDiv3 = AllBarsTopRsi3 and SrcHigh3 > high_price3 and Rsi[4] < high_prev3
  163. HidBearDiv3 = AllBarsTopRsi3 and SrcHigh3 < high_price3 and Rsi[4] > high_prev3
  164.  
  165. RegBullDiv3 = AllBarsLowRsi3 and SrcLow3 < low_price3 and Rsi[4] > low_prev3
  166. HidBullDiv3 = AllBarsLowRsi3 and SrcLow3 > low_price3 and Rsi[4] < low_prev3
  167.  
  168. RegBearDiv4 = AllBarsTopRsi4 and SrcHigh4 > high_price4 and Rsi[5] < high_prev4
  169. HidBearDiv4 = AllBarsTopRsi4 and SrcHigh4 < high_price4 and Rsi[5] > high_prev4
  170.  
  171. RegBullDiv4 = AllBarsLowRsi4 and SrcLow4 < low_price4 and Rsi[5] > low_prev4
  172. HidBullDiv4 = AllBarsLowRsi4 and SrcLow4 > low_price4 and Rsi[5] < low_prev4
  173.  
  174. RegBearDiv5 = AllBarsTopRsi5 and SrcHigh5 > high_price5 and Rsi[6] < high_prev5
  175. HidBearDiv5 = AllBarsTopRsi5 and SrcHigh5 < high_price5 and Rsi[6] > high_prev5
  176.  
  177. RegBullDiv5 = AllBarsLowRsi5 and SrcLow5 < low_price5 and Rsi[6] > low_prev5
  178. HidBullDiv5 = AllBarsLowRsi5 and SrcLow5 > low_price5 and Rsi[6] < low_prev5
  179.  
  180. RegBearDiv6 = AllBarsTopRsi6 and SrcHigh6 > high_price6 and Rsi[7] < high_prev6
  181. HidBearDiv6 = AllBarsTopRsi6 and SrcHigh6 < high_price6 and Rsi[7] > high_prev6
  182.  
  183. RegBullDiv6 = AllBarsLowRsi6 and SrcLow6 < low_price6 and Rsi[7] > low_prev6
  184. HidBullDiv6 = AllBarsLowRsi6 and SrcLow6 > low_price6 and Rsi[7] < low_prev6
  185.  
  186. RegBearDiv7 = AllBarsTopRsi7 and SrcHigh7 > high_price7 and Rsi[8] < high_prev7
  187. HidBearDiv7 = AllBarsTopRsi7 and SrcHigh7 < high_price7 and Rsi[8] > high_prev7
  188.  
  189. RegBullDiv7 = AllBarsLowRsi7 and SrcLow7 < low_price7 and Rsi[8] > low_prev7
  190. HidBullDiv7 = AllBarsLowRsi7 and SrcLow7 > low_price7 and Rsi[8] < low_prev7
  191.  
  192. // Divergence Color Settings
  193.  
  194. BearDiv1Color = RegBearDiv1 ? color.red  : HidBearDiv1 ? color.orange : na
  195. BullDiv1Color = RegBullDiv1 ? color.lime : HidBullDiv1 ? color.blue  : na
  196.  
  197. BearDiv2Color = RegBearDiv2 ? color.red  : HidBearDiv2 ? color.orange : na
  198. BullDiv2Color = RegBullDiv2 ? color.lime : HidBullDiv2 ? color.blue  : na
  199.  
  200. BearDiv3Color = RegBearDiv3 ? color.red  : HidBearDiv3 ? color.orange : na
  201. BullDiv3Color = RegBullDiv3 ? color.lime : HidBullDiv3 ? color.blue  : na
  202.  
  203. BearDiv4Color = RegBearDiv4 ? color.red  : HidBearDiv4 ? color.orange : na
  204. BullDiv4Color = RegBullDiv4 ? color.lime : HidBullDiv4 ? color.blue  : na
  205.  
  206. BearDiv5Color = RegBearDiv5 ? color.red  : HidBearDiv5 ? color.orange : na
  207. BullDiv5Color = RegBullDiv5 ? color.lime : HidBullDiv5 ? color.blue  : na
  208.  
  209. BearDiv6Color = RegBearDiv6 ? color.red  : HidBearDiv6 ? color.orange : na
  210. BullDiv6Color = RegBullDiv6 ? color.lime : HidBullDiv6 ? color.blue : na
  211.  
  212. BearDiv7Color = RegBearDiv7 ? color.red  : HidBearDiv7 ? color.orange : na
  213. BullDiv7Color = RegBullDiv7 ? color.lime : HidBullDiv7 ? color.blue  : na
  214.  
  215. // Divergence Plots
  216.  
  217. DivSrc = close
  218.  
  219. plot ( title = 'Bear Div 1A' , series = GuideLines and AllBarsTopRsi1 ? DivSrc[2] + OffSet1 : na, color=BearDiv1Color, linewidth = 4 , transp = 0 , offset = -2 , show_last = LookBackBars )
  220. plot ( title = 'Bull Div 1A' , series = GuideLines and AllBarsLowRsi1 ? DivSrc[2] - OffSet1 : na, color=BullDiv1Color, linewidth = 4 , transp = 0 , offset = -2 , show_last = LookBackBars )
  221.  
  222. plot ( title = 'Bear Div 2A' , series = GuideLines and AllBarsTopRsi2 ? DivSrc[3] + OffSet1 : na, color=BearDiv2Color, linewidth = 4 , transp = 0 , offset = -3 , show_last = LookBackBars )
  223. plot ( title = 'Bull Div 2A' , series = GuideLines and AllBarsLowRsi2 ? DivSrc[3] - OffSet1 : na, color=BullDiv2Color, linewidth = 4 , transp = 0 , offset = -3 , show_last = LookBackBars )
  224.  
  225. plot ( title = 'Bear Div 3A' , series = GuideLines and AllBarsTopRsi3 ? DivSrc[4] + OffSet1 : na, color=BearDiv3Color, linewidth = 4 , transp = 0 , offset = -4 , show_last = LookBackBars )
  226. plot ( title = 'Bull Div 3A' , series = GuideLines and AllBarsLowRsi3 ? DivSrc[4] - OffSet1 : na, color=BullDiv3Color, linewidth = 4 , transp = 0 , offset = -4 , show_last = LookBackBars )
  227.  
  228. plot ( title = 'Bear Div 4A' , series = GuideLines and AllBarsTopRsi4 ? DivSrc[5] + OffSet1 : na, color=BearDiv4Color, linewidth = 4 , transp = 0 , offset = -5 , show_last = LookBackBars )
  229. plot ( title = 'Bull Div 4A' , series = GuideLines and AllBarsLowRsi4 ? DivSrc[5] - OffSet1 : na, color=BullDiv4Color, linewidth = 4 , transp = 0 , offset = -5 , show_last = LookBackBars )
  230.  
  231. plot ( title = 'Bear Div 5A' , series = GuideLines and AllBarsTopRsi5 ? DivSrc[6] + OffSet1 : na, color=BearDiv5Color, linewidth = 4 , transp = 0 , offset = -6 , show_last = LookBackBars )
  232. plot ( title = 'Bull Div 5A' , series = GuideLines and AllBarsLowRsi5 ? DivSrc[6] - OffSet1 : na, color=BullDiv5Color, linewidth = 4 , transp = 0 , offset = -6 , show_last = LookBackBars )
  233.  
  234. plot ( title = 'Bear Div 6A' , series = GuideLines and AllBarsTopRsi6 ? DivSrc[7] + OffSet1 : na, color=BearDiv6Color, linewidth = 4 , transp = 0 , offset = -7 , show_last = LookBackBars )
  235. plot ( title = 'Bull Div 6A' , series = GuideLines and AllBarsLowRsi6 ? DivSrc[7] - OffSet1 : na, color=BullDiv6Color, linewidth = 4 , transp = 0 , offset = -7 , show_last = LookBackBars )
  236.  
  237. plot ( title = 'Bear Div 7A' , series = GuideLines and AllBarsTopRsi7 ? DivSrc[8] + OffSet1 : na, color=BearDiv7Color, linewidth = 4 , transp = 0 , offset = -8 , show_last = LookBackBars )
  238. plot ( title = 'Bull Div 7A' , series = GuideLines and AllBarsLowRsi7 ? DivSrc[8] - OffSet1 : na, color=BullDiv7Color, linewidth = 4 , transp = 0 , offset = -8 , show_last = LookBackBars )
  239.  
  240. plotshape ( Labels ? (RegBearDiv1 or HidBearDiv1 ? close[2] + ArrowOffSet : na) : na , "Bear1", shape.triangledown, location.abovebar, size = size.tiny, color = BearDiv1Color, offset = -2)
  241. plotshape ( Labels ? (RegBearDiv2 or HidBearDiv2 ? close[3] + ArrowOffSet : na) : na , "Bear2", shape.triangledown, location.abovebar, size = size.tiny, color = BearDiv2Color, offset = -3)
  242. plotshape ( Labels ? (RegBearDiv3 or HidBearDiv3 ? close[4] + ArrowOffSet : na) : na , "Bear3", shape.triangledown, location.abovebar, size = size.tiny, color = BearDiv3Color, offset = -4)
  243. plotshape ( Labels ? (RegBearDiv4 or HidBearDiv4 ? close[5] + ArrowOffSet : na) : na , "Bear4", shape.triangledown, location.abovebar, size = size.tiny, color = BearDiv4Color, offset = -5)
  244. plotshape ( Labels ? (RegBearDiv5 or HidBearDiv5 ? close[6] + ArrowOffSet : na) : na , "Bear5", shape.triangledown, location.abovebar, size = size.tiny, color = BearDiv5Color, offset = -6)
  245. plotshape ( Labels ? (RegBearDiv6 or HidBearDiv6 ? close[7] + ArrowOffSet : na) : na , "Bear6", shape.triangledown, location.abovebar, size = size.tiny, color = BearDiv6Color, offset = -7)
  246. plotshape ( Labels ? (RegBearDiv7 or HidBearDiv7 ? close[8] + ArrowOffSet : na) : na , "Bear7", shape.triangledown, location.abovebar, size = size.tiny, color = BearDiv7Color, offset = -8)
  247.  
  248. plotshape ( Labels ? (RegBullDiv1 or HidBullDiv1 ? close[2] - ArrowOffSet : na) : na , "Bull1", shape.triangleup, location.belowbar, size = size.tiny, color = BullDiv1Color, offset = -2)
  249. plotshape ( Labels ? (RegBullDiv2 or HidBullDiv2 ? close[3] - ArrowOffSet : na) : na , "Bull2", shape.triangleup, location.belowbar, size = size.tiny, color = BullDiv2Color, offset = -3)
  250. plotshape ( Labels ? (RegBullDiv3 or HidBullDiv3 ? close[4] - ArrowOffSet : na) : na , "Bull3", shape.triangleup, location.belowbar, size = size.tiny, color = BullDiv3Color, offset = -4)
  251. plotshape ( Labels ? (RegBullDiv4 or HidBullDiv4 ? close[5] - ArrowOffSet : na) : na , "Bull4", shape.triangleup, location.belowbar, size = size.tiny, color = BullDiv4Color, offset = -5)
  252. plotshape ( Labels ? (RegBullDiv5 or HidBullDiv5 ? close[6] - ArrowOffSet : na) : na , "Bull5", shape.triangleup, location.belowbar, size = size.tiny, color = BullDiv5Color, offset = -6)
  253. plotshape ( Labels ? (RegBullDiv6 or HidBullDiv6 ? close[7] - ArrowOffSet : na) : na , "Bull6", shape.triangleup, location.belowbar, size = size.tiny, color = BullDiv6Color, offset = -7)
  254. plotshape ( Labels ? (RegBullDiv7 or HidBullDiv7 ? close[8] - ArrowOffSet : na) : na , "Bull7", shape.triangleup, location.belowbar, size = size.tiny, color = BullDiv7Color, offset = -8)
  255.  
  256. // End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement