Point Pivot 1H, daily, hebo, mensuel
Forums › ProRealTime forum Français › Support ProOrder › Point Pivot 1H, daily, hebo, mensuel
- This topic has 8 replies, 3 voices, and was last updated 4 years ago by Nicolas.
-
-
07/22/2020 at 7:27 PM #139895
Bonjour,
Je souhaite créer un algorithme qui prendrait ces bénéfices sur les points pivot.
En revanche, je n’en trouve pas le code..Les point pivot 1 heure, daily, hebdo et mensuel devrait apparaître avec toutes les résistances et support
Si quelqu’un peut m’aider à trouver solution..
Merci d’avance pour vos recherches07/23/2020 at 10:22 AM #139947DM Pivot123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133Peut-être sa t'aider.Defparam DRAWONLASTBARONLY = trueDefparam CALCULATEONLASTBARS =2000once f=1.00005once m=15once st=7once ob=16if Dayofweek = 1 thenn=2elsen=1endifKO=dopen(n)KH=dhigh(n)KL=dlow(n)KS=dclose(n)If KS > KO thenPhigh = KH + (KH-KL)/2Plow= (ks+kl)/2elsif KS<KO thenPhigh = (KH+KS)/2Plow = KL-(KH-KL)/2elsePHigh= KS+ (KH-KL)/2Plow= KS-(KH-KL)/2endifa=phigh[1]DRAWTEXT("PivotHigh", barindex[5], a+(0.25*d),dialog,bold,20)coloured(0,205,255,100)DRAWTEXT("OVERBOUGHT",barindex[30], a+(1.75*d),dialog,bold,20)b=plow[1]DRAWTEXT("PivotLow", barindex[5], b+(0.25*d),dialog,bold,20)coloured(255,51,153,100)DRAWTEXT("OVERSOLD", barindex[30],b-(1.75*d), dialog,bold,20)c=a-ba21=b+c*0.5DRAWTEXT("Midpoint ", barindex[5], a21+(0.25*d),dialog,bold,20)coloured(125,125,125,100)d=c/8fr0=a+2*dDRAWTEXT("+2/8", barindex[st], f*Fr0,dialog,bold,15)DRAWSEGMENT(barindex, fr0, barindex[m], fr0[m])Fr1=a+dDRAWTEXT("+1/8", barindex[st], f*Fr1, dialog,bold,15)DRAWSEGMENT(barindex,fr1,barindex[m],fr1[m])fr2=a-dDRAWTEXT("7/8", barindex[st], f*Fr2,dialog,bold,15)DRAWSEGMENT(barindex, fr2, barindex[m], fr2[m])fr3=a-2*dDRAWTEXT("6/8", barindex[st], f*Fr3,dialog,bold,15)DRAWSEGMENT(barindex, fr3, barindex[m], fr3[m])fr4=a-3*dDRAWTEXT("5/8", barindex[st], f*Fr4,dialog,bold,15)DRAWSEGMENT(barindex, fr4, barindex[m], fr4[m])fr5=a-5*dDRAWTEXT("3/8", barindex[st], f*Fr5,dialog,bold,15)DRAWSEGMENT(barindex, fr5, barindex[m], fr5[m])fr6=a-6*dDRAWTEXT("2/8", barindex[st], f*Fr6,dialog,bold,15)DRAWSEGMENT(barindex, fr6, barindex[m], fr6[m])fr7=a-7*dDRAWTEXT("1/8", barindex[st], f*Fr7,dialog,bold,15)DRAWSEGMENT(barindex, fr7, barindex[m], fr7[m])fr8=a-9*dDRAWTEXT("-1/8", barindex[st], f*Fr8,dialog,bold,15)DRAWSEGMENT(barindex, fr8, barindex[m], fr8[m])fr9=a-10*dDRAWTEXT("-2/8", barindex[st], f*Fr9,dialog,bold,15)DRAWSEGMENT(barindex, fr9, barindex[m], fr9[m])// Tussenlijnen 1/16 dus rood gekleurd//FRr3=a+ob*dDRAWSEGMENT(barindex, frr3, barindex[s], frr3[s])coloured(155,0,50,175)DRAWTEXT("+16/16", barindex[st-5], f*Frr3, dialog,Italic,15)FRr1=a+1.5*dDRAWSEGMENT(barindex, frr1, barindex[s], frr1[s])coloured(155,0,50,175)DRAWTEXT("+3/16", barindex[st-5], f*Frr1, dialog,Italic,15)frr2=a+0.5*dDRAWSEGMENT(barindex, frr2, barindex[s], frr2[s])coloured(155,0,50,175)DRAWTEXT("+1/16", barindex[st-5], f*Frr2, dialog,Italic,15)fr11=a-0.5*dDRAWSEGMENT(barindex, fr11, barindex[s], fr11[s])coloured(155,0,50,175)DRAWTEXT("15/16", barindex[st-5], f*Fr11, dialog,Italic,15)coloured(195,55,5,255)fr22=a-1.5*dDRAWSEGMENT(barindex, fr22, barindex[s], fr22[s])coloured(155,0,50,175)DRAWTEXT("13/16", barindex[st-5], f*Fr22, dialog,Italic,15)coloured(195,55,5,255)fr33=a-2.5*dDRAWSEGMENT(barindex, fr33, barindex[s], fr33[s])coloured(155,0,50,175)DRAWTEXT("11/16", barindex[st-5], f*Fr33, dialog,Italic,15)coloured(195,55,5,255)fr44=a-3.5*dDRAWSEGMENT(barindex, fr44, barindex[s], fr44[s])coloured(155,0,50,175)DRAWTEXT("9/16", barindex[st-5], f*Fr44, dialog,Italic,15)coloured(195,55,5,255)fr55=a-4.5*dDRAWSEGMENT(barindex, fr55, barindex[s], fr55[s])coloured(155,0,50,175)DRAWTEXT("7/16", barindex[st-5], f*Fr55, dialog,Italic,15)coloured(195,55,5,255)fr66=a-5.5*dDRAWSEGMENT(barindex, fr66, barindex[s], fr66[s])coloured(155,0,50,175)DRAWTEXT("5/16", barindex[st-5], f*Fr66, dialog,Italic,15)coloured(195,55,5,255)Fr77=a-6.5*dDRAWSEGMENT(barindex, fr77, barindex[s], fr77[s])coloured(155,0,50,175)DRAWTEXT("3/16", barindex[st-5], f*Fr77, dialog,Italic,15)coloured(195,55,5,255)fr88=a-7.5*dDRAWSEGMENT(barindex, fr88, barindex[s], fr88[s])coloured(155,0,50,175)DRAWTEXT("1/16", barindex[st-5], f*Fr88, dialog,Italic,15)coloured(195,55,5,255)frr8=a-8.5*dDRAWSEGMENT(barindex, frr8, barindex[s], frr8[s])coloured(155,0,50,175)DRAWTEXT("-1/16", barindex[st-5], f*Frr8, dialog,Italic,15)coloured(195,55,5,255)frr9=a-9.5*dDRAWSEGMENT(barindex, frr9, barindex[s], frr9[s])coloured(155,0,50,175)DRAWTEXT("-3/16", barindex[st-5], f*frr9, dialog,Italic,15)coloured(195,55,5,255)frr10=a-10.5*dDRAWSEGMENT(barindex, frr10, barindex[s], frr10[s])coloured(155,0,50,175)DRAWTEXT("-5/16", barindex[st-5], f*frr10, dialog,Italic,15)coloured(195,55,5,255)return fr0 as"+2/8", Fr1 as"+1/8", a as"PivotHigh", fr2 as"7/8", fr3 as"6/8", fr4 as"5/8", a21 as"MidPoint", fr5 as"3/8", fr6 as"2/8", fr7 as"1/8", b as"PivotLow", fr8 as"-1/8", fr9 as"-2/8", fr44 as"9/16", fr5507/23/2020 at 10:26 AM #13994807/23/2020 at 10:31 AM #13994907/23/2020 at 10:52 AM #139951Merci, mais cela ne correspond pas à ma recherche
J’ai besoin des pivot cité dans mon poste sans les middle.Bonne journée
07/23/2020 at 2:04 PM #139968https://www.prorealcode.com/prorealtime-indicators/daily-weekly-monthly-pivot-points/
1 user thanked author for this post.
07/23/2020 at 6:08 PM #139989Merci Nicolas, je suppose que je dois effectuer le même principe pour le 1 heure
Problème résolu
07/23/2020 at 6:34 PM #139991Malheureusement, les points pivot ne correspondent pas aux originaux, un problème dans le code peut être ?
07/24/2020 at 10:25 AM #140015Vérifier que le type de points pivots choisit soient les mêmes (il y a 3 modes de mémoire dans ce code). Egalement les horaires personnalisés, qu’il y a suffisamment d’unités affichées pour correctement calculer des points pivots du mois dernier !
-
AuthorPosts
Find exclusive trading pro-tools on