50% Retrace
Forums › ProRealTime English forum › ProBuilder support › 50% Retrace
- This topic has 38 replies, 7 voices, and was last updated 4 years ago by Zigo.
-
-
03/11/2020 at 5:44 PM #121852Often I expierence a 50% retrace, In a trendibg market Lower Tops and Lower Bottoms I should try to profit from these phenomea.12345678910111213141516171819202122232425262728293031323334353637383940414243Defparam DRAWONLASTBARONLY =truedefparam CALCULATEONLASTBARS = 300top=tbodem=bV=top-bodem// instappenESH=B+0.5*vDRAWHLINE(ESH)DRAWTEXT(" EnterShort=#ESH#", barindex, f*ESH ,dialog, standard, 25)coloured(55,155,250,255)st2=B+vDRAWSEGMENT(barindex[p], st2, barindex[q], st2)coloured(255,55,0,255)DRAWTEXT(" StopShort=#st2#", barindex, ST2, dialog, standard, 15)coloured(255,55,0,255)TP0=bDRAWSEGMENT(barindex[r],TP0, barindex[q], TP0)coloured(125,125,125,255)Drawtext(" Lowest=#b#", barindex[21], f*TP0, dialog,standard, 15)coloured(155,155,155,255)TPSH1=bDRAWSEGMENT(barindex[p], TPSH1, barindex[q], TPSH1)coloured(255,55,0,255)DRAWTEXT(" TP 1(Sh)=#TPSH1#", barindex, TPSH1,dialog, standard,15)coloured(255,55,0,255)TPSH2=t-1.272*VDRAWSEGMENT(barindex[p], TPSH2, barindex[q], TPSH2)coloured(255,55,0,255)DRAWTEXT(" TP 2(Sh)=#TPSH2#", barindex, TPSH2, dialog, standard, 15)coloured(255,55,0,255)TPSH3= t-1.618*vDRAWSEGMENT(barindex[p], TPSH3, barindex[q], TPSH3)coloured(255,55,0,255)DRAWTEXT(" TP 3(Sh)=#TPSH3#", barindex, TPSH3, dialog, standard, 15)coloured(255,55,0,255)TPSH4= 2.058-Target4*vDRAWSEGMENT(barindex[p], TPSH4, barindex[q], TPSH4)coloured(255,55,0,255)DRAWTEXT(" TP 4(Sh)=#TPSH4#", barindex, TPSH4, dialog, standard, 15)coloured(255,55,0,255)begin=topDRAWSEGMENT(barindex[r-(round(r/2))],top, barindex[q], top)coloured(125,125,125,255)Drawtext(" Highest#begin#", barindex[21],f* begin, dialog,Standard, 15)coloured(155,155,155,255)return top coloured(125,125,125,255)style(dottedline,1)as"Hoogste", ST2 coloured(205,155,55,255)style(dottedline,1) as"StopLoss", ESH coloured(55,55,255,255)style(dottedline,1) as"EnterShort", TPSH1 coloured(0,105,205,255)style(dottedline,1) as"Targetline 1", TPSH2 coloured(0,155,205,255)style(dottedline,1) as"Targetline 2", TPSH3 coloured(0,155,205,255)style(dottedline,1) as"Targetline 3", TPSH4 coloured(0,155,205,255)style(dottedline,1) as"Targetline 4", TP0 coloured(125,125,125,255)style(dottedline,1)as "bodem"
1 user thanked author for this post.
03/11/2020 at 6:01 PM #121854At this very moment TP 1 has already reached. See also the firt entry at 13;18:00 Less than an hour later it has reach TP 2.
In the graph you can see T’s and B’ (Tops and Bottoms) its a pitty but this is another indicator and I want to integrate this indicator with the T’s and B’s into the first indicator on line 4, 5 and 6
Because in the indicator shown I have to add to much parameters as you can see in the first attachementy.
The second attachement shows the completition of TP1
03/11/2020 at 6:40 PM #12186550% Retrace The second indicator to create the top's and bottom's1234567891011121314151617181920212223242526272829303132333435363738once n =5once lastpoint = 0if High[n] >= highest[2*n+1](high) thenLH = 1Topy = High[n]Topx = barindex[n]//Previous TopPT=highest[n+1](high)DRAWSEGMENT(barindex, PT, barindex[n], PT)coloured(0,205,0,255)elsif Low[n] <= lowest[2*n+1](low) thenLL = -1Bottemy = low[n]Bottemx = barindex[n]PB=lowest[n+1](low)DRAWSEGMENT(barindex, PB, barindex[n], PB)coloured(255,55,55,255)elseLL = 0LH = 0endifif LH>0 and (lastpoint=-1 or lastpoint=0) thenDRAWTEXT("T",TOPx,TOPy+AverageTrueRange[14](close),Dialog,Bold,20) coloured(0,205,0,255)lastpoint = 1lastX = TOPxlastY = TOPyendifif LL<0 and (lastpoint=1 or lastpoint=0) thenDRAWTEXT("B",Bottemx,Bottemy-AverageTrueRange[14](close),Dialog, bold, 20) coloured(251,55,0,255)lastpoint = -1lastX = BottemxlastY = BottemyendifRETURN lastX as"Last Top", LastY as "Last Bottem", PT as "Previous Top",PB as "Previous Bottem"1 user thanked author for this post.
03/11/2020 at 8:31 PM #12187303/12/2020 at 3:27 PM #121923The same indicator for LongTrade Intentions12345678910111213141516171819202122232425262728293031323334353637383940414243Defparam DRAWONLASTBARONLY =truedefparam CALCULATEONLASTBARS = 300once r=25Top=tBodem=bV=top-bodem// instappenEL=b+0.50*vDRAWTEXT(" #el# Enter(Long)", barindex, el,dialog, standard, 18)coloured(0,105,255,255)st=bDRAWSEGMENT(barindex, st, barindex[r], st)coloured(0,125,25,255)DRAWTEXT(" #b# Initial (Stop)", barindex, St,dialog,standard,15)coloured(150,55,25,255)TP0=tDrawtext("Last Valuble Top", barindex[15],1.0015*TP0, dialog,standard, 15)coloured(205,0,255,255)TP1=b+vDRAWTEXT(" TP1(long) #TP1#", barindex, TP1, dialog, standard, 15)coloured(0,155,50,255)TP2=b+1.272*VDRAWTEXT(" TP2(Long) #TP2#", barindex,TP2, dialog,standard,15)coloured(0,155,20,255)TP3=b+1.618*vDRAWTEXT(" TP3(Long)#TP3#", barindex,TP3, dialog, standard,15)coloured(0,155,25,255)TP4= B+2.058*vDRAWTEXT(" TP4(Long)#TP4#", barindex, TP4, dialog, standard,15)coloured(0,155,25,255)begin=bodemDrawtext("Last Valuble Bottem", barindex[15],1.0015* begin, dialog,standard, 15)coloured(205,0,255,255)return begin coloured(125,125,125,255)style(line,2)as "Start", El coloured(0,155,250,255)style(line,2) as"Enter", St coloured(125,105,55,255)as"Stop",TP0 coloured(125,125,125,255)style(line, 2)as"begin", TP2 as"Targetlijn 2", TP3 as"Targetrlijn3", TP4 as"Targetlijn 4"03/12/2020 at 4:06 PM #1219321234567891011121314151617181920212223242526272829303132333435363738394041424344Defparam DRAWONLASTBARONLY =truedefparam CALCULATEONLASTBARS = 300once r=25Top=tBodem=bV=top-bodem// instappenEL=b+0.50*vDRAWTEXT(" #el# Enter(Long)", barindex, el,dialog, standard, 18)coloured(0,105,255,255)st=bDRAWSEGMENT(barindex, st, barindex[r], st)coloured(0,125,25,255)DRAWTEXT(" #b# Initial (Stop)", barindex, St,dialog,standard,15)coloured(150,55,25,255)TP0=tDrawtext("Last Valuble Top", barindex[15],1.0015*TP0, dialog,standard, 15)coloured(205,0,255,255)TP1=b+vDRAWTEXT(" TP1(long) #TP1#", barindex, TP1, dialog, standard, 15)coloured(0,155,50,255)TP2=b+1.272*VDRAWTEXT(" TP2(Long) #TP2#", barindex,TP2, dialog,standard,15)coloured(0,155,20,255)TP3=b+1.618*vDRAWTEXT(" TP3(Long)#TP3#", barindex,TP3, dialog, standard,15)coloured(0,155,25,255)TP4= B+2.058*vDRAWTEXT(" TP4(Long)#TP4#", barindex, TP4, dialog, standard,15)coloured(0,155,25,255)begin=bodemDrawtext("Last Valuble Bottem", barindex[15],1.0015* begin, dialog,standard, 15)coloured(205,0,255,255)return begin coloured(125,125,125,255)style(line,2)as "Start", El coloured(0,155,250,255)style(line,2) as"Enter", St coloured(125,105,55,255)as"Stop",TP0 coloured(125,125,125,255)style(line, 2)as"begin", TP2 as"Targetlijn 2", TP3 as"Targetrlijn3", TP4 as"Targetlijn 4"03/12/2020 at 11:46 PM #12201003/13/2020 at 10:33 AM #12203703/13/2020 at 10:57 AM #12203903/13/2020 at 11:21 AM #12204403/13/2020 at 11:47 AM #12204803/13/2020 at 11:52 AM #12205203/13/2020 at 3:09 PM #12206703/13/2020 at 3:22 PM #122070Furthermore I realy would appreciate that the programming adapt the Stoploss changes. If TP1 is reached the stoploss = BreakEven, If TP2 is reached stoploss = TP1 If TP3 is reached Stoploss = TP2 and so on. In the attachement stoploss= TP1.
03/20/2020 at 4:19 PM #122740 -
AuthorPosts
Find exclusive trading pro-tools on