Test d’une condition remplie durant les 25 dernières bougies

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #149153 quote
    jeje1664jeje1664
    Participant
    Average

    Bonjour à tous,

    Je travaille actuellement sur un indicateur personnalisé que dont je tache actuellement d’affiner le code.

    // Définition PP Journalier
    Ht = DHigh(1)
    Bs = DLow(1)
    C = DClose(1)
    
    // Correctif pour le lundi
    IF dayofweek = 1 THEN
    Ht = DHigh(2)
    Bs = DLow(2)
    C = DClose(2)
    ENDIF
    
    PivotJ = (Ht + Bs + C) / 3
    
    // Définition MM pondérée 55
    MMC = WeightedAverage[55]
    

    Etant un grand novice en programmation, je cherche à coder la condition suivante

    Dans les 25 dernière bougies, la MMC a toujours été inférieure à PivotJ

    Merci bcp pour votre éclairage !

    Cordialement

    Jérôme

    #149154 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Ligne de code qui définit une condition = vrai pour que ta MMC soit inférieure à ton Pivotj dans les 25 dernières bougies (y compris la bougie en cours):

    ConditionJeje1664 = summation[25](MMC<PivotJ)=25
    #149161 quote
    jeje1664jeje1664
    Participant
    Average

    Super, un grand merci !

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Test d’une condition remplie durant les 25 dernières bougies


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
jeje1664 @jeje1664 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by jeje1664jeje1664
5 years, 10 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 11/01/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...