plus bas suivi de plusieurs moins bas

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #177820 quote
    raphy
    Participant
    New

    Bonjour tout le monde,

    j aimerais créer un code qui me préviendrais lorsque :

    une fois qu une bougie fait un plus bas (meche ou corps) et qu elle est suivie par plusieurs bougies qui font des moins bas que celle ci ( ex 4 ou 5)

    voila, peut être c est tout bête à faire mais je n ai tjrs pas réussi après de nombreuse reflexions.

    je vous en remercie par avance

    #177822 quote
    JC_Bywan
    Moderator
    Master

    Bonsoir, basé sur mèches:

    plusbas=low<low[1]
    
    if plusbas[5] and low[4]>low[5] and low[3]>low[5] and low[2]>low[5] and low[1]>low[5] and low>low[5] then
    signal=1
    else
    signal=0
    endif
    
    return signal
    #177840 quote
    raphy
    Participant
    New

    Bonjour Jc,

    C’est exactement ca, merci beaucoup !

    Bon week end

    JC_Bywan thanked this post
    #177933 quote
    JC_Bywan
    Moderator
    Master

    J’ai oublié de rajouter, si tu voulais basé sur corps, tu peux définir une variable bascorps=min(open,close) puis plusbas =  bascorps<bascorps[1]

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

plus bas suivi de plusieurs moins bas


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
raphy @raphy Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 09/17/2021
Status: Active
Attachments: No files
Logo Logo
Loading...