Compter les chandeliers depuis un dernier événement ou une condition

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #145769 quote
    tosh
    Participant
    Junior

    Bonjour je souhaite compter le nombre de chandeliers depuis un signal donné.
    Compter le nombre de  chandeliers depuis le dernier croisement du prix et une moyenne mobile par exemple.

    Merci d’avance

    #145770 quote
    fifi743
    Participant
    Master

    bonsoir,

    depuis un trade : barindex-tradeindex

    pour un signal

    if close crosses over MA then

    br = barindex

    endif

    // nombre de bar apres le cross

    barindex-br

    #145771 quote
    robertogozzi
    Moderator
    Master

    Voilà:

    Once Count = 0
    If Count <> 0 Then
       Count = Count + 1
    Endif
    If close crosses over average[20,0](close) or close crosses under average[20,0](close) Then
       Count = 1
    Endif
    Return Count
    fifi743 thanked this post
    #145774 quote
    tosh
    Participant
    Junior

    Merci, nikel

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

Compter les chandeliers depuis un dernier événement ou une condition


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
tosh @tosh Participant
Summary

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

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