Forums › ProRealTime forum Italiano › Supporto ProScreener › PATTERN FLAT BASE E DOUBLE BOTTOM › Reply To: PATTERN FLAT BASE E DOUBLE BOTTOM
03/28/2024 at 9:37 AM
#230628
Hola Mira, te dejo qui uno screener che rileva patrones de doble suelo. Faltaría añadir la condición del time, ma non lo ha fatto per non limitare di più i risultati.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
//-----Inputs------------------------------------------------// prd = 10 // Pivots calculation periods bull1 = 30 // % Minimum bullish trend first the bottom bear1 = 10 // % Minimum bear market to create the bottom diftop = 2 // % Diference between tops difbot = 2 // % Diference between bottoms //------------Pivots low-------------------------------------// if low > low[prd] and lowest[prd](low) > low[prd] and low[prd] < lowest[prd](low)[prd+1] then $pl[z+1] = low[prd] $plx[z+1] = barindex[prd] //drawtext("L",barindex[prd],low[prd]-0.2*tr) //drawpoint(barindex[prd],low[prd],2)coloured("blue") z = z + 1 endif //-----------------------------------------------------------// if z > 2 then pl1 = $pl[max(0,z-2)] pl2 = $pl[max(0,z-1)] pl3 = $pl[z] ph1 = highest[max(0,($plx[max(0,z-1)]-$plx[max(0,z-2)]))](high)[barindex-$plx[max(0,z-1)]] ph2 = highest[max(0,($plx[max(0,z)]-$plx[max(0,z-1)]))](high)[barindex-$plx[max(0,z)]] endif //------------------------------------------------------------// c1 = (ph1/pl1-1)*100 > bull1 c2 = (pl2/ph1-1)*100 < -bear1 c3 = abs(ph2/ph1-1)*100 < diftop c4 = abs(pl3/pl2-1)*100 < difbot setup = c1 and c2 and c3 and c4 screener[setup] |