Indicateur ADX + MM pour du lt

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #145083 quote
    Xavier TartakoverXavier Tartakover
    Participant
    New

    Bonjour

    je voudrai transposer les instruction d un screener que j ai relever sur internet et que je voudrai mettre ds prorealtime gratuit pour trouver des actions uniquement long terme merci d avance de m aider car j essai de me former

    // INDICATEURS
    
    iDIplus = DIplus[14](close)
    iDImoins = DIminus[14](close)
    iADX = ADX[14]
    MM200 = average[200](close)
    
    // LONGS
    ca1 = close > MM200
    ca2 = iADX > iDImoins and iADX < iDIplus
    
    IF ca1 and ca2 THEN
    Indicateur = 1
    ENDIF
    
    // SORTIE LONGS
    IF Indicateur = 1 and iDIplus crosses under iDImoins THEN
    Indicateur = 0
    ENDIF
    
    // SHORTS
    cv1 = close < MM200
    cv2 = iADX < iDImoins and iADX > iDIplus
    
    IF cv1 and cv2 THEN
    Indicateur = -1
    ENDIF
    
    // SORTIE SHORTS
    IF Indicateur = -1 and iDIplus crosses over iDImoins THEN
    Indicateur = 0
    ENDIF
    
    RETURN Indicateur
    #145088 quote
    NicolasNicolas
    Keymaster
    Legend

    Il s’agit d’un code d’indicateur, pour l’utiliser sous forme de screener, il faut le convertir, voir le code ci-dessous :

    // INDICATEURS
    
    iDIplus = DIplus[14](close)
    iDImoins = DIminus[14](close)
    iADX = ADX[14]
    MM200 = average[200](close)
    
    // LONGS
    ca1 = close > MM200
    ca2 = iADX > iDImoins and iADX < iDIplus
    
    IF ca1 and ca2 THEN
    Indicateur = 1
    ENDIF
    
    // SORTIE LONGS
    IF Indicateur = 1 and iDIplus crosses under iDImoins THEN
    Indicateur = 0
    ENDIF
    
    // SHORTS
    cv1 = close < MM200
    cv2 = iADX < iDImoins and iADX > iDIplus
    
    IF cv1 and cv2 THEN
    Indicateur = -1
    ENDIF
    
    // SORTIE SHORTS
    IF Indicateur = -1 and iDIplus crosses over iDImoins THEN
    Indicateur = 0
    ENDIF
    
    screener[Indicateur<>0](indicateur)
    #145094 quote
    Xavier TartakoverXavier Tartakover
    Participant
    New

    ok merci

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

Indicateur ADX + MM pour du lt


ProScreener : Scanners de Marché & Détection

New Reply
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Xavier TartakoverXavier Tartakover
6 years ago.

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