screener avec TMMS oscillator (Trading Made More Simpler)

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #119787 quote
    sally31120
    Participant
    Average

    Bonjour Nicolas,
    C’est indicateur (TMMS oscillator (Trading Made More Simpler) semble très intéressant mais je n’ai pas les compétences pour l’exploiter.
    Serait-il possible de connaitre le code pour en faire des screeners
    1) Passage du point orange en point vert
    2) Point vert avec passage histogramme gris > 0
    3) Point vert avec passage histogramme vert > 0
    Merci d’avance

    #119823 quote
    Nicolas
    Keymaster
    Master

    Le code du screener ci-dessous semble correspondre à ces conditions, à tester :

    //PRC_smTMMS-Oscillator_v3.0 | screener
    //https://www.prorealcode.com/topic/tmms-oscillator-trading-made-more-simpler/
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    
    // --- settings
    RSIPeriod=14
    Stochastic1PeriodK  = 8
    Stochastic1PeriodD  = 3
    Stochastic2PeriodK  = 14
    Stochastic2PeriodD  = 3
    DrawHullTrend = 1 //(1=true ; 0=false)
    HullPeriod     =12
    HullDivisor    =2
    // --- end of settings
    
    once threshold=50
    once ilimit=0
    
    bufRSI=rsi[RSIPeriod]
    bufStoch1=stochastic[Stochastic1PeriodK,Stochastic1PeriodD]
    bufStoch2=stochastic[Stochastic2PeriodK,Stochastic2PeriodD]
    bufRSI=bufRSI-threshold
    bufStoch1=bufStoch1-threshold
    bufStoch2=bufStoch2-threshold
    
    bufHistUP=0
    //bufHistDN=0
    bufHistNO=0
    if(bufRSI>ilimit and bufStoch1>ilimit and bufStoch2>ilimit) then
    bufHistUP=bufStoch2
    else
    if(bufRSI<ilimit and bufStoch1<ilimit and bufStoch2<ilimit) then
    //bufHistDN=bufStoch2
    else
    bufHistNO=bufStoch2
    endif
    endif
    
    if (DrawHullTrend) then
    inner = 2*weightedaverage[ round( HullPeriod/HullDivisor ) ](close)-weightedaverage[HullPeriod](close)
    MMHULL=weightedaverage[ round( sqrt(HullPeriod) ) ]( inner )
    //r=255
    g=155
    if MMHULL>MMHULL[1] then
    //r=0
    g=255
    endif
    endif
    
    //return bufHistUP coloured(0,128,0) style(histogram) as "Up", bufHistDN coloured(255,0,0) style(histogram) as "Dn", bufHistNO coloured(169,169,169) style(histogram) as "No",0 coloured(168,168,168) style(point,1) as "level0", 20  coloured(168,168,168) style(dottedline,1) as "level20", -20  coloured(168,168,168) style(dottedline,1) as "level-20"
    
    c1 = g=255 and g[1]<>255 //Passage du point orange en point vert
    c2 = g=255 and bufHistNO crosses over 0  //Point vert avec passage histogramme gris > 0
    c3 = g=255 and bufHistUP crosses over 0  //Point vert avec passage histogramme vert > 0
    
    screener[c1 or c2 or c3]
    
    #119850 quote
    sally31120
    Participant
    Average

    Bonjour,

    Toujours aussi réactif.

    Merci Nicolas

    #163744 quote
    Manu L.
    Participant
    Average

    Comment pourrait-on modifier le code pour screener au mois ?

    Merci d’avance

    #163843 quote
    Manu L.
    Participant
    Average

    Si je suis en journalier et que je souhaite screener à J-1, quelle condition faut-il modifier ?

    #163861 quote
    Nicolas
    Keymaster
    Master

    En testant les valeurs des variables de la barre précédente :

    screener[c1[1] or c2[1] or c3[1]]

    voir formation sur les variables: https://www.prorealcode.com/lessons/les-variables/

    #163873 quote
    Manu L.
    Participant
    Average

    merci Nicolas.

    Quelque bases en prog mais surtout autodidacte 🙂

    #163875 quote
    Manu L.
    Participant
    Average

    Existe-t-il la même chose pour les Screeners.

    L’idée est : au lieu de combiner les résultats de différents screnners liés à des indicateurs dans un tableau excel pour en tirer un TCD, avons nous d’utiliser plusieurs screnners dans un seul ou intégrer plusieurs indicateurs dans un seul screener ?

    Merci

    #163905 quote
    Nicolas
    Keymaster
    Master

    Oui c’est bien entendu possible, on peut combiner plusieurs indicateurs dans le même code de screener, si il s’agit de codes d’indicateurs personnalisés, soit on recopie les codes à l’intérieur du screener, soit on utilise des CALL.

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

screener avec TMMS oscillator (Trading Made More Simpler)


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
sally31120 @sally31120 Participant
Summary

This topic contains 8 replies,
has 2 voices, and was last updated by Nicolas
4 years, 11 months ago.

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