RECHERCHE SCREENER SUPPORT 3 MENSUEL

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

    Bonjour,

    Je suis à la recherche d’un code permettant de détecter une valeur dont les cours sont proches du support 3 mensuel (et résistance 3 mensuel).

    j’ai vu beaucoup de codes avec le pivot mais pas les résistances et supporté.

    Pouvez vous m’aider?

    Merci

    #113900 quote
    NicolasNicolas
    Keymaster
    Legend

    Le code du screener ci-dessous renverra la liste des valeurs dont le prix est inférieur ou égal à 1.5% (par défaut et modifiable d’un des points pivots R1,R2,R3,S1,S2,S3)

    Percent = 1.5 //percentage %
    
    If Month<>Month[1] then
    monthlyHigh = Highest[max(1,BarIndex - lastMonthBarIndex)](High)[1]
    monthlyLow = Lowest[max(1,BarIndex - lastMonthBarIndex)](Low)[1]
    lastMonthBarIndex = BarIndex
    
    monthlyPivot = (monthlyHigh + monthlyLow + Close[1]) / 3
    
    monthlyR1 = 2*monthlyPivot - monthlyLow
    monthlyS1 = 2*monthlyPivot - monthlyHigh
    monthlyR2 = monthlyPivot + (monthlyHigh - monthlyLow)
    monthlyS2 = monthlyPivot - (monthlyHigh - monthlyLow)
    monthlyR3 = monthlyR1 + (monthlyHigh - monthlyLow)
    monthlyS3 = monthlyS1 - (monthlyHigh - monthlyLow)
    Endif
    
    data = min(abs(close-monthlyR1),min(abs(close-monthlyr2),min(abs(close-monthlyr3),min(abs(close-monthlys1),min(abs(close-monthlys2),abs(close-monthlys3))))))
    
    c1 = (data/close*100)<=Percent/100
    
    screener [c1](data/close*100)

    Voir ce sujet: screener point pivot mensuel, écart en pourcentage

    ou uniquement pour les R3 et S3, proximité de 1.5% :

    Percent = 1.5 //percentage %
    
    If Month<>Month[1] then
    monthlyHigh = Highest[max(1,BarIndex - lastMonthBarIndex)](High)[1]
    monthlyLow = Lowest[max(1,BarIndex - lastMonthBarIndex)](Low)[1]
    lastMonthBarIndex = BarIndex
    
    monthlyPivot = (monthlyHigh + monthlyLow + Close[1]) / 3
    
    monthlyR1 = 2*monthlyPivot - monthlyLow
    monthlyS1 = 2*monthlyPivot - monthlyHigh
    //monthlyR2 = monthlyPivot + (monthlyHigh - monthlyLow)
    //monthlyS2 = monthlyPivot - (monthlyHigh - monthlyLow)
    monthlyR3 = monthlyR1 + (monthlyHigh - monthlyLow)
    monthlyS3 = monthlyS1 - (monthlyHigh - monthlyLow)
    Endif
    
    data = min(abs(close-monthlyR3),abs(close-monthlys3))
    
    c1 = (data/close*100)<=Percent/100
    
    screener [c1](data/close*100)
    #113914 quote
    morrisonmorrison
    Participant
    Average

    C’est parfait.

     

    Merci beaucoup

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

RECHERCHE SCREENER SUPPORT 3 MENSUEL


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
morrison @morrison Participant
Summary

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

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