screener indicateurs multiples

Forums ProRealTime forum Français Support ProScreener screener indicateurs multiples

Viewing 4 posts - 16 through 19 (of 19 total)
  • #168909

    C’est d’autant plus incompréhensible car lorsque je teste par exemple la condition cst5 seule dans la condition c 11, la condition cst5 est bien valide.

    Alors comment est-il possible que la condition c11 soit pourtant invalide alors qu’il suffit d’une seule condition valide entre cst5, cst15 et cst1h et que cst5 et pourtant notée comme étant valide quand je test ?

    #168925

    Bonjour,

    Le code est lu de haut en bas, et c11 (ligne 37) est écrite avant que les cst5 15 et 1h soient réévaluées (sauf erreur de ma part dans le dernier code lignes 38,48,59). Si l’une des 3 change, cela n’affectera donc c11 que lors de la lecture de la bougie d’après. Est-ce intentionnel? Si non, cela peut être source du décalage entre les attentes et l’observation au sein d’une même bougie.

    #168935

    Effectivement, sa n’étais pas voulu et c’est bien ce qui posait problème.

    Merci beaucoup pour votre aide.

    #171392

    Bonjour,

    J’ai voulu tester à nouveau mon code récemment puisque j’avais doute quant à plusieurs titres que j’ai manquer mais quand j’essaye à nouveau de lancer l’indicateur celui ci me renvoie uniquement un message “erreur de calcul” sans même m’indiquer quelle ligne pose problème…

    J’avoue que j’ai du mal à voir ou est le souci, pourriez vous m’aider à savoir d’où viens le problème svp ?

    Voici le nouveau code, je l’ai un peut modifier depuis la dernière fois.

    timeframe(1 hour)

    c1=close*volume > 50000

    Pivot = (High[1] + Low[1] + Close[1] + Open[0])/4

    timeframe(4 hours)

    Pivot2 = (High[1] + Low[1] + Close[1] + Open[0])/4

    timeframe(2 hours)

    Pivot3 = (High[1] + Low[1] + Close[1] + Open[0])/4

    timeframe(5 minutes)
    Tenkansen1 = (highest[9](high)+lowest[9](low))/2
    Kijunsen1 = (highest[26](high)+lowest[26](low))/2
    Stoch = Stochastic[34,3]
    indic = Average[250](Volume)
    indic2 = Average[250](Volume)*3
    VariationVol = Volume / indic
    VariationVol2 = (Volume + Volume[1] + Volume[2]) / indic2

    cd5 =DIplus[14](weightedclose) > DIminus[14](weightedclose)
    cv= (((highest[3](high)-lowest[3](low))/lowest[3](low)))*100
    cond=cv
    c6=cv>1
    crisk1= ((close-Kijunsen1)/Kijunsen1)<0.03
    crsi1= rsi[21](weightedclose) crosses over 50 or rsi[21](weightedclose)[1] crosses over 50 or rsi[21](weightedclose)[2] crosses over 50
    cst5= wilderAverage[3](Stochastic[34,3]) > wilderAverage[3](wilderAverage[3](Stoch)) or wilderAverage[3](Stochastic[34,3])>80
    cc5= close crosses over kijunsen1 or close crosses over tenkansen1 or close[1] crosses over kijunsen1[1] or close[1] crosses over tenkansen1[1] or kijunsen1 crosses over close or tenkansen1 crosses over close or kijunsen1[1] crosses over close or tenkansen1[1] crosses over close or (close[1]>kijunsen1 and low<=kijunsen1 and close>kijunsen1) or ( close[1]>tenkansen1 and low<=tenkansen1 and close>tenkansen1 ) or (close[2]>kijunsen1[1] and low[1]<=kijunsen1[1] and close[1]>kijunsen1[1]) or ( close[2]>tenkansen1[1] and low[1]<=tenkansen1[1] and close[1]>tenkansen1[1])
    crs5= rsi[21](weightedclose) crosses over 50
    csto5= wilderAverage[3](Stochastic[34,3]) crosses over wilderAverage[3](wilderAverage[3](Stoch)) or wilderAverage[3](Stochastic[34,3])>80
    cdi5= DIplus[14](weightedclose) crosses over DIminus[14](weightedclose)

    timeframe(15 minutes)
    Stoch2 = Stochastic[34,3]
    Kijunsen2 = (highest[26](high)+lowest[26](low))/2
    Tenkansen2 = (highest[9](high)+lowest[9](low))/2

    cst15= wilderAverage[3](Stochastic[34,3]) > wilderAverage[3](wilderAverage[3](Stoch2)) or wilderAverage[3](Stochastic[34,3])>80
    crsi2= rsi[21](weightedclose) >50
    crisk2= ((close-Kijunsen2)/Kijunsen2)<0.03
    cd15 = DIplus[14](weightedclose) > DIminus[14](weightedclose)
    cc15= close crosses over kijunsen2 or close crosses over tenkansen2 or close[1] crosses over kijunsen2[1] or close[1] crosses over tenkansen2[1] or kijunsen2 crosses over close or tenkansen2 crosses over close or kijunsen2[1] crosses over close or tenkansen2[1] crosses over close or (close[1]>kijunsen2 and low<=kijunsen2 and close>kijunsen2) or ( close[1]>tenkansen2 and low<=tenkansen2 and close>tenkansen2 ) or (close[2]>kijunsen2[1] and low[1]<=kijunsen2[1] and close[1]>kijunsen2[1]) or ( close[2]>tenkansen2[1] and low[1]<=tenkansen2[1] and close[1]>tenkansen2[1])
    crs15= rsi[21](weightedclose) crosses over 50
    csto15= wilderAverage[3](Stochastic[34,3]) crosses over wilderAverage[3](wilderAverage[3](Stoch2)) or wilderAverage[3](Stochastic[34,3])>80
    cdi15= DIplus[14](weightedclose) crosses over DIminus[14](weightedclose)

    timeframe(1 hour)
    Stoch3 = Stochastic[34,3]
    Tenkansen3 = (highest[9](high)+lowest[9](low))/2
    Kijunsen3 = (highest[26](high)+lowest[26](low))/2

    cst1h= wilderAverage[3](Stochastic[34,3]) > wilderAverage[3](wilderAverage[3](Stoch3)) or wilderAverage[3](Stochastic[34,3])>80
    cc1h= close crosses over kijunsen3 or close crosses over tenkansen3 or close[1] crosses over kijunsen3[1] or close[1] crosses over tenkansen3[1] or kijunsen3 crosses over close or tenkansen3 crosses over close or kijunsen3[1] crosses over close or tenkansen3[1] crosses over close or (close[1]>kijunsen3 and low<=kijunsen3 and close>kijunsen3) or ( close[1]>tenkansen3 and low<=tenkansen3 and close>tenkansen3 ) or (close[2]>kijunsen3[1] and low[1]<=kijunsen3[1] and close[1]>kijunsen3[1]) or ( close[2]>tenkansen3[1] and low[1]<=tenkansen3[1] and close[1]>tenkansen3[1])

    timeframe(5 minutes)
    c2 = (VariationVol > 1) or (VariationVol2 > 1)
    c3= close > pivot or close > pivot2 or close > pivot3
    c4 = cd5 or cd15
    c7 = close >lowest[3](low)
    c8 = rsi[21](weightedclose)>rsi[21](weightedclose)[1]
    c9 = crisk1 or crisk2
    c10= crsi1 or crsi2
    c11 = cst5 or cst15 or cst1h
    c12= cc5 or cc15 or cc1h
    cr= c4 and c10 and c11
    crs= crs5 or crs15
    csto= csto5 or csto15
    cdi= cdi5 or cdi15
    c15= ( crs or csto or cdi )

    return cond as “cond”, c1 as “c1”,c4 as “c4”, c6 as “c6”, c7 as “c7”, c8 as “c8”, c9 as “c9”,c10 as “c10”, c11 as “c11”, c12 as “c12”, c3 as “c3”, cst5 as “cst5”, c15 as “c15”

Viewing 4 posts - 16 through 19 (of 19 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login