Aide sur test RSI – Proscreener

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #33917 quote
    thierryRtime
    Participant
    New

    Bonjour,

    J’ai adapté un ProBuilder “DIVERGENCES RSI” pour pouvoir l’utiliser sur un graphique hebdo et l’exploiter dans un Proscreener afin de détecter les valeurs qui répondent aux critères RSI haussier ou baissier.

    L’application du ProBuilder sur le graphique fonctionne bien (voir exemple sur le screenshot du Crédir Agricole).

    Mais en l’utilisant ds un ProScreener ça fonctionne pour le RSI haussier mais pas pour le RSI baissier.

    Alors si qqn pouvait m’aider à comprendre pourquoi ça fonctionne pour détecter les triangles hauts (=1) mais pas les triangles bas (=-1) car je sèche depuis un bout de temps.

    Merci à vous.

    Voir joint au message le code du Probuilder et des 2 ProScreener ainsi que des screenshot pour exemple.

    
    // DIVERGENCES RSI
    x = RSI[p]
    y=average[2](x)
    
    //  DIVERGENCES BAISSIERES  RSI
    if x>overboughtzone then
    hi=max(hi,x)
    hico=max(hico,max(high,high[1]))
    endif
    if x crosses under y then
    sto2b=sto1b
    sto1b=hi
    hi=0
    p3b=p1b
    p2b=max(p1b,hico1)
    p1b=max(highest[3](high),hico)
    if p2b=p1b then
    p2b=max(p3b,p4b)
    endif
    hico=0
    hico1=0
    endif
    if x<y then
    p4b=hico1
    hico1=max(hico1,high)
    endif
    if p1b>p2b and sto1b<sto2b and x crosses under y and x<x[1] then
    signB= -1
    else
    signB= 0
    endif
    //  DIVERGENCES HAUSSIERES  RSI
    if x<oversoldzone then
    lo=min(lo,x)
    lowco=min(lowco,min(low,low[1]))
    endif
    if x CROSSES OVER y  then
    sto2h=sto1h
    sto1h=lo
    lo=100
    p3h=p1h
    p2h=min(p1h,lowco1)
    p1h=min(lowest[3](low),lowco)
    if p2h=p1h then
    p2h=min(p3h,p4h)
    endif
    lowco=100000
    lowco1=100000
    endif
    if x>y then
    p4h=lowco1
    lowco1=min(lowco1,low)
    endif
    if p1h<p2h and sto1h > sto2h and x crosses over y and x>x[1]  then
    signH= 1
    else
    signH= 0
    endif
    ////////////////////////////////////////////////
    return signH as " div RSI H ", signB as " div RSI B "

    ProScreener RSI H

    // code proscreener RSI H
    mydivRSIH, ignored = CALL "Divergence RSI"[21, 70, 30]((high+low+2*close)/4)
    monRsi = rsi[21]((high+low+2*close)/4)
    i = 0
    WHILE mydivRSIH [i] <> 1 and i < 10 Do
    i = i + 1
    wend
    filtre= mydivRSIH [i]
    //screener [filtre and monRsi] (filtre as "mydivRSIH")
    screener [monRsi [i] < 30 and filtre] (i as "i")

    avec ce ProScreener RSI H => Je trouve 3 valeurs sur France PEA par exemple qui répondent à mon ProScreener. J’affiche i pour vérifier et pour SMTPC i=2 où je trouve bien mon indicateur « haussier » = 1 => tout va bien (voir Sreenshot SMTPC)

    ProScreener RSI B

    // code proscreener RSI Baissier
    ignored, mydivRSIB = CALL "Divergence RSI"[21, 70, 30]((high+low+2*close)/4)
    //monRsi = rsi[21]((high+low+2*close)/4)
    i = 0
    WHILE mydivRSIB [i] = 0 and i < 200 Do
    i = i + 1
    wend
    filtre= mydivRSIB [i]
    //screener [filtre and monRsi] (filtre as "mydivRSIH")
    //screener [monRsi [i] < 30 and filtre] (i as "i")
    screener [filtre] (i as "i")

    Mais lorsque je veux faire le test du RSI baissier là je ne capte aucune valeur sur France PEA par exemple alors que l’exemple suivant (Crédit Agricole) montre bien l’indicateur baissier (le triangle bas à -1 en bas à droite du screenshot). Pourtant je vais chercher loin dans le passé puisque que je teste jusqu’à i < 200.

    Il semble que mydivRSIB [i] soit tjs à 0 et donc ne retourne rien alors qu’avec l’exemple du Crédit Agricole l’indicateur devrait être = -1 quand i = 11 (voir screenshot CA)

    CA.png CA.png SMTPC.png SMTPC.png
    #61198 quote
    lamericain
    Participant
    Junior

    Bonjour Thierry,

     

    Lorsque j’utilise ton screener ci-dessous, qui concerne la relation entre le RSI et une éventuelle divergence, cela ne fonctionne pas et je reçois un message d’erreur indiquant que ” le fonction “divergence rsi” appelée via le screener n’existe pas.

    Je n’arrive pas à solutionner le problème.

    Pouvez-vous m’indiquer la bonne formulation svp?

    Merci par avance

    jacques

    // code proscreener RSI H
    mydivRSIH, ignored = CALL "Divergence RSI"[21, 70, 30]((high+low+2*close)/4)
    monRsi = rsi[21]((high+low+2*close)/4)
    i = 0
    WHILE mydivRSIH [i] <> 1 and i < 10 Do
    i = i + 1
    wend
    filtre= mydivRSIH [i]
    //screener [filtre and monRsi] (filtre as "mydivRSIH")
    screener [monRsi [i] < 30 and filtre] (i as "i")
    #94038 quote
    thierryRtime
    Participant
    New

    Bonjour Lamericain,

    désolé pour la réponse très tardive mais je viens de rejeter un oeil sur mes topics. Si toi aussi tu reviens sur tes topics voici la réponse.

    Il faut intégrer le code du “DIVERGENCES RSI” que tu as plus haut en créant cet indicateur (attention à garder le même nom) dans l’espace “Indicateurs & systèmes de trading” voir la capture d’écran jointe.

    En espérant avoir répondu.

    TB

    Capture-5.jpg Capture-5.jpg Capture-2-1.jpg Capture-2-1.jpg
    #94044 quote
    Nicolas
    Keymaster
    Master

    Sauf erreur de ma part l’indicateur renvoi 1 ou -1 selon la divergence haussière ou baissière. Que cherches-tu à faire précisément ? Chercher dans les X dernières périodes le signal haussier ou baissier, c’est bien cela ?

    #94449 quote
    thierryRtime
    Participant
    New

    Bjr Nicolas,

    oui c’est cela je cherche à avoir un signal d’alerte pour un éventuel achat ou vente quand je détecte une divergence de RSI sur un graphique à la semaine. Effectivement l’indicateur renvoie bien 1 ou -1  mais je souhaite trouver les configurations par des Proscreener RSI H pour haussier et RSI B pour baissier basés sur l’indicateur “Divergence RSI”. Seulement j’avoue avoir un peu de mal à programmer cela et j’aurai besoin d’un coup de main à trouver le bon code.

    En fait quand je teste dans le Proscreener RSI B … WHILE mydivRSIH [i] <>1 ça ne renvoie jamais rien c’est pourquoi je laisse 1 pour baissier < 30 et 2 pour haussier > 70

    Ci-dessous un exemple que je souhaite faire => trouver avec un Proscreener toutes les actions qui répondent au cas Mersen ou Chargeurs (voir image jointe) sur les X dernières périodes le signal.

    Bref tester et être alerté sur X dernières périodes le genre de scénario que l’on voit sur les 2 graphiques joints.

    C’est un peu compliqué à expliquer mais j’espère avoir été assez claire.

    A dispo pour plus de précision.

    Merci

    Mersen.jpg Mersen.jpg Chargeurs.jpg Chargeurs.jpg
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Aide sur test RSI – Proscreener


ProScreener : Scanners de Marché & Détection

New Reply
Author
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by thierryRtime
6 years, 11 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 04/29/2017
Status: Active
Attachments: 6 files
Logo Logo
Loading...