comment valider les conditions d’une bougie sur ut différente

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #227664 quote
    olivierolivier
    Participant
    Junior

    bonjour,

    j’ai du mal à programmer en timeframe différent.

    je n’arrive pas à programmer une validation d’un rebond sur une moyenne mobile d’une bougie 30 minutes en ut 5 à la clôture de la bougie 30minutes.

    Je voudrais dans les conditions un low<mm, open>mm et un close>mm ou high>mm, open<mm et close<mm valider sur une bougie en 30 minutes avec un signal en 5 minutes sur la dernière bougie (clôture 30minutes).

    merci pour vos retour

    #227995 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Salut
    Ici vous avez un indicateur qui se met à jour lorsque la bougie de 30 minutes se ferme.
    J’ai programmé les 2 conditions que vous mentionnez.

    timeframe(30mn,UPDATEONCLOSE )
    sma = average[20](close)
    //low<mm, open>mm et un close>mm
    c1 = low < sma and open > sma and close > sma 
    //high>mm, open<mm et close<mm
    c2 = high>sma and open < sma and close < sma
    
    return c1 as "C1" coloured(250,0,0), c2 as "C2" coloured(0,250,0)
    olivier thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

comment valider les conditions d’une bougie sur ut différente


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
olivier @olivier Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván GonzálezIván González
2 years, 7 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 02/08/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...