date dernier plus haut

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #81841 quote
    the_giorgiothe_giorgio
    Participant
    Senior

    Bonjour,

     

    Est-ce qu’il y a une fonction qui donne le nombre de barres depuis le dernier plus haut sur une période donnée ?

    On demande le dernier plus sur les 50 derniers jours et la fonction donne c’est arrivé il y a 32 jours .

     

    Merci

     

    Georges

    #81883 quote
    NicolasNicolas
    Keymaster
    Legend

    A tester avec cette fonction:

    lookback = 50
    
    result = 0
    for i = 0 to lookback do
     if high[i]>result then
      result=high[i]
      mybar=barindex[i]
      
     endif
    next
    
    screener (barindex-mybar)

     

    Donc le screener ne retournera que cette valeur, rien d’autre. (Non testé).

    #81887 quote
    the_giorgiothe_giorgio
    Participant
    Senior

    Merci

     

    Je vais tester

    #95755 quote
    roncevaux68roncevaux68
    Participant
    Senior

    bonjour

    sur cette exemple on cherche les plus haut , je recherche le code mais pour trouver les plus bas

    j’ai changer dans le texte “high” par “low” mais cela me fonction pas

    merci

    #95756 quote
    the_giorgiothe_giorgio
    Participant
    Senior

     

     

    Il faut mettre result=10000000 au lieu de 0 et < à la place de >

    Nicolas thanked this post
    #95796 quote
    roncevaux68roncevaux68
    Participant
    Senior

    bonjour non les 1000000 ça ne fonctionne pas

    #95798 quote
    NicolasNicolas
    Keymaster
    Legend

    A tester avec cette version pour les plus bas :

    lookback = 50
    
    result = close*100
    for i = 0 to lookback do
     if low[i]<result then
      result=low[i]
      mybar=barindex[i]
      
     endif
    next
    
    screener (barindex-mybar)
    #95850 quote
    roncevaux68roncevaux68
    Participant
    Senior

    merci nicolas

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

date dernier plus haut


ProScreener : Scanners de Marché & Détection

New Reply
Author
Summary

This topic contains 7 replies,
has 3 voices, and was last updated by roncevaux68roncevaux68
7 years, 6 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 10/03/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...