Indikator trendline zeichen
Forums › ProRealTime Deutsch forum › ProBuilder Support › Indikator trendline zeichen
-
-
04/07/2025 at 7:06 AM #24564604/07/2025 at 12:14 PM #245668
Guten Morgen. Ich empfehle Ihnen, die Suchfunktion des Forums zu nutzen, um Beiträge zu finden, die Ihnen Ideen zur Programmierung des gesuchten Indikators geben.
Wenn Sie zum Beispiel nach Trendlinien suchen, finden Sie Beiträge wie diese zwei:04/08/2025 at 6:28 AM #24571604/08/2025 at 6:47 AM #24571804/08/2025 at 11:23 AM #24572904/08/2025 at 2:10 PM #245733Ich glaube, ich verstehe dich nicht ganz … Ohne zu wissen, in welchem Indikator du eine Trendlinie berechnen möchtest, kann ich nicht viel mehr sagen als das, was ich bereits gesagt habe.
Ich habe dir die obigen Links als Referenz gegeben, damit du sehen kannst, wie Trendlinien gezeichnet werden, und sie an deinen Code anpassen kannst.
Es gibt keine Funktion, die automatisch Trendlinien zeichnet – du musst selbst die Punkte A(x1, y1) und B(x2, y2) finden, um dann die Linie zu zeichnen.
Na ja, vielleicht kann dir jemand anderes weiterhelfen.04/08/2025 at 3:10 PM #24573404/08/2025 at 7:21 PM #245735Hallo,
Vielleicht ist das ja etwas für Sie…
Dieser Indikator zeichnet “Support & Resistance”…
Support and Resistance123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869// https://www.prorealcode.com/topic/array-variables-availability-in-prorealtime/// (please do not remove the link above for future reference)// Example #1: support and resistance example, based on fractals pointsdefparam drawonlastbaronly=true// --- settingsfractalP = 10percent = 0.1barlimit = 500// --- end of settings//fractalscp=fractalPif high[cp] >= highest[(cp)*2+1](high) then //new fractal high found$TOPy[lastset($TOPy)+1] = high[cp] //store fractal value$TOPx[lastset($TOPx)+1] = barindex[cp] //store fractal barindexendifif low[cp] <= lowest[(cp)*2+1](low) then //new fractal low found$BOTy[lastset($BOTy)+1] = low[cp] //store fractal value$BOTx[lastset($BOTx)+1] = barindex[cp] //stire fractal barindexendifif(islastbarupdate and isset($topy[0]) and isset($boty[0])) then//check points in a range of X percentfor i = 0 to lastset($TOPy) do //loop through the topsfor y = 0 to lastset($TOPy) do //check first top with other topschange=abs(($topy[y]-$topy[i])/$topy[i]) //percent range between the 2 topsif change<=percent/100 and barindex-$TOPx[y]<barlimit and $topx[i]<>$topx[y] thenif close>min($topy[y],$topy[i]) then //define the colorr=0g=255elser=255g=0endif//plot points at each topsDRAWPOINT($topx[i],$topy[i],2) COLOURED (r,g,0) BORDERCOLOR (r,g,0)DRAWPOINT($topx[y],$topy[y],2) COLOURED (r,g,0) BORDERCOLOR (r,g,0)midlevel=($topy[i]+$topy[y])/2//display the mid level priceDRAWTEXT("#midlevel#", barindex+8, midlevel, monospaced, standard, 14)//plot the zonedrawrectangle(min($topx[y],$topx[i]),$topy[y],barindex,$topy[i]) coloured(r,g,50,50) bordercolor(r,g,0)endifnextnextfor i = 0 to lastset($BOTy) do //loop through the bottomsfor y = 0 to lastset($BOTy) do //check first bottom with other bottomschange=abs(($boty[y]-$boty[i])/$boty[i]) //percent range between the 2 bottomsif change<=percent/100 and barindex-$BOTx[y]<barlimit and $BOTx[i]<>$BOTx[y] thenif close<max($boty[y],$boty[i]) then //define the colorr=255g=0elser=0g=255endifDRAWPOINT($botx[i],$boty[i],2) COLOURED (r,g,0) BORDERCOLOR (r,g,0)DRAWPOINT($botx[y],$boty[y],2) COLOURED (r,g,0) BORDERCOLOR (r,g,0)midlevel=($boty[i]+$boty[y])/2DRAWTEXT("#midlevel#", barindex+8, midlevel, monospaced, standard, 14)drawrectangle(min($botx[y],$botx[i]),$boty[y],barindex,$boty[i]) coloured(r,g,50,50) bordercolor(r,g,0)endifnextnextendifreturn1 user thanked author for this post.
04/08/2025 at 8:23 PM #24573804/09/2025 at 2:26 PM #24575704/16/2025 at 3:10 PM #245952 -
AuthorPosts
Find exclusive trading pro-tools on