Fisher Least Square Moving Average FLSMA

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #194924 quote
    supertiti
    Participant
    Master

     

    Bonsoir à tous

    En faisant des recherches sur l’invers Fisher Transform j’ai trouvé ce code sur trading view.

    J’ai bien essayé de le traduire mais il y a des choses qui m’échappent …

    Quelqu’un aurait-il la bonté de le faire.

    https://www.tradingview.com/script/ZZ1LjoJC-Fisher-Least-Squares-Moving-Average/

    Bons trades

    //@version=4
    study("Fisher Least Squares Moving Average",shorttitle="FLSMA",overlay=true)
    length = input(100),src = input(close),n = bar_index
    //----
    b = 0.
    //----
    e = sma(abs(src - nz(b[1])),length)
    z = sma(src - nz(b[1],src),length)/e 
    r = (exp(2*z) - 1)/(exp(2*z) + 1) 
    a = (n - sma(n,length))/stdev(n,length) * r
    b := sma(src,length) + a*stdev(src,length)
    //----
    plot(b,title="FLSMA",color=#ff1100,linewidth=2,transp=0)
    FLSMA.jpg FLSMA.jpg
    #194955 quote
    Nicolas
    Keymaster
    Master

    Ci-dessous la traduction du code de la Fisher Least Squares Moving Average pour ProRealTime

    //Fisher Least Squares Moving Average
    length = 50
    src = customclose
    //----
    n = barindex
    //----
    if barindex>length then 
    e = average[length](abs(src - (b[1])))
    z = average[length](src-b[1])/e
    r = (exp(2*z) - 1)/(exp(2*z) + 1)
    a = (n - average[length](n))/std[length](n) * r
    b = average[length](src) + a*std[length](src)
    //----
    endif
    
    return b as "FLSMA"
    #194964 quote
    supertiti
    Participant
    Master

    Bonjour à tous,

    Rapide et efficace comme souvent , merci Nicolas pour ton implication suite aux nombreuses demandes de la communauté.

    Bonne journée et bons trades

    Je regarde ce que ça donne dans la foulée

    #194965 quote
    supertiti
    Participant
    Master

    Le code fonctionne nickel !

    Je joins un graphe de Totalenergies renforcé le 7 avril

    j’ai mis une période de 32, chacun son idée selon son horizon … ici l’horizon est dégagé la météo nous promet 34º, viva Andalucia !

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

Fisher Least Square Moving Average FLSMA


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
supertiti @supertiti Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by supertiti
3 years, 9 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 06/08/2022
Status: Active
Attachments: 2 files
Logo Logo
Loading...