MAGICTREND SCREENER

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #252310 quote
    Miguel Angel
    Participant
    New

    BUENAS NOCHES

    NECESITO UN SCRENER BASADO EN EL MAGICTREND CAMBIO DE ROJO A VERDE  PARA ACCIONES ENTRE 3 Y 30 DOLARES

    GRACIAS DE ANTEMANO

    #252325 quote
    robertogozzi
    Moderator
    Master

    Ahí está:

    cciP = 20
    atrP = 14
    atrM = 1
    smaP = 5
    IF BarIndex > max(cciP,atrP) THEN
    lastCCI = thisCCI
    thisCCI = CCI[cciP](typicalPrice)
    myATR   = AverageTrueRange[atrP](close)
    //
    temp2   = Average[smaP,0](myATR) * atrM
    buffDN  = high + temp2
    buffUP  = low  - temp2
    //
    IF (thisCCI >= 0) AND (lastCCI  < 0) THEN
    buffUP = buffDN[1]
    ENDIF
    IF (thisCCI <= 0) AND (lastCCI  > 0) THEN
    buffDN = buffUP[1]
    ENDIF
    IF (thisCCI >= 0) THEN
    IF (buffUP < buffUP[1]) THEN
    buffUP = buffUP[1]
    ENDIF
    ELSIF (thisCCI <= 0) THEN
    IF (buffDN > buffDN[1]) THEN
    buffDN = buffDN[1]
    ENDIF
    ENDIF
    IF thisCCI >= 0 THEN
    MagicTrend = buffUP
    ELSIF thisCCI <= 0 THEN
    MagicTrend = buffDN
    ENDIF
    ELSE
    thisCCI    = 0
    lastCCI    = 0
    myATR      = 0
    buffUP     = 0
    buffDN     = 0
    buffDN     = 0
    buffUP     = 0
    MagicTrend = 0
    ENDIF
    c1   = close CROSSES OVER MagicTrend
    c2   = (close >= 3) AND (close <= 30)
    Cond = c1 AND c2
    SCREENER[Cond]
    Iván González thanked this post
    #252326 quote
    Iván González
    Moderator
    Master

    Ahí va

    cciP = 20
    thisCCI = CCI[cciP](typicalPrice)
    
    screener[thisCCI >= 0 and thisCCI[1] < 0 and close>3 and close<30]
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

MAGICTREND SCREENER


Soporte ProScreener

New Reply
Author
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by Iván González
3 months, 3 weeks ago.

Topic Details
Forum: Soporte ProScreener
Language: Spanish
Started: 10/07/2025
Status: Active
Attachments: No files
Logo Logo
Loading...