Advertisement
Maurizio-Ciullo

Study PtnBaseSaCrypto

Oct 15th, 2022 (edited)
842
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                  // Inizio Codifica di tutti i pattern base Unger + Criptovalute Easylanguage //
  2.                 // Aggiunti i pattern per le criptovalute sui 7 giorni numero: 41/42/43 //
  3.  
  4.  
  5.  
  6. var: PtnBaseSA1(false), PtnBaseSA2(false), PtnBaseSA3(false), PtnBaseSA4(false), PtnBaseSA5(false), PtnBaseSA6(false),
  7.      PtnBaseSA7(false), PtnBaseSA8(false), PtnBaseSA9(false), PtnBaseSA10(false), PtnBaseSA11(false), PtnBaseSA12(false),
  8.      PtnBaseSA13(false), PtnBaseSA14(false), PtnBaseSA15(false), PtnBaseSA16(false), PtnBaseSA17(false), PtnBaseSA18(false),
  9.      PtnBaseSA19(false), PtnBaseSA20(false), PtnBaseSA21(false), PtnBaseSA22(false), PtnBaseSA23(false), PtnBaseSA24(false),
  10.      PtnBaseSA25(false), PtnBaseSA26(false), PtnBaseSA27(false), PtnBaseSA28(false), PtnBaseSA29(false), PtnBaseSA30(false),
  11.      PtnBaseSA31(false), PtnBaseSA32(false), PtnBaseSA33(false), PtnBaseSA34(false), PtnBaseSA35(false), PtnBaseSA36(false),
  12.      PtnBaseSA37(false), PtnBaseSA38(false), PtnBaseSA39(false), PtnBaseSA40(false), PtnBaseSA41(false), PtnBaseSA42(false),
  13.      PtnBaseSA43(false), PtnBaseSA44(false), PtnBaseSA45(false);
  14.  
  15.  
  16.  
  17.  
  18. var:opend0(0),opend1(0),opend2(0),opend3(0),opend4(0),opend5(0),opend6(0),opend7(0);
  19. var:highd0(0),highd1(0),highd2(0),highd3(0),highd4(0),highd5(0),highd6(0),highd7(0);
  20. var:lowd0(0),lowd1(0),lowd2(0),lowd3(0),lowd4(0),lowd5(0),lowd6(0),lowd7(0);
  21. var:closed0(0),closed1(0),closed2(0),closed3(0),closed4(0),closed5(0),closed6(0),closed7(0);
  22.  
  23.  
  24. // Valori in parentesi Session: (1=regular session, 0=all sessions), (Number of session ago to reference price (0 = current session).
  25. opend0 = OpenSession(0,0); // "opens forse opensession"
  26. opend1 = OpenSession(0,1); // "opens forse opensession"
  27. opend2 = OpenSession(0,2); // "opens forse opensession"
  28. opend3 = OpenSession(0,3); // "opens forse opensession"
  29. opend4 = OpenSession(0,4); // "opens forse opensession"
  30. opend5 = OpenSession(0,5); // "opens forse opensession"
  31. opend6 = OpenSession(0,6); // "opens forse opensession"
  32. opend7 = OpenSession(0,7); // "opens forse opensession"
  33.  
  34. // "CONTINUA FINO A 5 "SETTIMANA BORSISTICA" 7 PER CRIPTOVALUTE"
  35.  
  36. highd0 = HighSession(0,0); // "highs forse highsession"
  37. highd1 = HighSession(0,1); // "highs forse highsession"
  38. highd2 = HighSession(0,2); // "highs forse highsession"
  39. highd3 = HighSession(0,3); // "highs forse highsession"
  40. highd4 = HighSession(0,4); // "highs forse highsession"
  41. highd5 = HighSession(0,5); // "highs forse highsession"
  42. highd6 = HighSession(0,6); // "highs forse highsession"
  43. highd7 = HighSession(0,7); // "highs forse highsession"
  44. // "CONTINUA FINO A 5 "SETTIMANA BORSISTICA" 7 PER CRIPTOVALUTE"
  45.  
  46. lowd0 = LowSession(0,0); // "lows forse lowsession"
  47. lowd1 = LowSession(0,1); // "lows forse lowsession"
  48. lowd2 = LowSession(0,2); // "lows forse lowsession"
  49. lowd3 = LowSession(0,3); // "lows forse lowsession"
  50. lowd4 = LowSession(0,4); // "lows forse lowsession"
  51. lowd5 = LowSession(0,5); // "lows forse lowsession"
  52. lowd6 = LowSession(0,6); // "lows forse lowsession"
  53. lowd7 = LowSession(0,7); // "lows forse lowsession"
  54. // "CONTINUA FINO A 5 "SETTIMANA BORSISTICA" 7 PER CRIPTOVALUTE"
  55.  
  56. closed0 = CloseSession(0,0); // "closes forse closesession"
  57. closed1 = CloseSession(0,1); // "closes forse closesession"
  58. closed2 = CloseSession(0,2); // "closes forse closesession"
  59. closed3 = CloseSession(0,3); // "closes forse closesession"
  60. closed4 = CloseSession(0,4); // "closes forse closesession"
  61. closed5 = CloseSession(0,5); // "closes forse closesession"
  62. closed6 = CloseSession(0,6); // "closes forse closesession"
  63. closed7 = CloseSession(0,7); // "closes forse closesession"
  64. // "CONTINUA FINO A 5 "SETTIMANA BORSISTICA" 7 PER CRIPTOVALUTE"
  65.  
  66.  
  67.                         // Inizio Codifica di tutti i pattern base Unger Unger + Criptovalute Easylanguage //
  68.                       // Per i range settimanali delle criptovalute alcuni pattern vanno estesi a 7 vedi video Unger //
  69.                                 // Aggiunti i pattern per le criptovalute sui 7 giorni numero: 41/42/43 //
  70.                                       // Decommentare i plot che servono sul momento //
  71.  
  72. //PtnBaseSA1  = absvalue(opend1-closed1)<0.5*(highd1-lowd1) ;
  73. //plot1(PtnBaseSA1, "PtnBaseSA1");
  74.  
  75. {PtnBaseSA2  = absvalue(opend1-closed5)<0.5*(highd5-closed1) ;
  76. plot1(PtnBaseSA2, "PtnBaseSA2");
  77.  
  78. PtnBaseSA3  = absvalue(opend5-closed1)<0.5*(maxlist(highd1,highd2,highd3,highd4,highd5)-(minlist(lowd1,lowd2,lowd3,lowd4,lowd5))) ;
  79. plot1(PtnBaseSA3, "PtnBaseSA3");
  80.  
  81. PtnBaseSA4  = ((highd0-opend0)> ((highd1-opend1)*1)) ;
  82. plot1(PtnBaseSA4, "PtnBaseSA4");
  83.  
  84. PtnBaseSA5  = ((highd0-opend0)> ((highd1-opend1)*1.5)) ;
  85. plot1(PtnBaseSA5, "PtnBaseSA5");
  86.  
  87. PtnBaseSA6  = ((opend0-lowd0)> ((opend1-lowd1)*1)) ;
  88. plot1(PtnBaseSA6, "PtnBaseSA6");
  89.  
  90. PtnBaseSA7  = ((opend0-lowd0)> ((opend1-lowd1)*1.5)) ;
  91. plot1(PtnBaseSA7, "PtnBaseSA7");
  92.  
  93. PtnBaseSA8  = closed1>closed2 and closed2>closed3 and closed3>closed4 ;
  94. plot1(PtnBaseSA8, "PtnBaseSA8");
  95.  
  96. PtnBaseSA9  = closed1<closed2 and closed2<closed3 and closed3<closed4 ;
  97. plot1(PtnBaseSA9, "PtnBaseSA9");
  98.  
  99. PtnBaseSA10  = highd1>highd2 and lowd1>lowd2 ;
  100. plot1(PtnBaseSA10, "PtnBaseSA10");
  101.  
  102. PtnBaseSA11  = highd1<highd2 and lowd1<lowd2 ;
  103. plot1(PtnBaseSA11, "PtnBaseSA11");
  104.  
  105. PtnBaseSA12  = ((highd0>(lowd0+lowd0*0.75/100))) ;
  106. plot1(PtnBaseSA12, "PtnBaseSA12");
  107.  
  108. PtnBaseSA13  = ((highd0<(lowd0+lowd0*0.75/100))) ;
  109. plot1(PtnBaseSA13, "PtnBaseSA13");
  110.  
  111. PtnBaseSA14  = (closed1>closed2) ;
  112. plot1(PtnBaseSA14, "PtnBaseSA14");
  113.  
  114. PtnBaseSA15  = (closed1<closed2) ;
  115. plot1(PtnBaseSA15, "PtnBaseSA15");
  116.  
  117. PtnBaseSA16  = (closed1<opend1) ;
  118. plot1(PtnBaseSA16, "PtnBaseSA16");
  119.  
  120. PtnBaseSA17  = (closed1>opend1) ;
  121. plot1(PtnBaseSA17, "PtnBaseSA17");
  122.  
  123. PtnBaseSA18  = ((closed1<(closed2-closed2*0.5/100))) ;
  124. plot1(PtnBaseSA18, "PtnBaseSA18");
  125.  
  126. PtnBaseSA19  = ((closed1>(closed2+closed2*0.5/100))) ;
  127. plot1(PtnBaseSA19, "PtnBaseSA19");
  128.  
  129. PtnBaseSA20  = (highd0>(highd1)) ;
  130. plot1(PtnBaseSA20, "PtnBaseSA20");
  131.  
  132. PtnBaseSA21  = (highd1>highd5) ;
  133. plot1(PtnBaseSA21, "PtnBaseSA21");
  134.  
  135. PtnBaseSA22  = (lowd0<lowd1) ;
  136. plot1(PtnBaseSA22, "PtnBaseSA22");
  137.  
  138. PtnBaseSA23  = (lowd1<lowd5) ;
  139. plot1(PtnBaseSA23, "PtnBaseSA23");
  140.  
  141. PtnBaseSA24  = (highd1>highd2) and (highd1>highd3) and (highd1>highd4) ;
  142. plot1(PtnBaseSA24, "PtnBaseSA124");
  143.  
  144. PtnBaseSA25  = (highd1<highd2) and (highd1<highd3) and (highd1<highd4) ;
  145. plot1(PtnBaseSA25, "PtnBaseSA25");
  146.  
  147. PtnBaseSA26  = ((lowd1<lowd2) and (lowd1<lowd3) and (lowd1<lowd4)) ;
  148. plot1(PtnBaseSA26, "PtnBaseSA26");
  149.  
  150. PtnBaseSA27  = ((lowd1>lowd2) and (lowd1>lowd3) and (lowd1<lowd4)) ;
  151. plot1(PtnBaseSA27, "PtnBaseSA27");
  152.  
  153. PtnBaseSA28  = (closed1>closed2 and closed2>closed3 and opend0>closed1) ;
  154. plot1(PtnBaseSA28, "PtnBaseSA28");
  155.  
  156. PtnBaseSA29  = (closed1<closed2 and closed2<closed3 and opend0<closed1) ;
  157. plot1(PtnBaseSA29, "PtnBaseSA29");
  158.  
  159. PtnBaseSA30  = ((highd1-closed1)<0.20*(highd1-lowd1)) ;
  160. plot1(PtnBaseSA30, "PtnBaseSA30");
  161.  
  162. PtnBaseSA31  = ((closed1-lowd1)<0.20*(highd1-lowd1)) ;
  163. plot1(PtnBaseSA31, "PtnBaseSA31");
  164.  
  165. PtnBaseSA32  = (opend0<lowd1 or opend0>highd1) ;
  166. plot1(PtnBaseSA32, "PtnBaseSA32");
  167.  
  168. PtnBaseSA33  = ((opend0<(closed1-closed1*0.5/100))) ;
  169. plot1(PtnBaseSA33, "PtnBaseSA33");
  170.  
  171. PtnBaseSA34  = ((opend0>(closed1+closed1*0.5/100))) ;
  172. plot1(PtnBaseSA34, "PtnBaseSA34");
  173.  
  174. PtnBaseSA35  = (highd0<highd1 and lowd0>lowd1) ;
  175. plot1(PtnBaseSA35, "PtnBaseSA35");
  176.  
  177. PtnBaseSA36  = (highd1-lowd1)<((highd2-lowd2)+(highd3-lowd3))/3 ;
  178. plot1(PtnBaseSA36, "PtnBaseSA36");
  179.  
  180. PtnBaseSA37  = (highd1-lowd1)<(highd2-lowd2) and (highd2-lowd2)<(highd3-lowd3) ;
  181. plot1(PtnBaseSA37, "PtnBaseSA37");
  182.  
  183. PtnBaseSA38  = (highd2>highd1 and lowd2<lowd1) ;
  184. plot1(PtnBaseSA38, "PtnBaseSA38");
  185.  
  186. PtnBaseSA39  = (highd1<highd2 or lowd1>lowd2) ;
  187. plot1(PtnBaseSA39, "PtnBaseSA39");
  188.  
  189. PtnBaseSA40  = (highd2<highd1 and lowd2>lowd1) ;
  190. plot1(PtnBaseSA40, "PtnBaseSA40");
  191.  
  192. PtnBaseSA41  = absvalue(opend7-closed1)<0.5*(maxlist(highd1,highd2,highd3,highd4,highd5,highd6,highd7)-(minlist(lowd1,lowd2,lowd3,lowd4,lowd5,lowd6,lowd7))) ;
  193. plot1(PtnBaseSA41, "PtnBaseSA41");
  194.  
  195. PtnBaseSA42  = (highd1>highd7) ;
  196. plot1(PtnBaseSA42, "PtnBaseSA42");
  197.  
  198. PtnBaseSA43  = (lowd1<lowd7) ;
  199. plot1(PtnBaseSA43, "PtnBaseSA43");
  200.  
  201. PtnBaseSA44  = true ;
  202. plot1(PtnBaseSA44, "PtnBaseSA44");
  203.  
  204. PtnBaseSA45  = false ;
  205. plot1(PtnBaseSA45, "PtnBaseSA45");}
  206.  
  207.  
  208.  
  209.                      //////////////////////////// Valori Dei Pattern Originali ///////////////////////////
  210.                            // Aggiunti i pattern per le criptovalute sui 7 giorni numero: 41/42/43 //
  211.  
  212. {definizioneptn[1]  = absvalue(opend1-closed1)<0.5*(highd1-lowd1) ;
  213. definizioneptn[2]  = absvalue(opend1-closed5)<0.5*(highd5-closed1) ;
  214. definizioneptn[3]  = absvalue(opend5-closed1)<0.5*(maxlist(highd1,highd2,highd3,highd4,highd5)-(minlist(lowd1,lowd2,lowd3,lowd4,lowd5))) ;
  215. definizioneptn[4]  = ((highd0-opend0)> ((highd1-opend1)*1)) ;
  216. definizioneptn[5]  = ((highd0-opend0)> ((highd1-opend1)*1.5)) ;
  217. definizioneptn[6]  =  ((opend0-lowd0)> ((opend1-lowd1)*1)) ;
  218. definizioneptn[7]  =  ((opend0-lowd0)> ((opend1-lowd1)*1.5)) ;
  219. definizioneptn[8]  =  closed1>closed2 and closed2>closed3 and closed3>closed4 ;
  220. definizioneptn[9]  =  closed1<closed2 and closed2<closed3 and closed3<closed4 ;
  221. definizioneptn[10]  = highd1>highd2 and lowd1>lowd2 ;
  222. definizioneptn[11]  = highd1<highd2 and lowd1<lowd2 ;
  223. definizioneptn[12]  = ((highd0>(lowd0+lowd0*0.75/100))) ;
  224. definizioneptn[13]  = ((highd0<(lowd0+lowd0*0.75/100))) ;
  225. definizioneptn[14]  = (closed1>closed2) ;
  226. definizioneptn[15]  = (closed1<closed2) ;
  227. definizioneptn[16]  = (closed1<opend1) ;
  228. definizioneptn[17]  = (closed1>opend1) ;
  229. definizioneptn[18]  = ((closed1<(closed2-closed2*0.5/100))) ;
  230. definizioneptn[19]  = ((closed1>(closed2+closed2*0.5/100))) ;
  231. definizioneptn[20]  = (highd0>(highd1)) ;
  232. definizioneptn[21]  = (highd1>highd5) ;
  233. definizioneptn[22]  = (lowd0<lowd1) ;
  234. definizioneptn[23]  = (lowd1<lowd5) ;
  235. definizioneptn[24]  = (highd1>highd2) and (highd1>highd3) and (highd1>highd4) ;
  236. definizioneptn[25]  = (highd1<highd2) and (highd1<highd3) and (highd1<highd4) ;
  237. definizioneptn[26]  = ((lowd1<lowd2) and (lowd1<lowd3) and (lowd1<lowd4)) ;
  238. definizioneptn[27]  = ((lowd1>lowd2) and (lowd1>lowd3) and (lowd1<lowd4)) ;
  239. definizioneptn[28]  = (closed1>closed2 and closed2>closed3 and opend0>closed1) ;
  240. definizioneptn[29]  = (closed1<closed2 and closed2<closed3 and opend0<closed1) ;
  241. definizioneptn[30]  = ((highd1-closed1)<0.20*(highd1-lowd1)) ;
  242. definizioneptn[31]  = ((closed1-lowd1)<0.20*(highd1-lowd1)) ;
  243. definizioneptn[32]  = (opend0<lowd1 or opend0>highd1) ;
  244. definizioneptn[33]  = ((opend0<(closed1-closed1*0.5/100))) ;
  245. definizioneptn[34]  = ((opend0>(closed1+closed1*0.5/100))) ;
  246. definizioneptn[35]  = (highd0<highd1 and lowd0>lowd1) ;
  247. definizioneptn[36]  = (highd1-lowd1)<((highd2-lowd2)+(highd3-lowd3))/3 ;
  248. definizioneptn[37]  = (highd1-lowd1)<(highd2-lowd2) and (highd2-lowd2)<(highd3-lowd3) ;
  249. definizioneptn[38]  = (highd2>highd1 and lowd2<lowd1) ;
  250. definizioneptn[39]  = (highd1<highd2 or lowd1>lowd2) ;
  251. definizioneptn[40]  = (highd2<highd1 and lowd2>lowd1) ;
  252. definizioneptn[41]  = absvalue(opend7-closed1)<0.5*(maxlist(highd1,highd2,highd3,highd4,highd5,highd6,highd7)-(minlist(lowd1,lowd2,lowd3,lowd4,lowd5,lowd6,lowd7))) ;
  253. definizioneptn[42]  = (highd1>highd7) ;
  254. definizioneptn[43]  = (lowd1<lowd7) ;
  255. definizioneptn[44]  = true ;
  256. definizioneptn[45]  = false ;}
  257.  
  258.                                     // Fine Codifica di tutti i pattern base Unger + Criptovalute Easylanguage //
  259.  
  260.        
  261. ///////////////////////// Inizio calcolo valori singoli Crypto Su Sessione Fine Giornata E Non Session //////////////////////////
  262.  
  263.  
  264.  
  265.      
  266. var:  PtnBaseSA1Crypto(False), PtnBaseSA2Crypto(False), PtnBaseSA3Crypto(False), PtnBaseSA4Crypto(False), PtnBaseSA5Crypto(False),
  267.        PtnBaseSA6Crypto(False), PtnBaseSA7Crypto(False), PtnBaseSA8Crypto(False), PtnBaseSA9Crypto(False), PtnBaseSA10Crypto(False),
  268.         PtnBaseSA11Crypto(False), PtnBaseSA12Crypto(False), PtnBaseSA13Crypto(False), PtnBaseSA14Crypto(False), PtnBaseSA15Crypto(False),
  269.          PtnBaseSA16Crypto(False), PtnBaseSA17Crypto(False), PtnBaseSA18Crypto(False), PtnBaseSA19Crypto(False), PtnBaseSA20Crypto(False),
  270.           PtnBaseSA21Crypto(False), PtnBaseSA22Crypto(False), PtnBaseSA23Crypto(False), PtnBaseSA24Crypto(False), PtnBaseSA25Crypto(False),
  271.            PtnBaseSA26Crypto(False), PtnBaseSA27Crypto(False), PtnBaseSA28Crypto(False), PtnBaseSA29Crypto(False), PtnBaseSA30Crypto(False),
  272.             PtnBaseSA31Crypto(False), PtnBaseSA32Crypto(False), PtnBaseSA33Crypto(False), PtnBaseSA34Crypto(False), PtnBaseSA35Crypto(False),
  273.              PtnBaseSA36Crypto(False), PtnBaseSA37Crypto(False), PtnBaseSA38Crypto(False), PtnBaseSA39Crypto(False), PtnBaseSA40Crypto(False),
  274.               PtnBaseSA41Crypto(False), PtnBaseSA42Crypto(False), PtnBaseSA43Crypto(False), PtnBaseSA44Crypto(False), PtnBaseSA45Crypto(False);
  275.              
  276.              
  277. var : aperturaZero(0), aperturaUno(0), aperturaDue(0), aperturaTre(0), aperturaQuattro(0), aperturaCinque(0), aperturaSei(0), aperturaSette(0);
  278. var : chiusuraZero(0), chiusuraUno(0), chiusuraDue(0), chiusuraTre(0), chiusuraQuattro(0), chiusuraCinque(0), chiusuraSei(0), chiusuraSette(0);  
  279. var : minimoZero(0), minimoUno(0), minimoDue(0), minimoTre(0), minimoQuattro(0), minimoCinque(0), minimoSei(0), minimoSette(0);  
  280. var : massimoZero(0), massimoUno(0), massimoDue(0), massimoTre(0), massimoQuattro(0), massimoCinque(0), massimoSei(0), massimoSette(0);
  281.  
  282.  
  283. // SESSIONI GIORNATA TEMPO
  284. aperturaZero = openD(0);                           
  285. //plot10(aperturaZero, "aperturaZero");
  286. aperturaUno = openD(1);                            
  287. //plot11(aperturaUno, "aperturaUno");
  288. aperturaDue = openD(2);
  289. //plot12(aperturaDue, "aperturaDue");
  290. aperturaTre = openD(3);
  291. //plot13(aperturaTre, "aperturaTre");
  292. aperturaQuattro = openD(4);
  293. //plot14(aperturaQuattro, "aperturaQuattro");
  294. aperturaCinque = openD(5);                         
  295. //plot15(aperturaCinque, "aperturaCinque");
  296. aperturaSei = openD(6);
  297. //plot16(aperturaSei, "aperturaSei");
  298. aperturaSette = openD(7);
  299. //plot17(aperturaSette, "aperturaSette");
  300.  
  301. chiusuraZero = closeD(0);
  302. //plot20(chiusuraZero, "chiusuraZero");
  303. chiusuraUno = closeD(1);                           
  304. //plot21(chiusuraUno, "chiusuraUno");
  305. chiusuraDue = closeD(2);                           
  306. //plot22(chiusuraDue, "chiusuraDue");
  307. chiusuraTre = closeD(3);                           
  308. //plot23(chiusuraTre, "chiusuraTre");
  309. chiusuraQuattro = closeD(4);                       
  310. //plot24(chiusuraQuattro, "chiusuraQuattro");
  311. chiusuraCinque = closeD(5);                        
  312. //plot25(chiusuraCinque, "chiusuraCinque");
  313. chiusuraSei = closeD(6);
  314. //plot26(chiusuraSei, "chiusuraSei");
  315. chiusuraSette = closeD(7);
  316. //plot27(chiusuraSette, "chiusuraSette");
  317.  
  318. minimoZero = lowD(0);                              
  319. //plot30(minimoZero, "minimoZero");
  320. minimoUno = lowD(1);                               
  321. //plot31(minimoUno, "minimoUno");                  
  322. minimoDue = lowD(2);                               
  323. //plot32(minimoDue, "minimoDue");
  324. minimoTre = lowD(3);                               
  325. //plot33(minimoTre, "minimoTre");
  326. minimoQuattro = lowD(4);                           
  327. //plot34(minimoQuattro, "minimoQuattro");
  328. minimoCinque = lowD(5);                            
  329. //plot35(minimoCinque, "minimoCinque");
  330. minimoSei = lowD(6);
  331. //plot36(minimoSei, "minimoSei");
  332. minimoSette = lowD(7);
  333. //plot37(minimoSette, "minimoSette");
  334.  
  335. massimoZero = highD(0);                            
  336. //plot40(massimoZero, "massimoZero");
  337. massimoUno = highD(1);                             
  338. //plot41(massimoUno, "massimoUno");
  339. massimoDue = highD(2);                             
  340. //plot42(massimoDue, "massimoDue");
  341. massimoTre = highD(3);                             
  342. //plot43(massimoTre, "massimoTre");
  343. massimoQuattro = highD(4);                         
  344. //plot44(massimoQuattro, "massimoQuattro");
  345. massimoCinque = highD(5);                          
  346. //plot45(massimoCinque, "massimoCinque");
  347. massimoSei = highD(6);
  348. //plot46(massimoSei, "massimoSei");
  349. massimoSette = highD(7);
  350. //plot47(massimoSette, "massimoSette");
  351.  
  352. ///////////////////////// Fine calcolo valori singoli Crypto Su Sessione Fine Giornata E Non Session //////////////////////////
  353.  
  354.  
  355. ///////////////////////// INIZIO DEBUG VERIFICA E CONFRONTO DEI "VALORI" DEI PTN "SESSIONI TEMPO" E "CLASSICHE" /////////////////////////
  356.  
  357. // PLOTTARE VALORI SESSIONI TEMPO CRYPTO //
  358. //plot99 (aperturaUno, "aperturaZero(0,1);", red);
  359. //plot98(chiusuraUno,"chiusuraUno(0,1);", red);
  360. //plot97 (massimoUno, "massimoUno(0,1);", red);
  361. //plot96(minimoUno,"minimoUno(0,1);", red);
  362.  
  363. // PLOTTARE VALORI SESSIONI CLASSICHE //
  364. //plot95 (opend1, "OpenSession(0,1);", yellow);
  365. //plot94(closed1,"CloseSession(0,1);", yellow);
  366. //plot93 (highd1, "OpenSession(0,1);", yellow);
  367. //plot92(lowd1,"LowSession1(0,1);", yellow);
  368.  
  369.  
  370. // Confronto l'ingresso dei 2 pattern tra sessioni e fine giornata
  371.  
  372. // Inserisci sotto il PtnCrypto !!! //
  373. //PtnBaseSA1Crypto  = absvalue(aperturaUno-chiusuraUno)<0.5*(massimoUno-minimoUno) ;
  374. //plot1(PtnBaseSA1Crypto, "PtnBaseSA1Crypto");
  375.  
  376. // Inserisci sotto il PtnClassico !!! //
  377. //PtnBaseSA1  = absvalue(opend1-closed1)<0.5*(highd1-lowd1) ;                        
  378. //plot2(PtnBaseSA1, "PtnBaseSA1");
  379.  
  380. ///////////////////////// FINE DEBUG VERIFICA E CONFRONTO DEI "VALORI" DEI PTN "SESSIONI TEMPO" E "CLASSICHE" /////////////////////////
  381.  
  382.  
  383. // Prossimo passo da fare è quello di controllare il PtnBaseSA"NUMERO"Crypto con tradingview per vedere se coincide !!! //
  384.  
  385.  
  386. //////////////////////////////////////////  Inizio Codifica di tutti i pattern base Unger Easylanguage  //////////////////////////////////////////
  387.                       // Per i range settimanali delle criptovalute alcuni pattern vanno estesi a 7 vedi video Unger //
  388.                                       // Decommentare i plot che servono sul momento //
  389.  
  390.  
  391. //PtnBaseSACrypto1  = absvalue(aperturaUno-chiusuraUno)<0.5*(massimoUno-minimoUno) ;
  392. //plot1(PtnBaseSACrypto1, "PtnBaseSACrypto1");
  393.  
  394. //PtnBaseSACrypto2  = absvalue(aperturaUno-chiusuraCinque)<0.5*(massimoCinque-chiusuraUno) ;
  395. //plot2(PtnBaseSACrypto2, "PtnBaseSACrypto2");
  396.  
  397. //PtnBaseSACrypto3  = absvalue(aperturaCinque-chiusuraUno)<0.5*(maxlist(massimoUno,massimoDue,massimoTre,massimoQuattro,massimoCinque)-(minlist(minimoUno,minimoDue,minimoTre,minimoQuattro,minimoCinque))) ;
  398. //plot2(PtnBaseSACrypto3, "PtnBaseSACrypto3");
  399.  
  400. //PtnBaseSACrypto4  = ((massimoZero-aperturaZero)> ((massimoUno-aperturaUno)*1)) ;
  401. //plot2(PtnBaseSACrypto4, "PtnBaseSACrypto4";
  402.  
  403. //PtnBaseSACrypto5  = ((massimoZero-aperturaZero)> ((massimoUno-aperturaUno)*1.5)) ;
  404. //plot2(PtnBaseSACrypto5, "PtnBaseSACrypto5");
  405.  
  406. //PtnBaseSACrypto6  = ((aperturaZero-minimoZero)> ((aperturaUno-minimoUno)*1)) ;
  407. //plot2(PtnBaseSACrypto6, "PtnBaseSACrypto6")
  408.  
  409. //PtnBaseSACrypto7  = ((aperturaZero-minimoZero)> ((aperturaUno-minimoUno)*1.5)) ;
  410. //plot2(PtnBaseSACrypto7, "PtnBaseSACrypto7");
  411.  
  412. //PtnBaseSACrypto8  = chiusuraUno>chiusuraDue and chiusuraDue>chiusuraTre and chiusuraTre>chiusuraQuattro ;
  413. //plot2(PtnBaseSACrypto8, "PtnBaseSACrypto8");
  414.  
  415. //PtnBaseSACrypto9  = chiusuraUno<chiusuraDue and chiusuraDue<chiusuraTre and chiusuraTre<chiusuraQuattro ;
  416. //plot2(PtnBaseSACrypto9, "PtnBaseSACrypto9");
  417.  
  418. //PtnBaseSACrypto10  = massimoUno>massimoDue and minimoUno>minimoDue ;
  419. //plot2(PtnBaseSACrypto10, "PtnBaseSACrypto10");
  420.  
  421. //PtnBaseSACrypto11  = massimoUno<massimoDue and minimoUno<minimoDue ;
  422. //plot2(PtnBaseSACrypto11, "PtnBaseSACrypto11");
  423.  
  424. //PtnBaseSACrypto12  = ((massimoZero>(minimoZero+minimoZero*0.75/100))) ;
  425. //plot2(PtnBaseSACrypto12, "PtnBaseSACrypto12");
  426.  
  427. //PtnBaseSACrypto13  = ((massimoZero<(minimoZero+minimoZero*0.75/100))) ;
  428. //plot2(PtnBaseSACrypto13, "PtnBaseSACrypto13");
  429.  
  430. //PtnBaseSACrypto14  = (chiusuraUno>chiusuraDue) ;
  431. //plot2(PtnBaseSACrypto14, "PtnBaseSACrypto14");
  432.  
  433. //PtnBaseSACrypto15  = (chiusuraUno<chiusuraDue) ;
  434. //plot2(PtnBaseSACrypto15, "PtnBaseSACrypto15");
  435.  
  436. //PtnBaseSACrypto16  = (chiusuraUno<aperturaUno) ;
  437. //plot2(PtnBaseSACrypto16, "PtnBaseSACrypto16");
  438.  
  439. //PtnBaseSACrypto17  = (chiusuraUno>aperturaUno) ;
  440. //plot2(PtnBaseSACrypto17, "PtnBaseSACrypto17");
  441.  
  442. //PtnBaseSACrypto18  = ((chiusuraUno<(chiusuraDue-chiusuraDue*0.5/100))) ;
  443. //plot2(PtnBaseSACrypto18, "PtnBaseSACrypto18");
  444.  
  445. //PtnBaseSACrypto19  = ((chiusuraUno>(chiusuraDue+chiusuraDue*0.5/100))) ;
  446. //plot2(PtnBaseSACrypto19, "PtnBaseSACrypto19");
  447.  
  448. //PtnBaseSACrypto20  = (massimoZero>(massimoUno)) ;
  449. //plot2(PtnBaseSACrypto20, "PtnBaseSACrypto20");
  450.  
  451. //PtnBaseSACrypto21  = (massimoUno>massimoCinque) ;
  452. //plot2(PtnBaseSACrypto21, "PtnBaseSACrypto21");
  453.  
  454. //PtnBaseSACrypto22  = (minimoZero<minimoUno) ;
  455. //plot2(PtnBaseSACrypto22, "PtnBaseSACrypto22");
  456.  
  457. //PtnBaseSACrypto23  = (minimoUno<minimoCinque) ;
  458. //plot2(PtnBaseSACrypto23, "PtnBaseSACrypto23");
  459.  
  460. //PtnBaseSACrypto24  = (massimoUno>massimoDue) and (massimoUno>massimoTre) and (massimoUno>massimoQuattro) ;
  461. //plot2(PtnBaseSACrypto24, "PtnBaseSACrypto24");
  462.  
  463. //PtnBaseSACrypto25  = (massimoUno<massimoDue) and (massimoUno<massimoTre) and (massimoUno<massimoQuattro) ;
  464. //plot2(PtnBaseSACrypto25, "PtnBaseSACrypto25");
  465.  
  466. //PtnBaseSACrypto26  = ((minimoUno<minimoDue) and (minimoUno<minimoTre) and (minimoUno<minimoQuattro)) ;
  467. //plot2(PtnBaseSACrypto26, "PtnBaseSACrypto26");
  468.  
  469. //PtnBaseSACrypto27  = ((minimoUno>minimoDue) and (minimoUno>minimoTre) and (minimoUno<minimoQuattro)) ;
  470. //plot2(PtnBaseSACrypto27, "PtnBaseSACrypto27");
  471.  
  472. //PtnBaseSACrypto28  = (chiusuraUno>chiusuraDue and chiusuraDue>chiusuraTre and aperturaZero>chiusuraUno) ;
  473. //plot2(PtnBaseSACrypto28, "PtnBaseSACrypto28");
  474.  
  475. //PtnBaseSACrypto29  = (chiusuraUno<chiusuraDue and chiusuraDue<chiusuraTre and aperturaZero<chiusuraUno) ;
  476. //plot2(PtnBaseSACrypto29, "PtnBaseSACrypto29");
  477.  
  478. //PtnBaseSACrypto30  = ((massimoUno-chiusuraUno)<0.20*(massimoUno-minimoUno)) ;
  479. //plot2(PtnBaseSACrypto30, "PtnBaseSACrypto30");
  480.  
  481. //PtnBaseSACrypto31  = ((chiusuraUno-minimoUno)<0.20*(massimoUno-minimoUno)) ;
  482. //plot2(PtnBaseSACrypto31, "PtnBaseSACrypto31");
  483.  
  484. //PtnBaseSACrypto32  = (aperturaZero<minimoUno or aperturaZero>massimoUno) ;
  485. //plot2(PtnBaseSACrypto32, "PtnBaseSACrypto32");
  486.  
  487. //PtnBaseSACrypto33  = ((aperturaZero<(chiusuraUno-chiusuraUno*0.5/100))) ;
  488. //plot2(PtnBaseSACrypto33, "PtnBaseSACrypto33");
  489.  
  490. //PtnBaseSACrypto34  = ((aperturaZero>(chiusuraUno+chiusuraUno*0.5/100))) ;
  491. //plot2(PtnBaseSACrypto34, "PtnBaseSACrypto34");
  492.  
  493. //PtnBaseSACrypto35  = (massimoZero<massimoUno and minimoZero>minimoUno) ;
  494. //plot2(PtnBaseSACrypto35, "PtnBaseSACrypto35");
  495.  
  496. //PtnBaseSACrypto36  = (massimoUno-minimoUno)<((massimoDue-minimoDue)+(massimoTre-minimoTre))/3 ;
  497. //plot2(PtnBaseSACrypto36, "PtnBaseSACrypto36");
  498.  
  499. //PtnBaseSACrypto37  = (massimoUno-minimoUno)<(massimoDue-minimoDue) and (massimoDue-minimoDue)<(massimoTre-minimoTre) ;
  500. //plot2(PtnBaseSACrypto37, "PtnBaseSACrypto37");
  501.  
  502. //PtnBaseSACrypto38  = (massimoDue>massimoUno and minimoDue<minimoUno) ;
  503. //plot2(PtnBaseSACrypto38, "PtnBaseSACrypto38");
  504.  
  505. //PtnBaseSACrypto39  = (massimoUno<massimoDue or minimoUno>minimoDue) ;
  506. //plot2(PtnBaseSACrypto39, "PtnBaseSACrypto39");
  507.  
  508. //PtnBaseSACrypto40  = (massimoDue<massimoUno and minimoDue>minimoUno) ;
  509. //plot2(PtnBaseSACrypto40, "PtnBaseSACrypto40");
  510.  
  511. //PtnBaseSACrypto41  = absvalue(aperturaSette-chiusuraUno)<0.5*(maxlist(massimoUno,massimoDue,massimoTre,massimoQuattro,massimoCinque,massimoSei,massimoSette)-(minlist(minimoUno,minimoDue,minimoTre,minimoQuattro,minimoCinque,minimoSei,minimoSette))) ;
  512. //plot2(PtnBaseSACrypto41, "PtnBaseSACrypto41");
  513.  
  514. //PtnBaseSACrypto42  = (massimoUno>massimoSette) ;
  515. //plot2(PtnBaseSACrypto42, "PtnBaseSACrypto42");
  516.  
  517. //PtnBaseSACrypto43  = (minimoUno<minimoSette) ;
  518. //plot2(PtnBaseSACrypto43, "PtnBaseSACrypto43");
  519.  
  520. //PtnBaseSACrypto44  = true ;
  521. //plot1(PtnBaseSACrypto44, "PtnBaseSACrypto44");
  522.  
  523. //PtnBaseSACrypto45  = false ;
  524. //plot1(PtnBaseSACrypto45, "PtnBaseSACrypto45");
  525.  
  526.  
  527. //////////////////////////////////////////  Fine Codifica di tutti i pattern base Unger Easylanguage  //////////////////////////////////////////
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.                       ///////////////////////// INIZIO AREA DI LAVORO DA CANCELLA IN FUTURO" /////////////////////////
  537.  
  538. // PLOTTARE VALORI SESSIONI TEMPO CRYPTO //
  539. //plot99 (aperturaUno, "aperturaUno(0,1);", red);
  540. //plot98(chiusuraUno,"chiusuraUno(0,1);", red);
  541. //plot97 (massimoUno, "massimoUno(0,1);", red);
  542. //plot96(massimoZero,"massimoZero(0,0);", red);
  543.  
  544. // PLOTTARE VALORI SESSIONI CLASSICHE //
  545. //plot95 (opend0, "OpenSession(0,0);", yellow);
  546. //plot94(closed1,"CloseSession(0,1);", yellow);
  547. //plot93 (highd0, "HighSession(0,0);", yellow);
  548. //plot92(lowd1,"LowSession1(0,1);", yellow);
  549.  
  550.  
  551. // Confronto l'ingresso dei 2 pattern tra sessioni e fine giornata    ////        CONTINUARE DAL40 IN POI !!!!!!!!!!!!  ////
  552.  
  553. // Inserisci sotto il PtnCrypto !!! //
  554. //PtnBaseSA4Crypto  = ((massimoZero-aperturaZero)> ((massimoUno-aperturaUno)*1)) ;
  555. //plot1(PtnBaseSA4Crypto, "PtnBaseSA4Crypto");
  556.  
  557. // Inserisci sotto il PtnClassico !!! //
  558. //PtnBaseSA4  = ((highd0-opend0)> ((highd1-opend1)*1)) ;
  559. //plot2(PtnBaseSA4, "PtnBaseSA4");
  560.  
  561.                              ///////////////////////// FINE AREA DI LAVORO DA CANCELLA IN FUTURO" /////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement