Regroupement bougie du dimanche et du lundi

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #263031 quote
    turame
    Participant
    Master

    Bonjour à tous,

    Je doute que ce soit possible mais si quelqu’un à la solution à ce problème je suis preneur.

    Sur l’image il y a 2 bougies : celle du dimanche (car le marché réouvre à 22h heure local) et celle du lundi.

    Je souhaite les regrouper, ainsi, la bougie serait donc un étoile du soir..

    J’ai essayé de décocher les données du weekdend mais la bougie du lundi reste la même et celle du dimanche s’enlève, il y a juste un gap plus important entre le vendredi et le lundi. Mon but est vraiment de regrouper le dimanche et le lundi.

    Merci d’avance

    #263037 quote
    robertogozzi
    Moderator
    Legend

    Essayez cet indicateur :

    ONCE oSunday    = 0
    ONCE hSunday    = 0
    ONCE lSunday    = 0
    ONCE cSunday    = 0
    IF OpenDayOfWeek > 1  THEN
    oSunday    = 0
    hSunday    = 0
    lSunday    = 0
    cSunday    = 0
    ENDIF
    IF OpenDayOfWeek = 0 THEN
    IF oSunday = 0 THEN
    oSunday = open
    hSunday = high
    lSunday = low
    ENDIF
    hSunday = max(high,hSunday)
    lSunday = min(low,lSunday)
    cSunday = close
    DrawCandle(open,high,low,close) coloured("White") bordercolor("White")
    ENDIF
    IF (OpenDayOfWeek = 1) THEN
    IF (OpenDayOfWeek[1] <> 1) THEN
    IF oSunday THEN
    oMonday = oSunday
    hMonday = hSunday
    lMonday = lSunday
    cMonday = close
    ENDIF
    IF cMonday >= oMonday THEN
    DrawCandle(oMonday,hMonday,lMonday,cMonday) coloured("Blue")// bordercolor("Blue")
    ELSE
    DrawCandle(oMonday,hMonday,lMonday,cMonday) coloured("Red")// bordercolor("Red")
    ENDIF
    ELSE
    hMonday = max(high,hSunday)
    lMonday = min(low,lSunday)
    cMonday = close
    ENDIF
    ENDIF
    RETURN
    
    Iván González thanked this post
    #263038 quote
    robertogozzi
    Moderator
    Legend

    Malheureusement, il ne s’agit que d’une solution visuelle. Les indicateurs (RSI, moyennes mobiles, etc.) calculent les données à partir des chandeliers officiels du courtier.

    Si vous souhaitez utiliser un screener ou une stratégie, vous devrez intégrer cet indicateur personnalisé à leur code.

    #263039 quote
    turame
    Participant
    Master

    Merci Roberto,

    Malheureusement l’indicateur ne fonctionne pas.

    Je cherche effectivement un indicateur visuel ou un paramétrage dans les réglages. Je n’utilise quasiment aucun indicateur donc ce n’est pas grave si je ne peux pas calculer par dessus.

    #263049 quote
    robertogozzi
    Moderator
    Legend

    Vous avez raison, j’ai fait quelques erreurs. Je les ai corrigées et tout semble fonctionner correctement (voir la photo du DAX journalier) :

    ONCE oSunday    = 0
    ONCE hSunday    = 0
    ONCE lSunday    = 0
    ONCE cSunday    = 0
    ONCE oMonday    = 0
    ONCE hMonday    = 0
    ONCE lMonday    = 0
    ONCE cMonday    = 0
    IF OpenDayOfWeek = 0 THEN
    oSunday = open
    hSunday = high
    lSunday = low
    DrawCandle(open,high,low,close) coloured("White") bordercolor("White")
    ENDIF
    IF (OpenDayOfWeek = 1) THEN
    IF oSunday THEN
    hMonday = max(high,hSunday)
    lMonday = min(low,lSunday)
    cMonday = close
    DrawCandle(high,high,low,low) coloured("White")bordercolor("White")
    IF cMonday >= oMonday THEN
    DrawSegment(BarIndex,cMonday,barIndex,oSunday) coloured("Blue") style(line,5)
    DrawSegment(BarIndex,hMonday,barIndex,cMonday) coloured("Blue") style(line,1)
    DrawSegment(BarIndex,lMonday,barIndex,oSunday) coloured("Blue") style(line,1)
    ELSE
    DrawSegment(BarIndex,cMonday,barIndex,oSunday) coloured("Red") style(line,5)
    DrawSegment(BarIndex,hMonday,barIndex,cMonday) coloured("Red") style(line,1)
    DrawSegment(BarIndex,lMonday,barIndex,oSunday) coloured("Red") style(line,1)
    ENDIF
    oSunday    = 0
    hSunday    = 0
    lSunday    = 0
    cSunday    = 0
    oMonday    = 0
    hMonday    = 0
    lMonday    = 0
    cMonday    = 0
    ENDIF
    ENDIF
    RETURN
    
    Iván González and turame thanked this post
    x-1.jpg x-1.jpg
    #263057 quote
    turame
    Participant
    Master

    Impeccable merci roberto !

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Regroupement bougie du dimanche et du lundi


Support Plateforme : Graphiques, Données & Courtiers

New Reply
Author
author-avatar
turame @turame Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by turame
1 week, 1 day ago.

Topic Details
Forum: Support Plateforme : Graphiques, Données & Courtiers
Language: French
Started: 07/30/2026
Status: Active
Attachments: 1 files
Logo Logo
Loading...