Wanted help to integrate two Indicators
Forums › ProRealTime English forum › ProBuilder support › Wanted help to integrate two Indicators
- This topic has 5 replies, 1 voice, and was last updated 4 years ago by Zigo.
Viewing 6 posts - 1 through 6 (of 6 total)
-
-
03/12/2020 at 5:14 PM #121946
What I want to do is, depending on the trend Up:Higher Tops and higher bottems integration of indicator 3 into indicator 1
if the trend is Down: Lower tops and lower bottems integration of indicator 3 into indicator 2
It is working already, but if I see that there will be a new top, I need to wait till the new top is formed and then fill in the value as a Indicator Parameter.
In the topic 50% Retrace I show 3 indicators:
- LongTrade Intention (Showing: Entry, stop and targets)
- ShortTrade Intention (Showing: Entry, Stop and targets)
- Top – Bottem 3.0 (PreviousTop; PreviousBotten)
03/12/2020 at 5:28 PM #121952Indicator 1 (123 LongTradeIntention)123456789101112131415161718192021222324252627282930313233343536Defparam 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 5:30 PM #121953Indicator 2 (123 ShortTradeIntention)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"03/12/2020 at 5:34 PM #121954Indicator 3 (Top Bottem 3.0(PT PB))123456789101112131415161718192021222324252627282930313233343536373839404142once n = 7once 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+0.618*AverageTrueRange[14](close),Dialog,standard,18) coloured(0,205,0,255)DRAWTEXT(" #PT#",topx,Topy+0.61*AverageTrueRange[14](close), Dialog,standard,12)lastpoint = 1lastX = TOPxlastY = TOPyendifif LL<0 and (lastpoint=1 or lastpoint=0) thenDRAWTEXT("B",Bottemx,Bottemy-0.618*AverageTrueRange[14](close),Dialog,standard, 20) coloured(251,55,0,255)DRAWTEXT(" #PB#", Bottemx, bottemy-0.618*AverageTrueRange[14](close), Dialog,standard, 12)lastpoint = -1lastX = BottemxlastY = BottemyendifRETURN lastX as"Last Top", LastY as "Last Bottem", PT as "Previous Top",PB as "Previous Bottem"03/12/2020 at 5:37 PM #12195503/12/2020 at 5:49 PM #121962 -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
Find exclusive trading pro-tools on
Similar topics: