adapter cet ITF au weekly, monthly , PP Camarilla , market profile

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

    Bonjour, cet ITF permet de visualiser les points camarilla étendus en daily. J’essaie de l’adapter au weekly, monthly mais ça bugge. QQun pour y jeter un oeil? Ces points pivots camarilla permettent de visualiser les zones identiques au market profile ( notamment en weekly).Merci d’avance.

    magicD1.itf
    #227244 quote
    JC_Bywan
    Moderator
    Master

    Bonjour,

    Avant de proposer une adaptation, il y a 2 bugs dans le code de départ où R2D doit remplacer R2 en nom de variable:

    1) le drawtext du R2:

    DrawText(”             ◄ R2 #R2#”, barindex, R2D, Dialog, Bold, 15) coloured(0,255,255,alpha)

    2) et la ligne return:

    RETURN PP COLOURED(255,255,255) AS ” PP” , R1 COLOURED(255,204,204) AS “R1” , R2D COLOURED(255,204,204) AS “R2” , (etc…)

     

    Pour l’adapter en weekly par exemple, tu peux remplacer les 3 lignes du début myH=…, L=…, C=… par (sans chercher à customiser horaires et jours pour ceux qui sont chez IG, puisque l’itf de départ en daily ne le fait pas):

    if opendayofweek<opendayofweek[1] then
    myH=weekH
    L=weekL
    C=weekC
    weekH=high
    weekL=low
    weekC=close[1]
    endif
    
    weekH=max(weekH,high)
    weekL=min(weekL,low)

     

     

     

    En bonus, une image attachée, un graphe UT30mn depuis début 2024 pour comparer l’adaptation proposée générant des Camarilla weekly avec le market profile en weekly sur les semaines depuis le début de l’année, pour confirmer/infirmer une équivalence de zones (personnellement je ne suis pas convaincu, mais si l’adaptation de code peut aider quand même alors tant mieux).

    Capture-decran-2024-02-01-140959-Camarilla-weekly-et-TPO.jpg Capture-decran-2024-02-01-140959-Camarilla-weekly-et-TPO.jpg
    #227249 quote
    geroniman
    Participant
    Average

    Merci bien JC, j’ai bien changé les 3 premieres lignes mais les resultats ne sont pas bons. Je vais essayer une autre formule.

    #227250 quote
    phoentzs
    Participant
    Master

    Est-ce que j’ai raté quelque chose ou ça ne fonctionne pas aussi :

    “timeframe(1week, updateonclose)”

    #227259 quote
    JC_Bywan
    Moderator
    Master

    @phoentzs oui aussi

    timeframe(1 week, updateonclose)
    
    myH=high
    L=low
    C=close
    
    timeframe(default)
    
    etc...


    @geroniman
    j’ai mal placé la ligne C=weekC, correction dans le cas d’une version sans mot-clé timeframe:

    if opendayofweek<opendayofweek[1] then
    myH=weekH
    L=weekL
    weekH=high
    weekL=low
    weekC=close[1]
    C=weekC
    endif
    
    weekH=max(weekH,high)
    weekL=min(weekL,low)

    (ou directement C=close[1] si pas d’intention de se servir de weekC ailleurs dans le code)

    #227282 quote
    geroniman
    Participant
    Average

    Voici les Camarilla étendus ( magic) en weekly et monthly avec traits et valeurs.

    Merci pour vos retours.

     

    Edit par modération: adresse email retirée, cf cadre jaune en bas de page sur les infos personnelles (email, téléphone)

    MAGIC-WEEKLY-2024.itf MAGICS-MONTHLY-2024.itf MAGIC-MONTHLY-3d-2024.itf MAGIC-WEEKLY.itf
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

adapter cet ITF au weekly, monthly , PP Camarilla , market profile


Support Plateforme : Graphiques, Données & Courtiers

New Reply
Author
author-avatar
geroniman @geroniman Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by geroniman
2 years ago.

Topic Details
Forum: Support Plateforme : Graphiques, Données & Courtiers
Language: French
Started: 02/01/2024
Status: Active
Attachments: 6 files
Logo Logo
Loading...