Difficultés sur création d'un SCREENER MMHULL+RSI

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #71404 quote
    Matt B
    Participant
    Average

    Bonjour à tous,

    J’ai quelques difficultés pour ajouter un indicateur dans le screener ci-dessous.

    Je tiens à préciser que c’est un screener basé sur la MMHULL et le RSI pour trader à la baisse, en libre accès publié par SohoCool sur son site et dont je remercie grandement au passage.

    J’aimerais rajouter à ce screener un indicateur dont voici le code ci-dessous : c’est un indicateur Heikin Ashi qui annonce les retournements des bougies.

    Je vous remercie pour votre aide

     

    HAturn = 0
    
    IF BarIndex = 0 THEN
    XClose = TotalPrice
    XOpen = (Open + Close) / 2
    ELSE
    XClose = TotalPrice
    XOpen = (XOpen[1] + Xclose[1]) / 2
    ENDIF
    
    if xclose>xopen and xclose[1]<xopen[1] then
    HAturn = 1
    elsif xclose<xopen and xclose[1]>xopen[1] then
    HAturn = -1
    endif
    
    return HAturn
    Et ci-dessous le code Heikin Ashi qui ne fonctionne pas pour l'intégrer au screener 
    
    
    
    
    
    
    
    BarIndex Inside Bars
    
    c1= low[0] > low[1]
    insidebar = c1
    screener[insidebar]

     

    Le screener en question

    ////////////////////cours de cloture
    c3=(close>1.0)
    
    ///////////////////////////////////////////////////////
    ////////variable rsi de mmhull
    
    p=10
    q=5
    
    ///////////////////////////////////////
    REM Moyenne Mobile de HULL
    
    demiP = round(P/2)
    temp = 2*WeightedAverage[demiP](close) - WeightedAverage[P](close)
    racineP = round(SQRT(P))
    MMHULL = WeightedAverage[racineP](temp)
    REM Fin Moyenne Mobile de HULL
    
    arsi=RSI[Q](MMHULL)
    
    c4=(arsi < arsi[1] and arsi[1]> arsi[2] )
    
    ///////////////////
    
    //////////////////////////////////////////critere = % variation
    criteria = ((close/close[1])-1)*100
    
    ////////////////////////////////////////////////////////////////////
    screener[c1 and c2 and c3 and c4](criteria as"%variation")
    
    ////fin du screener
    
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Difficultés sur création d'un SCREENER MMHULL+RSI


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
Matt B @matt-b Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 05/26/2018
Status: Active
Attachments: No files
Logo Logo
Loading...