Indikator programmierung Hilfe
Forums › ProRealTime Deutsch forum › Plattform-Support ProRealTime › Indikator programmierung Hilfe
- This topic has 15 replies, 3 voices, and was last updated 1 year ago by elviko.
-
-
08/08/2023 at 3:34 PM #218739
Hallo zusammen!!!!
Programmierung Indikator.. Wie programmiere ich das der aktulle kur Von der Fibonacci 61.80 Entfernung in prozent als Histogramm mir anzeigt wird. Da sich der kurs ständig ändert soll immer aktuell immer angezeigt werden.
08/09/2023 at 7:59 AM #218764<span style=”vertical-align: inherit;”><span style=”vertical-align: inherit;”>defparam drawonlastbaronly=true</span></span>
<span style=”vertical-align: inherit;”><span style=”vertical-align: inherit;”>Abziehbild=4</span></span>
<span style=”vertical-align: inherit;”><span style=”vertical-align: inherit;”>Punkt1=Durchschnitt[21] (nah) </span></span>
<span style=”vertical-align: inherit;”><span style=”vertical-align: inherit;”>Punkt2=BollingerDown[610](nah)</span></span><span style=”vertical-align: inherit;”><span style=”vertical-align: inherit;”>Abstand=Punkt1-Punkt2</span></span>
<span style=”vertical-align: inherit;”><span style=”vertical-align: inherit;”>if islastbarupdate then </span></span>
<span style=”vertical-align: inherit;”><span style=”vertical-align: inherit;”>//61.80% line </span></span>
<span style=”vertical-align: inherit;”><span style=”vertical-align: inherit;”>DRAWTEXT(“61.80%”, barindex+5, Point2+Distance*0.618+Decalage*PointSize) </span></span>
<span style=”vertical-align: inherit;”><span style=”vertical-align: inherit;”>DRAWRAY(barindex, Point2+Distance*0.618, barindex+1, Point2+Distance*0.618) STYLE (GEPUNKTETE LINIE,1)</span></span><span style=”vertical-align: inherit;”><span style=”vertical-align: inherit;”>endif</span></span>
<span style=”vertical-align: inherit;”><span style=”vertical-align: inherit;”>zurückkehren</span></span>
<span style=”vertical-align: inherit;”><span style=”vertical-align: inherit;”>Ich möchte, dass der aktuelle Kurs bis 61,80 % im Abstand in Prozent als Histogramm angezeigt wird.</span></span>
08/09/2023 at 10:57 AM #218797Würde es Ihnen etwas ausmachen, den Code noch einmal als Text zu veröffentlichen?
08/09/2023 at 12:11 PM #218819defparam drawonlastbaronly=true
Decalage=4
Point1=average[21] (close)
point2=BollingerDown[21](close)
Distance=Point1-Point2
if islastbarupdate then
//61.80% line
DRAWTEXT(“61.80%”, barindex+5, Point2+Distance*0.618+Decalage*PointSize)
DRAWRAY(barindex, Point2+Distance*0.618, barindex+1, Point2+Distance*0.618) STYLE(DOTTEDLINE,1)”
Return
08/09/2023 at 6:14 PM #218856Ist es das was du meinst?
1234567891011defparam drawonlastbaronly=trueDecalage=4Point1=average[21] (close)point2=BollingerDown[21](close)Distance=Point1-Point2//if islastbarupdate then//61.80% lineDRAWTEXT("61.80%", barindex+5, Point2+Distance*0.618+Decalage*PointSize)DRAWRAY(barindex, Point2+Distance*0.618, barindex+1, Point2+Distance*0.618) STYLE(DOTTEDLINE,1)//endifReturn Point2+Distance*0.618 style(Histogram) AS "Fibo 61.8%"08/09/2023 at 9:55 PM #218867danke Roberto !! Aber ich meinte vom aktuell Kurs bis zur 61.8% fibo die Entfernung in Prozent Angabe.
Beispiel
aktueller Kurs von immer 61.80 sind 1.25% oder 0.51 er sollte mir in Prozent die Entfernung vom aktuellen Kurs.
ich hoffe das war verständlich gruss dogan
08/10/2023 at 9:06 AM #218891Was sind 1,25 % und 0,51?
08/10/2023 at 9:50 AM #21889808/11/2023 at 9:35 AM #218930Vollendet:
1234567891011121314defparam drawonlastbaronly=trueDecalage=4Point1=average[21] (close)point2=BollingerDown[21](close)Distance=Point1-Point2//if islastbarupdate then//61.80% lineDRAWTEXT("61.80%", barindex+5, Point2+Distance*0.618+Decalage*PointSize)DRAWRAY(barindex, Point2+Distance*0.618, barindex+1, Point2+Distance*0.618) STYLE(DOTTEDLINE,1)//endifDiff = close-(Point2+Distance*0.618)PerCent = Diff * 100 / close//Return close-(Point2+Distance*0.618) style(Histogram) AS "difference from Fibo 61.8%"Return PerCent style(Histogram) AS "difference from Fibo 61.8%"1 user thanked author for this post.
08/11/2023 at 10:28 AM #21893608/13/2023 at 10:14 AM #218985Hallo Roberto
beim probacktest wie schreiben ich das Programmierte
defparam drawonlastbaronly=true
Decalage=4
Point1=average[21] (close)
point2=BollingerDown[21](close)
Distance=Point1-Point2
//if islastbarupdate then
//61.80% line
DRAWTEXT(“61.80%”, barindex+5, Point2+Distance*0.618+Decalage*PointSize)
DRAWRAY(barindex, Point2+Distance*0.618, barindex+1, Point2+Distance*0.618) STYLE(DOTTEDLINE,1)
//endif
Diff = close-(Point2+Distance*0.618)
PerCent = Diff * 100 / close
//Return close-(Point2+Distance*0.618) style(Histogram) AS “difference from Fibo 61.8%”
Return PerCent style(Histogram) AS “difference from Fibo 61.8%”ich das denn Kaufe wenn der wert Gösser als ist 0 oder kleiner. Könne Sie mir ein Beispiel geben.
Hab vielen dank gruss dogan
08/13/2023 at 5:55 PM #21899408/13/2023 at 7:36 PM #21900208/15/2023 at 1:58 PM #219105Hallo Reboto!!!
code:
a=CALL “fibo 34 55”
b=CALL “Fibo 34/ 21”
c=CALL “fibo 89 144”
D=CALL “fibo 233”I=0
Diff = close-(a )
PerCent = Diff * 100 / close
//Return close-(Point2+Distance*0.618) style(Histogram) AS “difference from Fibo 61.8%”Diff1 = close-(b )
PerCent1 = Diff1 * 100 / close
//Return close-(Point2+Distance*0.618) style(Histogram) AS “difference from Fibo 61.8%”
Diff2 = close-(c )
PerCent3 = Diff2 * 100 / close
//Return close-(Point2+Distance*0.618) style(Histogram) AS “difference from Fibo 61.8%”
Diff3 = close-(d )
PerCent4= Diff3 * 100 / close
//Return close-(Point2+Distance*0.618) style(Histogram) AS “difference from Fibo 61.8%”
Return PerCent ,percent2, percent3, percent4,style(line) AS “difference from Fibo 61.8%”, I as “zero”Wie kann ich das machen das Percent 1 2 3 4 ein wert ergibt oder a,b,c,d zusammen addieren und ein wert. ich habe so wie grade es ist 4 linen möchte das zu 1 wert.
gruss dogan
08/15/2023 at 8:54 PM #219129Indikator
12345678910111213141516I=0Diff = close-(a )PerCent = Diff * 100 / close//Return close-(Point2+Distance*0.618) style(Histogram) AS "difference from Fibo 61.8%"Diff1 = close-(b )PerCent1 = Diff1 * 100 / close//Return close-(Point2+Distance*0.618) style(Histogram) AS "difference from Fibo 61.8%"Diff2 = close-(c )PerCent3 = Diff2 * 100 / close//Return close-(Point2+Distance*0.618) style(Histogram) AS "difference from Fibo 61.8%"Diff3 = close-(d )PerCent4= Diff3 * 100 / close//Return close-(Point2+Distance*0.618) style(Histogram) AS "difference from Fibo 61.8%"Return PerCent ,percent2, percent3, percent4 AS "difference from Fibo 61.8%", I as "zero"Algorithmus
1PerCent,percent2, percent3, percent4,I=call"Indikator"1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on