Code Dynamic Zone Stochastique

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40451 quote
    HerveS_67
    Participant
    Veteran

    Bonjour,

    Je recherche le code Dynamic Zone Stochastique.

    J’ai essayé de modifier celui Dynamic Zone RSI (https://www.prorealcode.com/topic/dynamic-zone-rsi/), mais les résultats sont différents de l’original Dynamic Zone Stochastique…

    Merci

    #40453 quote
    Nicolas
    Keymaster
    Master

    Voilà le code du dynamic zone stochastic :

    Dynamic Zone Stochastique:
    
    // Variables
    
    Once periodmoy = 20
    
    // End variables
    
    
    
    REM Dynamic Zone Stochastique
    
    REM Paramètres
    // periodmoy = Nombre de périodes pour le calcul du de la MM du Stochastique
    
    coeff=0.8
    
    monStoch = Stochastic[14,3](close)
    ind = SQUARE(monStoch)
    ind1 = Average[periodmoy](monStoch)
    ind2 = Average[periodmoy](ind)
    
    variance = ind2 - SQUARE(ind1)
    ecart = SQRT(variance)
    
    UpBand = ind1 + coeff*ecart
    DownBand = ind1  - coeff*ecart
    
    RETURN monStoch AS "Stochastique", UpBand COLOURED (0, 255, 0) AS "UpBand", DownBand COLOURED (255, 0, 0) AS "DownBand"
    
    HerveS_67 thanked this post
    #40458 quote
    HerveS_67
    Participant
    Veteran

    C’est bien le code que j’avais…..

    Cela fonctionne avec le réglage Dynamic Zone Stochastique (14) & Stochastic[14,3](close)

    Mais quand je souhaite mettre le Dynamic Zone Stochastique EN (8) et le Stochastic EN [8,3](close), cela ne correspond plus !?!

    2017-07-12_164054.png 2017-07-12_164054.png
    #40966 quote
    Nicolas
    Keymaster
    Master

    C’est normal, le stochastic[14,3] ne change jamais dans le code, c’est la valeur “periodmoy” qui est modifiable.

    HerveS_67 thanked this post
    #40974 quote
    HerveS_67
    Participant
    Veteran

    Mais oui, mais bien sûr !!!! Quel c*** je suis :=))))

    Merci beaucoup Nicolas

    #86736 quote
    FouTrading
    Participant
    New

    Nicolas, thanks a lot for you support. It works very well

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

Code Dynamic Zone Stochastique


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
HerveS_67 @herves_67 Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by FouTrading
7 years, 2 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 07/12/2017
Status: Active
Attachments: 1 files
Logo Logo
Loading...