points camarilla en monthly à ameliorer
Forums › ProRealTime forum Français › Support ProOrder › points camarilla en monthly à ameliorer
-
-
09/08/2025 at 8:04 PM #250524
voici un code points camarilla avec extension de vagues d elliott. Mais en monthly sur une UT de H4 , il prend l’open de minuit le dernier jour du mois et non le veritable close à 22h sur NQ ES YM GOLD( decalage). Qui pourrait modifier ce code ? Merci
DefParam DrawOnLastBarOnly = true
IF month[1] < month THEN
monthhigh = prevmonthhigh
monthlow = prevmonthlow
monthclose = prevmonthclose
prevmonthhigh = HIGH
prevmonthlow = LOW
ENDIFprevmonthhigh = MAX(prevmonthhigh, HIGH)
prevmonthlow = MIN(prevmonthlow, LOW)
prevmonthclose = CLOSEMYh = ( monthhigh )
L = ( monthlow )
C = (monthclose)alpha = 250
PPM = ROUND (C,3)
rem DrawSegment(startbar,PP,barindex,PP) coloured(0,0,0,alpha)
DrawText(” ◄PPM #PPM#”,barindex,PPM,Dialog,Bold,20) coloured(250,250,250,alpha)
R0M = ROUND (PPM + 0.5 *( R1M-PPM),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
DrawText(” ◄R0M #R0M#”,barindex,R0M,Dialog,Bold,20) coloured(250,250,250,alpha)
//R0aM = ROUND (R0M + 0.5 *( R1M-R0M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
//DrawText(” ◄R0aM #R0aM#”,barindex,R0aM,Dialog,Bold,15) coloured(238,0,238,alpha)
R1M = ROUND(((myH-L) * 1.1)/12+C,3)
rem DrawSegment(startbar,R1,barindex,R1) coloured(0,0,0,alpha)
DrawText(” ◄R1M #R1M#”,barindex,R1M,Dialog,Bold,20) coloured(250,250,250,alpha)
//R1a1M = ROUND (R1M+0.382*(R2M-R1M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
//DrawText(” ◄R1a1M #R1a1M#”,barindex,R1a1M,Dialog,Bold,15) coloured(238,0,238,alpha)
R1bM = ROUND ((R1M +R2M)/2,3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
DrawText(” ◄R1bM #R1bM#”,barindex,R1bM,Dialog,Bold,20) coloured(250,250,250,alpha)
//R1b1M = ROUND ((R1bM +R1CM)/2,3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
//DrawText(” ◄R1b1M #R1b1M#”,barindex,R1b1M,Dialog,Bold,15) coloured(238,0,238,alpha)
//R1aM = ROUND(R1M+0.236*(R2M-R1M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
//rawText(” ◄R1aM #R1aM#”,barindex,R1aM,Dialog,Bold,15) coloured(238,0,238,alpha)
//R1cM = ROUND (R1bM + 0.5 *( R2M-R1bM),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
//DrawText(” ◄R1cM #R1cM#”,barindex,R1cM,Dialog,Bold,15) coloured(238,0,238,alpha)
//R1c1M = ROUND (R1cM + 0.5 *( R2M-R1cM),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
//DrawText(” ◄R1c1M #R1c1M#”,barindex,R1c1M,Dialog,Bold,15) coloured(238,0,238,alpha)
R2M = ROUND(((myH-L)*1.1)/6+C,3)
rem DrawSegment(startbar,RR2,barindex,RR2) coloured(0,0,0,alpha)
DrawText(” ◄R2M #R2M#”,barindex,R2M,Dialog,Bold,20) coloured(250,250,250,alpha)R2bM = ROUND (R2M + 0.5 *( R3M-R2M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
DrawText(” ◄R2bM #R2bM#”,barindex,R2bM,Dialog,Bold,20) coloured(250,250,250,alpha)
//2aM = ROUND (R2M + 0.5*( R2bM-R2M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
//DrawText(” ◄R2aM #R2aM#”,barindex,R2aM,Dialog,Bold,15) coloured(238,0,238,alpha)
//R2cM = ROUND (R2bM + 0.5*( R3M-R2bM),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
//DrawText(” ◄R2cM #R2cM#”,barindex,R2cM,Dialog,Bold,15) coloured(238,0,238,alpha)R3M = ROUND(((myH-L)*1.1)/4+C,3)
rem DrawSegment(startbar,RR3,barindex,RR3) coloured(0,0,0,alpha)
DrawText(” ◄R3M #R3M#”,barindex,R3M,Dialog,Bold,20) coloured(250,0,0,alpha)R3Mx50=ROUND((R3M+R4M)/2,3)
rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
DrawText(” ◄R3Mx50 #R3Mx50#”,barindex,R3Mx50,Dialog,Bold,20) coloured(250,250,250,alpha)
R3Mx25=ROUND((R3M+0.25*(R4M-R3M)),3)
rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
DrawText(” ◄R3Mx25 #R3Mx25#”,barindex,R3Mx25,Dialog,Bold,20) coloured(250,250,250,alpha)
R3Mx62=ROUND((R3M+0.618*(R4M-R3M)),3)
rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
DrawText(” ◄R3Mx62 #R3Mx62#”,barindex,R3Mx62,Dialog,Bold,20) coloured(250,250,250,alpha)
R3Mx75=ROUND((R3M+0.75*(R4M-R3M)),3)
rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
DrawText(” ◄R3Mx75 #R3Mx75#”,barindex,R3Mx75,Dialog,Bold,20) coloured(250,250,250,alpha)
R3Mx89=ROUND(R3M+0.90*(R4M-R3M),3)
rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
DrawText(” ◄R3Mx89 #R3Mx89#”,barindex,R3Mx89,Dialog,Bold,20) coloured(250,250,250,alpha)
R4M =ROUND (((myH-L)*1.1)/2+C,3)
rem DrawSegment(startbar,RR4,barindex,RR4) coloured(0,0,0,alpha)
DrawText(” ◄R4M #R4M#”,barindex,R4M,Dialog,Bold,20) coloured(250,250,250,alpha)
R4aM =ROUND( R4M – 0.5* (R1M-R4M),3)
//RR4X= (RR4+RR4b)/2
rem DrawSegment(startbar,RR4a,barindex,RR4a) coloured(0,0,0,alpha)
//DrawText(” ◄R4aM #R4aM#”,barindex,R4aM,Dialog,Bold,15) coloured(238,0,238,alpha)R4Mx50 = ROUND (R4M – 0.5 *( R1M-R4M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
DrawText(” ◄R4Mx50 #R4Mx50#”,barindex,R4Mx50,Dialog,Bold,20) coloured(250,250,250,alpha)
R4Mx25 = ROUND (R4M – 0.25 *( R1M-R4M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
DrawText(” ◄R4Mx25 #R4Mx25#”,barindex,R4Mx25,Dialog,Bold,20) coloured(250,250,250,alpha)
R4Mx75 = ROUND (R4M – 0.75 *( R1M-R4M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
DrawText(” ◄R4Mx75 #R4Mx75#”,barindex,R4Mx75,Dialog,Bold,20) coloured(250,250,250,alpha)
R4Mx90 = ROUND (R4M – 0.90 *( R1M-R4M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
DrawText(” ◄R4Mx90 #R4Mx90#”,barindex,R4Mx90,Dialog,Bold,20) coloured(250,250,250,alpha)
R5M = ROUND(2*R4M-R1M,3)
rem DrawSegment(startbar,RR5,barindex,RR5) coloured(0,0,0,alpha)
DrawText(” ◄R5M #R5M#”,barindex,R5M,Dialog,Bold,20) coloured(250,250,250,alpha)R6M = ROUND(R4M+1.618*(R4M-R1M),3)
rem DrawSegment(startbar,RR6,barindex,RR6) coloured(0,0,0,alpha)
DrawText(” ◄ R6M #R6M#”,barindex,R6M,Dialog,Bold,20) coloured(250,250,250,alpha)
R5bM = ROUND (R5M +0.5*( R6M-R5M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
DrawText(” ◄R5bM #R5bM#”,barindex,R5bM,Dialog,Bold,20) coloured(250,250,250,alpha)
R7M = ROUND(R4M+2*(R4M-R1M),3)
rem DrawSegment(startbar,RR7,barindex,RR7) coloured(0,0,0,alpha)
DrawText(” ◄R7M #R7M#” ,barindex,R7M,Dialog,Bold,20) coloured(0,0,0,alpha)
//S0aM = ROUND (PPM – 0.5 *( PPM-S0bM),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
//DrawText(” ◄S0aM #S0aM#”,barindex,S0aM,Dialog,Bold,15) coloured(238,0,238,alpha)
S0bM = ROUND (PPM – 0.5 *( PPM-S1M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
DrawText(” ◄S0bM #S0bM#”,barindex,S0bM,Dialog,Bold,20) coloured(250,250,250,alpha)
//0cM = ROUND ((S0bM+S1M)/2,3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
//DrawText(” ◄S0cM #S0cM#”,barindex,S0cM,Dialog,Bold,15) coloured(238,0,238,alpha)
S1M =ROUND(C-((myH-L)*1.1)/12,3)
rem DrawSegment(startbar,S1,barindex,S1) coloured(0,0,0,alpha)
DrawText(” ◄S1M #S1M#”,barindex,S1M,Dialog,Bold,20) coloured(250,250,250,alpha)
S1bM = ROUND (S1M – 0.5 *( S1M-S2M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
DrawText(” ◄ S1bM #S1bM#”,barindex,S1bM,Dialog,Bold,20) coloured(250,250,250,alpha)
S2M =ROUND( C-((myH-L)*1.1)/6,3)
rem DrawSegment(startbar,SS2,barindex,SS2) coloured(0,0,0,alpha)
DrawText(” ◄ S2M #S2M#”,barindex,S2M,Dialog,Bold,20) coloured(250,250,250,alpha)
S2bM = ROUND (S2M – 0.5 *( S2M-S3M),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
DrawText(” ◄S2bM #S2bM#”,barindex,S2bM,Dialog,Bold,20) coloured(250,250,250,alpha)S3M =ROUND( C-((myH-L)*1.1)/4,3)
rem DrawSegment(startbar,SS3,barindex,SS3) coloured(0,0,0,alpha)
DrawText(” ◄S3M #S3M#”,barindex,S3M,Dialog,Bold,20) coloured(250,250,250,alpha)
//S3aM = ROUND (S3M – 0.5 *( S3M-S3bM),3)
rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha) ◄S3aM #S3aM#”,barindex,S3aM,Dialog,Bold,15) coloured(238,0,238,alpha)S3Mx50=ROUND((S3M+S4M)/2,3)
rem DrawSegment(startbar,SS3b,barindex,SS3b) coloured(0,0,0,alpha)
DrawText(” ◄ S3Mx50 #S3Mx50# “,barindex,S3Mx50,Dialog,Bold,20) coloured(0,0,0,alpha)S4M =ROUND( C-((myH-L)*1.1)/2,3)
//SS4x=(SS4+SS4b)/2
rem DrawSegment(startbar,SS4,barindex,SS4) coloured(0,0,0,alpha)
DrawText(” ◄ S4M #S4M#”,barindex,S4M,Dialog,Bold,20) coloured(0,0,0,alpha)S4Mx50 = ROUND(S4M-0.5 * (S1M-S4M),3)
rem DrawSegment(startbar,SS4a,barindex,SS4a) coloured(0,0,0,alpha)
DrawText(” ◄ S4Mx50 #S4Mx50#”,barindex,S4Mx50,Dialog,Bold,20) coloured(0,0,0,alpha)S4Mx62 = ROUND(S4M-0.618 *(S1M-S4M),3)
rem DrawSegment(startbar,SS4b,barindex,SS4b) coloured(0,0,0,alpha)
DrawText(” ◄ S4Mx62 #S4Mx62#”,barindex,S4Mx62,Dialog,Bold,20) coloured(0,0,0,alpha)S5M = ROUND(2*S4M-S1M,3)
rem DrawSegment(startbar,SS5,barindex,SS5) coloured(0,0,0,alpha)
DrawText(” ◄ S5M #S5M#”,barindex,S5M,Dialog,Bold,20) coloured(0,0,0,alpha)S6M = ROUND(S4M-1.618*(S1M-S4M),3)
rem DrawSegment(startbar,SS6,barindex,SS6) coloured(0,0,0,alpha)
DrawText(” ◄ S6M #S6M#”,barindex,S6M,Dialog,Bold,20) coloured(0,0,0,alpha)S7M = ROUND(S4M-2*(S1M-S4M),3)
rem DrawSegment(startbar,SS7,barindex,SS7) coloured(0,0,0,alpha)
DrawText(” ◄ S7M #S7M#”,barindex,S7M,Dialog,Bold,20) coloured(0,0,0,alpha)
S8M = ROUND(S4M-2.5*(S1M-S4M),3)
rem DrawSegment(startbar,SS8,barindex,SS8) coloured(0,0,0,alpha)
DrawText(” ◄ S8M #S8M#”,barindex,S8M,Dialog,Bold,20) coloured(0,0,0,alpha)
S9M = ROUND(S4M-3*(S1M-S4M),3)
rem DrawSegment(startbar,SS8,barindex,SS8) coloured(0,0,0,alpha)
DrawText(” ◄ S9M #S9M#”,barindex,S9M,Dialog,Bold,20) coloured(0,0,0,alpha)RETURN
09/08/2025 at 8:08 PM #25052609/09/2025 at 8:48 AM #25054109/09/2025 at 9:14 AM #250546Le problème, c’est que sur les contrats à terme, le prix de clôture journalier ne correspond pas au prix de clôture des unités de temps inférieures.
Si vous voulez que votre code prenne le dailyclose, alors vous pouvez utiliser ceci comme base.1234567891011if month[1]<>month thenlastMonth=dclose(1)drawvline(barindex[1])endifif islastbarupdate thendrawhline(lastmonth)drawtext("#lastmonth#",barindex,lastmonth)endifreturn -
AuthorPosts
Find exclusive trading pro-tools on