points camarilla à ajuster le clsoe du jour

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #245920 quote
    geroniman
    Participant
    Junior

    Bonsoir, voici un ITF des point camarilla étendus. Or sur PRT, le close n’est pas le bon. J’aimerai que le cours prenne la cloture réelle du nq/es/ym soit 22h ( à moins que le réel close soit à 22h10). Qui pourrait rajouter cette condition? Merci d’avance.

    #245924 quote
    geroniman
    Participant
    Junior

    pour aujourd’hui par exemple , la cloture est décalée de 2 points sur le ES soit 5442.75 ( close m1 sur la bougie de 21h59)  au lieu de 5440.75 affiché et dans ce cas, on avait S3D à 5413.5 soit le point bas du jour … à 0.5 pt pres et R3D 50% le plus haut du jour à 1 pt prés

    #245939 quote
    geroniman
    Participant
    Junior

    Voici les points camarilla réajustés manuellement sur ES aujourdhui 15 avril

    #245991 quote
    Iván González
    Moderator
    Master

    J'obtiens une erreur lors de l'importation de l'indicateur. Pouvez-vous partager le code avec le bouton « Ajouter un code PRT » ?

    #246003 quote
    geroniman
    Participant
    Junior

    Buenas dias Ivan, voici le code des points en daily.Merci.

    DefParam DrawOnLastBarOnly = true
    
    myH = ( DHIGH(1) )
    L = ( DLOW(1) )
    C = ( DCLOSE (1) )
    
    alpha = 250
    
     
    
    PPD = ROUND(C,3)
    rem DrawSegment(startbar,PP,barindex,PP) coloured(0,0,0,alpha)
    DrawText(” ◄PPD #PPD#”,barindex,PPD,Dialog,Bold,15) coloured(250,250,0,alpha)
    
    R1D = ROUND(((myH-L) * 1.1)/12+C,3)
    rem DrawSegment(startbar,R1,barindex,R1) coloured(0,0,0,alpha)
    DrawText(” ◄R1D #R1D#”,barindex,R1D,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    //R0bD=round((PPD+R1D)/2,2)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    //DrawText(” ◄R0bD #R0bD#”,barindex,R0bD,Dialog,Bold,12) coloured(255,165,0,alpha)
    
    R1bD = ROUND((R1D+R2D)/2,2)
    rem DrawSegment(startbar,R1,barindex,R1) coloured(0,0,0,alpha)
    //DrawText(” ◄R1bD #R1bD#”,barindex,R1bD,Dialog,Bold,12) coloured(250,165,0,alpha)
    
    R2D = round(((myH-L)*1.1)/6+C,3)
    rem DrawSegment(startbar,RR2,barindex,RR2) coloured(0,0,0,alpha)
    DrawText(” ◄R2D #R2D#”,barindex,R2D,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    //R2bD = ROUND((R2D+R3D)/2,2)
    rem DrawSegment(startbar,R1,barindex,R1) coloured(0,0,0,alpha)
    //DrawText(” ◄R2bD #R2bD#”,barindex,R2bD,Dialog,Bold,12) coloured(250,165,0,alpha)
    
    R3D = round(((myH-L)*1.1)/4+C,3)
    rem DrawSegment(startbar,RR3,barindex,RR3) coloured(0,0,0,alpha)
    DrawText(” ◄R3D #R3D#”,barindex,R3D,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    R3bD=round((R3D+0.618*(R4D-R3D)),3)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    DrawText(” ◄R3D 62% #R3bD#”,barindex,R3bD,Dialog,Bold,12) coloured(250,250,0,alpha)
    R3aD=round((R3D+0.5*(R4D-R3D)),3)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    DrawText(” ◄R3D 50% #R3aD#”,barindex,R3aD,Dialog,Bold,15) coloured(250,250,0,alpha)
    //R3aD=round((R3D+R3bD)/2,2)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    //DrawText(” ◄R3aD #R3aD#”,barindex,R3aD,Dialog,Bold,12) coloured(250,165,0,alpha)
    
    //R3cD=round((R3bD+R4D)/2,2)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    //DrawText(” ◄R3cD #R3cD#”,barindex,R3cD,Dialog,Bold,12) coloured(250,165,0,alpha)
    
    R4D = round(((myH-L)*1.1)/2+C,3)
    rem DrawSegment(startbar,RR4,barindex,RR4) coloured(0,0,0,alpha)
    DrawText(” ◄R4D #R4D#”,barindex,R4D,Dialog,Bold,12) coloured(250,255,0,alpha)
    //R4aD = round((R4D+R5D)/2,2)
    //rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
    //DrawText(” ◄R4aD #R4aD#”,barindex,R4aD,Dialog,Bold,15) coloured(250,250,250,alpha)
    
    R4aD=round((R4D+0.5*(R5D-R4D)),3)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    DrawText(” ◄R4D 50% #R4aD#”,barindex,R4aD,Dialog,Bold,12) coloured(250,250,0,alpha)
    R4BD = round(R4D -0.618 *( R1D-R4D),3)
    rem DrawSegment(startbar,RR4b,barindex,RR4b) coloured(0,0,0,alpha)
    DrawText(” ◄R4 62% D #R4BD#”,barindex,R4BD,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    //R4a1D=round(R4D+0.236*(R5D – R4D),2)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    //DrawText(” ◄R4 23%D #R4a1D#”,barindex,R4a1D,Dialog,Bold,12) coloured(250,165,0,alpha)
    
    //R4a2D=round(R4D+0.382*(R5D – R4D),2)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    //DrawText(” ◄R4 38%D #R4a2D#”,barindex,R4a2D,Dialog,Bold,12) coloured(250,165,0,alpha)
    
    //R4A3D=round(R4D+0.5*(R5D – R4D),2)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    //DrawText(” ◄R4 50%D #R4A3D#”,barindex,R4A3D,Dialog,Bold,12) coloured(250,250,250,alpha)
    
    //R4a4D=round(R4D+0.764*(R5D – R4D),2)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    //DrawText(” ◄R4 76%D #R4a4D#”,barindex,R4a4D,Dialog,Bold,12) coloured(250,165,0,alpha)
    
    R5D = round(2*R4D-R1D,3)
    rem DrawSegment(startbar,RR5,barindex,RR5) coloured(0,0,0,alpha)
    DrawText(” ◄R5D #R5D#”,barindex,R5D,Dialog,Bold,12) coloured(250,250,0,alpha)
    R5bD=round((R5D+R6D)/2,3)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    DrawText(” ◄R5bD #R5bD#”,barindex,R5bD,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    R6D = round(R4D+1.618*(R4D-R1D),3)
    rem DrawSegment(startbar,RR6,barindex,RR6) coloured(0,0,0,alpha)
    DrawText(” ◄R6D #R6D#”,barindex,R6D,Dialog,Bold,12) coloured(250,250,0,alpha)
    R6bD=round((R6D+R7D)/2,3)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    DrawText(” ◄R6bD #R6bD#”,barindex,R6bD,Dialog,Bold,12) coloured(250,250,0,alpha)
    R7D = round(R4D+2*(R4D-R1D),3)
    rem DrawSegment(startbar,RR7,barindex,RR7) coloured(0,0,0,alpha)
    DrawText(” ◄R7D #R7D#” ,barindex,R7D,Dialog,Bold,12) coloured(250,250,0,alpha)
    S1D =round(C-((myH-L)*1.1)/12,3)
    rem DrawSegment(startbar,S1,barindex,S1) coloured(0,0,0,alpha)
    DrawText(” ◄S1D #S1D#”,barindex,S1D,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    //S0bD=round((PPD+S1D)/2,2)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    //DrawText(” ◄S0bD #S0bD#”,barindex,S0bD,Dialog,Bold,12) coloured(250,165,0,alpha)
    
    S2D =round( C-((myH-L)*1.1)/6,3)
    rem DrawSegment(startbar,SS2,barindex,SS2) coloured(0,0,0,alpha)
    DrawText(” ◄S2D #S2D#”,barindex,S2D,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    //S1bD=round((S2D+S1D)/2,2)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    //DrawText(” ◄S1bD #S1bD#”,barindex,S1bD,Dialog,Bold,12) coloured(250,165,0,alpha)
    
     
    
    S3D =round( C-((myH-L)*1.1)/4,3)
    rem DrawSegment(startbar,SS3,barindex,SS3) coloured(0,0,0,alpha)
    DrawText(” ◄S3D #S3D#”,barindex,S3D,Dialog,Bold,12) coloured(250,250,0,alpha)
    S4D =round( C-((myH-L)*1.1)/2,3)
    //SS4x=(SS4+SS4b)/2
    rem DrawSegment(startbar,SS4,barindex,SS4) coloured(0,0,0,alpha)
    DrawText(” ◄S4D #S4D#”,barindex,S4D,Dialog,Bold,12) coloured(250,250,0,alpha)
    S2bD=round((S2D+S3D)/2,2)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    DrawText(” ◄S2bD #S2bD#”,barindex,S2bD,Dialog,Bold,12) coloured(250,165,0,alpha)
    S3aD = round((S3D+S4D)/2,3)
    rem DrawSegment(startbar,SS4b,barindex,SS4b) coloured(0,0,0,alpha)
    DrawText(” ◄S3D 50% #S3aD#”,barindex,S3aD,Dialog,Bold,15) coloured(250,250,0,alpha)
    //S3bD = round(S3D-0.618 *(S1D-S3D),3)
    rem DrawSegment(startbar,SS4b,barindex,SS4b) coloured(0,0,0,alpha)
    //DrawText(” ◄S3D 62% #S3bD#”,barindex,S3bD,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    S4aD = round(S4D-0.5 *(S1D-S4D),3)
    rem DrawSegment(startbar,SS4b,barindex,SS4b) coloured(0,0,0,alpha)
    DrawText(” ◄S4D 50% #S4aD#”,barindex,S4aD,Dialog,Bold,12) coloured(250,250,0,alpha)
    //S4aD = round(S4D-0.5 * (S1D-S4D),2)
    rem DrawSegment(startbar,SS4a,barindex,SS4a) coloured(0,0,0,alpha)
    //DrawText(” ◄S4D 50% #S4aD#”,barindex,S4aD,Dialog,Bold,12) coloured(250,250,250,alpha)
    
    //S4a1D=round(S4D-0.236*(S4D – S5D),2)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    //DrawText(” ◄S4a1D 23% #S4a1D#”,barindex,S4a1D,Dialog,Bold,12) coloured(250,165,0,alpha)
    
    //S4a2D=round(S4D-0.382*(S4D – S5D),2)
    rem DrawSegment(startbar,RR3b,barindex,RR3b) coloured(0,0,0,alpha)
    //DrawText(” ◄S4a2D 38% #S4a2D#”,barindex,S4a2D,Dialog,Bold,12) coloured(250,165,0,alpha)
    S4bD = round(S4D-0.618 *(S1D-S4D),3)
    rem DrawSegment(startbar,SS4b,barindex,SS4b) coloured(0,0,0,alpha)
    DrawText(” ◄S4D 62% #S4bD#”,barindex,S4bD,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    S5D = round(2*S4D-S1D,3)
    rem DrawSegment(startbar,SS5,barindex,SS5) coloured(0,0,0,alpha)
    DrawText(” ◄S5D #S5D#”,barindex,S5D,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    //S5bD = round(S5D-0.618 *(S5D-S6D),2)
    rem DrawSegment(startbar,SS4b,barindex,SS4b) coloured(0,0,0,alpha)
    //DrawText(” ◄S5D 62% #S5bD#”,barindex,S5bD,Dialog,Bold,12) coloured(250,250,0,alpha)
    //S6bD = round(S6D-0.618 *(S6D-S7D),2)
    rem DrawSegment(startbar,SS4b,barindex,SS4b) coloured(0,0,0,alpha)
    //DrawText(” ◄S6D 62% #S6bD#”,barindex,S6bD,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    S6D = round(S4D-1.618*(S1D-S4D),3)
    rem DrawSegment(startbar,SS6,barindex,SS6) coloured(0,0,0,alpha)
    DrawText(” ◄S6D #S6D#”,barindex,S6D,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    S7D = round(S4D-2*(S1D-S4D),3)
    rem DrawSegment(startbar,SS7,barindex,SS7) coloured(0,0,0,alpha)
    DrawText(” ◄S7D #S7D#”,barindex,S7D,Dialog,Bold,12) coloured(250,250,0,alpha)
    
    RETURN //PP COLOURED(0,0,1) AS ” PPD” , R1 COLOURED(255,204,204) AS “R1D” , RR2 COLOURED(255,204,204) AS “R2D” , RR3 COLOURED(255,0,0) AS “R3D” , RR3b COLOURED(0,255,255) AS “R3bD” , RR4 COLOURED(0,255,0) AS “R4D” , SS3b COLOURED(0,255,255) AS “S3bD” ,SS4 COLOURED(255,0,0) AS “S4D” ,SS4a COLOURED(0,255,255) AS “S4aD” ,SS4b COLOURED(0,255,255) AS “S4bD” , SS5 COLOURED(255,255,0) AS “S5D” , SS6 COLOURED(255,153,0) AS “S6D” , SS7 COLOURED(255,153,0) AS “S7D”
    #246192 quote
    Iván González
    Moderator
    Master

    Bonjour,
    Le problème est que la clôture de la journée sur les bougies journalières des contrats à terme ne correspond pas à la clôture en intraday.
    Pour calculer la clôture en intraday, vous pouvez procéder comme suit :

    timecheck=220000
    if opentime>timecheck and opentime[1]<=timecheck then
    C = close[1]
    endif
    robertogozzi thanked this post
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

points camarilla à ajuster le clsoe du jour


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
geroniman @geroniman Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by Iván González
9 months, 2 weeks ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 04/15/2025
Status: Active
Attachments: 2 files
Logo Logo
Loading...