Prochain plat Tenkan

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #156210 quote
    Player
    Participant
    Average

    Bonjour,

    J’essaie de coder un screener qui me retourne le prochain plat Tenkan sur une période de 100.

    once PreviousEcart=100
    idcTenkan=TenkanSen[9,26,52]
    for i=1 to 100
    //Recherche d'un plat
    Test=idcTenkan[I]=idcTenkan[i+1]
    If Test Then
    //Calcul de la distance du plat et du prix
    Ecart=Highest[0]-idcTenkan[i]
    //Si la distance est inférieure au précédent plat, alors on la sauvegarde.
    If Ecart<PreviousEcart Then
    PreviousEcart=idcTenkan[I]
    EndIf
    EndIf
    Next
    
    
    SCREENER[PreviousEcart<100](PreviousEcart as "Ecart")

    Le problème c’est que mon screener me retourne aucun résultat.

    Auriez-vous une idée de ce qui cloche dans mon petit code ?

    Merci par avance

    #156214 quote
    JC_Bywan
    Moderator
    Master

    A première vue, peut être la ligne11? Considérant que ce que tu as appelé écart en ligne 8 fait la différence entre un highest et ton idctenkan, il y a quelque chose de non-homogène à lire previousecart être idctenkan plutôt qu’un écart entre idctenkan et autre chose?

    #156257 quote
    Player
    Participant
    Average

    Effectivement il y avait une erreur.

    Il fallait bien lire à la ligne 11 PreviousEcart=Ecart.

    Par contre, malgré la correction aucun résultat ne sort.

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

Prochain plat Tenkan


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
Player @player Participant
Summary

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

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 01/04/2021
Status: Active
Attachments: No files
Logo Logo
Loading...