Bei Indikaator nur das tiefste Tief anzeigen
Forums › ProRealTime Deutsch forum › ProBuilder Support › Bei Indikaator nur das tiefste Tief anzeigen
- This topic has 7 replies, 2 voices, and was last updated 1 month ago by
robertogozzi.
-
-
04/30/2025 at 10:03 AM #246563
Hallo, dieser Indikator ist sehr gut. Ich hätte aber gern etwas geändert.
Im Bild ist ein Aufwärtstrend zu sehen wo blau markiert auch noch weitere Tiefpunkt und Hochpunkte zu sehen sind
Der Indikator soll ja den Trend anzeigen. Ist es möglich nur das eine tiefstes Tief zwischen dem letzten Hoch und dem neuen Hoch anzuzeigen. Hab ich mit grünem Kreis markiert.
Im Moment werden wie im Bild ersichtlich mehrere Tiefs zwischen dem letzten und dem neuen Hoch angezeigt. Die Zwischentiefs sollen nicht angezeigt werden. Mit blauem Kreis markiert.
Vielen Dank
Hier der Code:
defparam calculateonlastbars=30000
cp = 3once lastpoint = 0
if high[cp] >= highest[2*cp+1](high) then
PEAK = 1
else
PEAK = 0
endifif low[cp] <= lowest[2*cp+1](low) then
TROUGH = -1
else
TROUGH = 0
endifif PEAK = 1 then
TOPy = high[cp]
TOPx = barindex[cp]
endifif TROUGH = -1 then
BOTy = low[cp]
BOTx = barindex[cp]
endifif PEAK>0 and (lastpoint=-1 or lastpoint=0) then
DRAWSEGMENT(lastX,lastY,TOPx,TOPy) COLOURED(127,255,0,1000)
DRAWTEXT(“■”,TOPx,TOPy,Dialog,Bold,10) coloured(200,0,0,255)
lastpoint = 1
lastX = TOPx
lastY = TOPy
endifif TROUGH<0 and (lastpoint=1 or lastpoint=0) then
DRAWSEGMENT(lastX,lastY,BOTx,BOTy) COLOURED(255,0,0,255)
DRAWTEXT(“■”,BOTx,BOTy,Dialog,Bold,10) coloured(0,200,0,255)
lastpoint = -1
lastX = BOTx
lastY = BOTy
endif//TREND ATTEMPT
atr=AverageTrueRange[14](close)
if TOPy > TOPy[1] and topy<>lasttop then
drawarrowup(barindex,low-atr/2) coloured(0,200,0)
lasttop=topy
trendup = 1
else
trendup = 0
endifRETURN TOPy as “TOPy”, BOTY as “BOTy”, trendup as “trendup”
05/03/2025 at 4:23 PM #246751Ja, es kann angezeigt werden, aber nicht sofort, sondern erst, wenn auch das zweite Maximum gedruckt wird.
Es handelt sich im Wesentlichen um einen Indikator für das „Neulackieren“ (repainting).
Ist das für Sie in Ordnung?05/03/2025 at 4:43 PM #246752In der Realität ist es bereits so, zwischen zwei Maxima gibt es nur ein Minimum!
05/05/2025 at 8:34 AM #24679505/19/2025 at 11:08 AM #247308Hallo,
könnte man aus diesem Trendfolge Indikator ein System machen, dass long den Ausbruch aus dem letzten Hoch (HH) handelt und den SL unter dass letzte Tief legt?
Regel 1 schließt eine Kerze auf Tagesbasis über dem letzten Hoch, wird eingestiegen (Entry) der SL liegt unter dem letzten Tief.
Regel 2 das letzte Hoch ist der höchste Punkt (Kurs) seid den letzten 15 Kerzen
Man bleibt so lange im Markt bis man ein CRV von 2 hat.
Siehe Bild
Vielen Dank
05/19/2025 at 5:11 PM #247338Los geht’s:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576//defparam calculateonlastbars=30000cp = 3once lastpoint = 0if high[cp] >= highest[2*cp+1](high) thenPEAK = 1elsePEAK = 0endifif low[cp] <= lowest[2*cp+1](low) thenTROUGH = -1elseTROUGH = 0endifif PEAK = 1 thenTOPy = high[cp]TOPx = barindex[cp]endifif TROUGH = -1 thenBOTy = low[cp]BOTx = barindex[cp]endifif PEAK>0 and (lastpoint=-1 or lastpoint=0) then//DRAWSEGMENT(lastX,lastY,TOPx,TOPy) COLOURED(127,255,0,1000)//DRAWTEXT("■",TOPx,TOPy,Dialog,Bold,10) coloured(200,0,0,255)lastpoint = 1lastX = TOPxlastY = TOPyHH = TOPyHHbar = TOPxendifif TROUGH<0 and (lastpoint=1 or lastpoint=0) then//DRAWSEGMENT(lastX,lastY,BOTx,BOTy) COLOURED(255,0,0,255)//DRAWTEXT("■",BOTx,BOTy,Dialog,Bold,10) coloured(0,200,0,255)lastpoint = -1lastX = BOTxlastY = BOTyLL = BOTyLLbar = BOTxendif//TREND ATTEMPTatr=AverageTrueRange[14](close)if TOPy > TOPy[1] and topy<>lasttop then//drawarrowup(barindex,low-atr/2) coloured(0,200,0)lasttop=topytrendup = 1elsetrendup = 0endif//RETURN TOPy as "TOPy", BOTY as "BOTy", trendup as "trendup"// LongIF Not LongOnMarket AND (close > HH) THENBUY 1 Contract at MarketSET STOP PRICE LLSL = abs(close - LL)TP = close + (SL * 2)SET TARGET PRICE TPENDIF// ShortIF Not ShortOnMarket AND (close < LL) THENSELLSHORT 1 Contract at MarketSET STOP PRICE HHSL = abs(close - HH)TP = close - (SL * 2)SET TARGET PRICE TPENDIF05/20/2025 at 8:01 AM #247355Hallo und Danke!!!!
Das ist schon toll!!
Ich würde gern noch zwei Bedingungen zufügen.
1. Es wird nur Long eingestiegen, wenn das letzte LL (LOW) höher ist, als das LL davor (vorletzte). Im Bild gelb markiert
2. In der Bewegung zwischen dem letzten LL bis zum nächsten HH darf es nur einen Trade geben!! Das heißt der Ausbruch wird gehandelt, der Trade läuft. Wenn dieser Trade jetzt beendet wird, dann muss es erst ein neues LL geben, damit der der nächste Ausbruch gehandelt wird!
Ich möchte damit verhindern, dass direkt in die Bewegung eingestiegen wird
05/22/2025 at 5:03 PM #247525Versuchen Sie Folgendes:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485//defparam calculateonlastbars=30000ONCE HH = 0ONCE HHprec = 0ONCE LL = 0ONCE LLprec = 0cp = 3once lastpoint = 0if high[cp] >= highest[2*cp+1](high) thenPEAK = 1elsePEAK = 0endifif low[cp] <= lowest[2*cp+1](low) thenTROUGH = -1elseTROUGH = 0endifif PEAK = 1 thenTOPy = high[cp]TOPx = barindex[cp]endifif TROUGH = -1 thenBOTy = low[cp]BOTx = barindex[cp]endifif PEAK>0 and (lastpoint=-1 or lastpoint=0) then//DRAWSEGMENT(lastX,lastY,TOPx,TOPy) COLOURED(127,255,0,1000)//DRAWTEXT("■",TOPx,TOPy,Dialog,Bold,10) coloured(200,0,0,255)lastpoint = 1lastX = TOPxlastY = TOPyHHprec= HHHH = TOPyHHbar = TOPxendifif TROUGH<0 and (lastpoint=1 or lastpoint=0) then//DRAWSEGMENT(lastX,lastY,BOTx,BOTy) COLOURED(255,0,0,255)//DRAWTEXT("■",BOTx,BOTy,Dialog,Bold,10) coloured(0,200,0,255)lastpoint = -1lastX = BOTxlastY = BOTyLLprec= LLLL = BOTyLLbar = BOTxendif//TREND ATTEMPTatr=AverageTrueRange[14](close)if TOPy > TOPy[1] and topy<>lasttop then//drawarrowup(barindex,low-atr/2) coloured(0,200,0)lasttop=topytrendup = 1elsetrendup = 0endif//RETURN TOPy as "TOPy", BOTY as "BOTy", trendup as "trendup"// LongIF Not LongOnMarket AND (close > HH) AND (HH > 0) AND (LL > LLprec) AND (LLprec > 0) THENBUY 1 Contract at MarketSET STOP PRICE LLSL = abs(close - LL)TP = close + (SL * 2)SET TARGET PRICE TPLLprec = 0ENDIF// ShortIF Not ShortOnMarket AND (close < LL) AND (LL > 0) AND (HH < HHprec) AND (HHprec > 0) THENSELLSHORT 1 Contract at MarketSET STOP PRICE HHSL = abs(close - HH)TP = close - (SL * 2)SET TARGET PRICE TPHHprec = 0ENDIF -
AuthorPosts
Find exclusive trading pro-tools on