ZERO LAG LSM Conversion

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #199825 quote
    Alex72Alex72
    Participant
    New

    Bonjour à toutes et à tous.

    y- a t-il une possibilité de m’aider à convertir la moyenne mobile lissée de ce script de tradingview svp?

    Merci d’avance

    // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © veryfid
    
    //@version=4
    
    study(title = "ZLSMA - Zero Lag LSMA", shorttitle="ZLSMA", overlay=true, resolution="")
    length = input(title="Length", type=input.integer, defval=32)
    offset = input(title="Offset", type=input.integer, defval=0)
    src = input(close, title="Source")
    lsma = linreg(src, length, offset)
    lsma2 = linreg(lsma, length, offset)
    eq= lsma-lsma2
    zlsma = lsma+eq
    
    plot(zlsma, color=color.yellow, linewidth=3)
    
    #199829 quote
    NicolasNicolas
    Keymaster
    Legend

    Ci-joint le code de cette moyenne mobile:

    length = 32
    offset = 0
    src = customclose
    if barindex>length*2 then 
    lsma = linearregression[length](src)[offset]
    lsma2 = linearregression[length](lsma)[offset]
    eq= lsma-lsma2
    zlsma = lsma+eq
    endif
    
    return zlsma
    Alex72 thanked this post
    zlsma.png zlsma.png
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

ZERO LAG LSM Conversion


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Alex72 @alex72 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
4 years ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 08/29/2022
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...