Copteur de sitnaux

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #201214 quote
    Ozons
    Participant
    Junior

    Bonjour,

    j’essaye de programmer sur une période comprenant les 20 dernières barres journalières, la somme correspondant à la présence d’un signal qui n’est autre que le croisement de l’indicateur à la baisse des différents seuils à 25 ,12, 5. Exemple sur 20 périodes j’ai trois croisements donc la valeur count = 3, 2 croisement la valeur count = 2.

    J’obtiens des résultats qui ne correspondent pas à mes souhaits. Merci pour votre aide.

    //
    INDICATEUR = CALL"INDICATEUR - TREND"[3,3]
    
    // SIGNAL
    SIGNAL = (INDICATEUR CROSSES UNDER 25 OR INDICATEUR CROSSES UNDER 12 OR INDICATEUR CROSSES UNDER 5)
    
    COUNT = 0
    FOR I = 0 TO 20 DO
    IF SIGNAL[I] = 1 THEN
    COUNT = COUNT+1
    ELSE
    COUNT = 0
    ENDIF
    NEXT
    
    RETURN COUNT
    #201216 quote
    JC_Bywan
    Moderator
    Master

    As-tu essayé sans boucle avec:

    count=summation[20](signal)

    #201341 quote
    Ozons
    Participant
    Junior

    Bonjour et merci pour ta réponse car je ne connaissais pas cette fonction. Problème résolu. Bon week-end

    JC_Bywan thanked this post
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

Copteur de sitnaux


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
Ozons @ozons Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Ozons
3 years, 11 months ago.

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