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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #145769 quote
    toshtosh
    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
    fifi743fifi743
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    toshtosh
    Participant
    Junior

    Merci, nikel

Viewing 4 posts - 1 through 4 (of 4 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

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 toshtosh
5 years, 11 months ago.

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