Croisement moyenne mobile simple

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #231170 quote
    FredaurFredaur
    Participant
    Junior

    Je cherche à coder.  Simple croisement sma5 et sma10 mensuel proche d’une résistance Merci par avance

    #231201 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Bonjour Tout d'abord, il serait nécessaire de savoir ce qui se trouve à proximité pour vous. Deuxièmement, généralement, lorsque le croisement haussier entre une moyenne rapide et une moyenne lente se produit, il est généralement « loin » de sa résistance. Je pense qu'il pourrait s'agir de valeurs intéressantes qui sont "proches" de leur résistance et il y a x périodes leurs moyennes se sont croisées.

    #231203 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Il s’agit d’un exemple d’indicateur de valeurs de marque correspondant à une ligne de maximum et qui vient peu à peu d’être croisé sur les médias mobiles.

    //Moving averages
    ma1 = average[5](close)
    ma2 = average[10](close)
    //highest high
    lmax = highest[10](high)
    //How many bars ma1 is over ma2
    if ma1 > ma2 then
    n=1+n
    else
    n=0
    endif
    //Conditions: less or equal than 3 bars and price closes near (3%) lmax
    if n <=3 and close > 0.97*lmax then
    drawarrowup(barindex,low-0.25*tr)coloured("green")
    endif
    
    return ma1 coloured("red"),ma2 coloured("blue"),lmax coloured("green")

    Si cela est utile pour vous, le screener sera le suivant :

    //Moving averages
    ma1 = average[5](close)
    ma2 = average[10](close)
    //highest high
    lmax = highest[10](high)
    //How many bars ma1 is over ma2
    if ma1 > ma2 then
    n=1+n
    else
    n=0
    endif
    //Conditions: less or equal than 3 bars and price closes near (3%) lmax
    SCREENER[n>0 and n <=3 and close > 0.97*lmax](close as "close")
    #231228 quote
    FredaurFredaur
    Participant
    Junior

    Bonjour

     

    Je vais y regarder dès ce soir

     

    Merci et bonne fin de journée

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

Croisement moyenne mobile simple


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
Fredaur @fredaur Participant
Summary

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

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