Prochain plat Tenkan

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #156210 quote
    PlayerPlayer
    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_BywanJC_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
    PlayerPlayer
    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.
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

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 PlayerPlayer
5 years, 8 months ago.

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