Modif code screener MACD ZL

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

    Bonjour,

    J’aurais besoin de modifier légèrement ce code, ou le croisement n’a pas lieu par rapport à la bougie précédente mais plutôt par rapport à la bougie d’avant. Soit bougie n-2

    Voici le code original. Merci:

     

    indicator1, ignored, ignored, ignored = CALL MACDZL[15]
    ignored, indicator2, ignored, ignored = CALL MACDZL[15]
    c1 = (indicator1 CROSSES OVER indicator2)
    c2 = (indicator1 CROSSES UNDER indicator2)
    
    
    SCREENER[c1 OR c2] (Variation AS "% Barre prec")
    #31183 quote
    NicolasNicolas
    Keymaster
    Legend

    Il faut simplement décaler dans le temps, les résultats obtenus par les conditions c1 et c2 (accès aux valeurs du passé des variables, ça fait partie d’ailleurs de la première formation à la programmation disponible sur le site).

    Donc on test toujours le croisement, mais dans la bougie précédente, on décale donc les valeurs des variables ‘indicator1’ et ‘indicator2’ d’une seule bougie (valeur entre crochets) :

    c1 = (indicator1[1] CROSSES OVER indicator2[1])
    c2 = (indicator1[1] CROSSES UNDER indicator2[1])
    #31252 quote
    henri95henri95
    Participant
    Average

    Merci Nicolas, ça marche nikel!

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

Modif code screener MACD ZL


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
henri95 @henri95 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by henri95henri95
9 years, 6 months ago.

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