Advertisement
Maurizio-Ciullo

Study Tutti-Ptn-Base-Unger NON VERIFICATO/NON USARE

Aug 11th, 2022 (edited)
874
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
  2. // © Maurizio-Ciullo
  3.  
  4. //@version=5
  5. indicator("Study Tutti-Ptn-Base-Unger NON VERIFICATO/NON USARE", overlay=true)
  6.  
  7.  
  8. PtnBaseSA1 = math.abs(open[1]-close[1])<0.5*(high[1]-low[1]) // volatility (indecision) // yesterday body < 50% of  range // No Opposite //
  9. barcolor(PtnBaseSA1 == true ? color.lime : na ? color.purple : na)
  10.  
  11. // PtnBaseSA2 = math.abs(open[1]-close[5])<0.5*(high[5]-close[1]) // volatility (indecision) // open yesterday - close 5 days ago < 50% of (high 5 days ago - close yesterday) // No Opposite //
  12. // barcolor(PtnBaseSA2 == true ? color.lime : na ? color.purple : na) *******DA FARSELO A MANO CONFRONTATO CON IL MOIO 2PTN NON QUADRA********
  13.  
  14. // PtnBaseSA3 = math.abs(open[5]-close[1])<0.5*(ta.highest(high,5)-(ta.lowest(low,5))) // volatility (indecision) // open of 5 days ago - close of yesterday < 50% of range of last 5 days // No Opposite //
  15. // barcolor(PtnBaseSA3 == true ? color.lime : na ? color.purple : na) //*******DA FARSELO A MANO USA UUNA LISTA********
  16.  
  17. // PtnBaseSA3List = math.abs(open[5]-close[1])<0.5*(maxlist(high[1],high[2],high[3],high[4],high[5])-(minlist(low[1],low[2],low[3],low[4],low[5]) // volatility (indecision) // open of 5 days ago - close of yesterday < 50% of range of last 5 days // No Opposite //
  18. // barcolor(PtnBaseSA3List == true ? color.lime : na ? color.purple : na) //*******DA FARSELO A MANO USA UUNA LISTA********
  19.  
  20. // PtnBaseSA4 = ((high-open)>((high[1]-open[1])*1)) // directional - up // high to open today so far > high to open of yesterday // Opposite 6 //
  21. // barcolor(PtnBaseSA4 == true ? color.lime : na ? color.purple : na)
  22.  
  23. // PtnBaseSA5 = ((high-open)>((high[1]-open[1])*1.5)) // directional - up // high to open today so far > 1.5 * (high to open of yesterday) // Opposite 7 //
  24. // barcolor(PtnBaseSA5 == true ? color.lime : na ? color.purple : na)
  25.  
  26. // PtnBaseSA6 = ((open-low)>((open[1]-low[1])*1)) // directional - down // open to low today so far > open to low of yesterday // Opposite 4 //
  27. // barcolor(PtnBaseSA6 == true ? color.lime : na ? color.purple : na)
  28.  
  29. // PtnBaseSA7 = ((open-low)>((open[1]-low[1])*1.5)) // directional - down // open to low today so far > 1.5 * (open to low of yesterday) // Opposite 5 //
  30. // barcolor(PtnBaseSA7 == true ? color.lime : na ? color.purple : na)
  31.  
  32. // PtnBaseSA8 = close[1]>close[2] and close[2]>close[3] and close[3]>close[4] // directional - up // 3 consecutive up closes // Opposite 9 //
  33. // barcolor(PtnBaseSA8 == true ? color.lime : na ? color.purple : na)
  34.  
  35. // PtnBaseSA9 = close[1]<close[2] and close[2]<close[3] and close[3]<close[4] // directional - down // 3 consecutive down closes // Opposite 8 //
  36. // barcolor(PtnBaseSA9 == true ? color.lime : na ? color.purple : na)
  37.  
  38. // PtnBaseSA10 = high[1]>high[2] and low[1]>low[2] // directional - up // 2 higher highs and higher lows // Opposite 11 //
  39. // barcolor(PtnBaseSA10 == true ? color.lime : na ? color.purple : na)
  40.  
  41. // PtnBaseSA11 = high[1]<high[2] and low[1]<low[2] // directional - down // 2 lower highs and lower lows // Opposite 10 //
  42. // barcolor(PtnBaseSA11 == true ? color.lime : na ? color.purple : na)
  43.  
  44. // PtnBaseSA12 = ((high>(low+low*0.75/100))) // expansion // range of today > 0.75% of low of today // Opposite 13 //
  45. // barcolor(PtnBaseSA12 == true ? color.lime : na ? color.purple : na)  *******DA FARSELO A MANO********
  46.  
  47. // PtnBaseSA13 = ((high<(low+low*0.75/100))) // compression // range of today < 0.75% of low of today // Opposite 12 //
  48. // barcolor(PtnBaseSA13 == true ? color.lime : na ? color.purple : na)  *******DA FARSELO A MANO********
  49.  
  50. // PtnBaseSA14 = close[1]>close[2] // directional - up // price advanced yesterday // Opposite 15 //
  51. // barcolor(PtnBaseSA14 == true ? color.lime : na ? color.purple : na)
  52.  
  53. // PtnBaseSA15 = close[1]<close[2] // directional - down // price declined yesterday // Opposite 14 //
  54. // barcolor(PtnBaseSA15 == true ? color.lime : na ? color.purple : na)
  55.  
  56. // PtnBaseSA16 = close[1]<open[1] // directional - up // yesterday closed below the open // Opposite 17 //
  57. // barcolor(PtnBaseSA16 == true ? color.lime : na ? color.purple : na)
  58.  
  59. // PtnBaseSA17 = close[1]<open[1] // directional - down // yesterday closed above the open // Opposite 16 //
  60. // barcolor(PtnBaseSA17 == true ? color.lime : na ? color.purple : na)
  61.  
  62. // PtnBaseSA18 = ((close[1]<(close[2]-close[2]*0.5/100))) // directional - down // price declined > 0.5% yesterday // Opposite 19 //
  63. // barcolor(PtnBaseSA18 == true ? color.lime : na ? color.purple : na) *******DA FARSELO A MANO********
  64.  
  65. // PtnBaseSA19 = ((close[1]>(close[2]+close[2]*0.5/100))) // directional - up // price advanced > 0.5% yesterday // Opposite 18 //
  66. // barcolor(PtnBaseSA19 == true ? color.lime : na ? color.purple : na) *******DA FARSELO A MANO********
  67.  
  68. // PtnBaseSA20 = (high>(high[1])) // directional - up // today has traded above yesterday's high // Opposite 22 //
  69. // barcolor(PtnBaseSA20 == true ? color.lime : na ? color.purple : na)
  70.  
  71. // PtnBaseSA21 = (high[1]>high[5]) // trend - up // yesterday high was above 5-day-ago high // Opposite 23 //
  72. // barcolor(PtnBaseSA21 == true ? color.lime : na ? color.purple : na)
  73.  
  74. // PtnBaseSA22 = (low<low[1]) // weakness today // today has traded below yesterday's low // Opposite 20 //
  75. // barcolor(PtnBaseSA22 == true ? color.lime : na ? color.purple : na)
  76.  
  77. // PtnBaseSA23 = (low[1]<low[5]) // trend - down // yesterday low was below 5-day-ago low // Opposite 21 //
  78. // barcolor(PtnBaseSA23 == true ? color.lime : na ? color.purple : na)
  79.  
  80. // PtnBaseSA24 = (high[1]>high[2]) and (high[1]>high[3]) and (high[1]>high[4]) // trend - up // yesterday high was the highest  in 4 days // Opposite 26 //
  81. // barcolor(PtnBaseSA24 == true ? color.lime : na ? color.purple : na)
  82.  
  83. // PtnBaseSA25 = (high[1]<high[2]) and (high[1]<high[3]) and (high[1]<high[4]) // not trend up // yesterday high was lowest  in 4 days // Opposite 27 //
  84. // barcolor(PtnBaseSA25 == true ? color.lime : na ? color.purple : na)
  85.  
  86. // PtnBaseSA26 = ((low[1]<low[2]) and (low[1]<low[3]) and (low[1]<low[4])) // trend - down // yesterday low was lowest  in 4 days // Opposite 24 //
  87. // barcolor(PtnBaseSA26 == true ? color.lime : na ? color.purple : na)
  88.  
  89. // PtnBaseSA27 = ((low[1]>low[2]) and (low[1]>low[3]) and (low[1]>low[4])) // not trend down // yesterday low was the highest  in 4 days // Opposite 25 //
  90. // barcolor(PtnBaseSA27 == true ? color.lime : na ? color.purple : na)
  91.  
  92. // PtnBaseSA28 = (close[1]>close[2] and close[2]>close[3] and open>close[1]) // trend - up // yesterday close was highest in 3 days and today open is higher // Opposite 29 //
  93. // barcolor(PtnBaseSA28 == true ? color.lime : na ? color.purple : na)
  94.  
  95. // PtnBaseSA29 = (close[1]<close[2] and close[2]<close[3] and open<close[1]) // trend - down // yesterday close was lowest in 3 days and today open is lower // Opposite 28 //
  96. // barcolor(PtnBaseSA29 == true ? color.lime : na ? color.purple : na)
  97.  
  98. // PtnBaseSA30 = ((high[1]-close[1])<0.20*(high[1]-low[1])) // strength yesterday // yesterday close was in the top 20% of yesterday range // Opposite 31 //
  99. // barcolor(PtnBaseSA30 == true ? color.lime : na ? color.purple : na)
  100.  
  101. // PtnBaseSA31 = ((close[1]-low[1])<0.20*(high[1]-low[1])) // weakness yesterday // yesterday close was in the bottom 20% of yesterday range // Opposite 30 //
  102. // barcolor(PtnBaseSA31 == true ? color.lime : na ? color.purple : na)
  103.  
  104. // PtnBaseSA32 = (open<low[1] or open>high[1]) // movement // today open gapped either above yest. high or below yest. low //
  105. // barcolor(PtnBaseSA32 == true ? color.lime : na ? color.purple : na)
  106.  
  107. // PtnBaseSA33 = ((open<(close[1]-close[1]*0.5/100))) // big gap down // today open is at least 0.5% below yesterday close // Opposite 34 //
  108. // barcolor(PtnBaseSA33 == true ? color.lime : na ? color.purple : na) *******DA FARSELO A MANO********
  109.  
  110. // PtnBaseSA34 = ((open>(close[1]+close[1]*0.5/100))) // big gap up // today open is at least 0.5% above yesterday close // Opposite 33 //
  111. // barcolor(PtnBaseSA34 == true ? color.lime : na ? color.purple : na) *******DA FARSELO A MANO********
  112.  
  113. // PtnBaseSA35 = ((open>(close[1]+close[1]*0.5/100))) // big gap up // today open is at least 0.5% above yesterday close //
  114. // barcolor(PtnBaseSA35 == true ? color.lime : na ? color.purple : na) *******DA FARSELO A MANO********
  115.  
  116. // PtnBaseSA36 = (high[1]-low[1])<((high[2]-low[2])+(high[3]-low[3]))/3 // volatility contraction // yesterday range < 2/3 (66%) of prior 2-day avg. range // No Opposite //
  117. // barcolor(PtnBaseSA36 == true ? color.lime : na ? color.purple : na)
  118.  
  119. // PtnBaseSA37 = (high[1]-low[1])<(high[2]-low[2]) and (high[2]-low[2])<(high[3]-low[3]) // volatility contraction // yesterday was second consecutive range contraction day // No Opposite //
  120. // barcolor(PtnBaseSA37 == true ? color.lime : na ? color.purple : na)
  121.  
  122. // PtnBaseSA38 = (high[2]>high[1] and low[2]<low[1]) // volatility contraction // yesterday was an inside day // No Opposite //
  123. // barcolor(PtnBaseSA38 == true ? color.lime : na ? color.purple : na)
  124.  
  125. // PtnBaseSA39 = (high[1]<high[2] or low[1]>low[2]) // volatility contraction // yesterday was not an outside day // Opposite 40 //
  126. // barcolor(PtnBaseSA39 == true ? color.lime : na ? color.purple : na)
  127.  
  128. // PtnBaseSA40 = (high[2]<high[1] and low[2]>low[1]) // volatility expansion // yesterday was an outside day // Opposite 39 //
  129. // barcolor(PtnBaseSA40 == true ? color.lime : na ? color.purple : na)
  130.  
  131. // PtnBaseSA41 = true // boolean // true // Opposite 42 //
  132. // barcolor(PtnBaseSA41 == true ? color.lime : na ? color.purple : na)
  133.  
  134. // PtnBaseSA42 = false // boolean // false // Opposite 41 //
  135. // barcolor(PtnBaseSA42 == true ? color.lime : na ? color.purple : na)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement