TheLark

FREE INDICATOR: Laguerre Moving Average by TheLark

2822
About:
The Laguerre Average was discovered by John Ehlers.
It's a newer type of averaging that is meant to take out as much of the inherent lag that your typical EMA and SMA's give at the start of a major trend change.
So what you get is an average that turns more quickly at major trend changes, and doesn't get tripped up on the noise (as much).

Usage:
Simply use this in place of EMA or SMA averages, and integrate with your trading style!

By changing the gamma, you change the "length", play with it to see how the average reacts to different inputs, find something you like and run with it!
You can turn off the trend change dots if desired.

Grab the code here: pastebin.com/kiMNGrkZ

         ·´¯`·.¸¸.·´¯`· Feel free to follow me to keep up with my latest scripts! ·´¯`·.¸¸.·´¯`·
·´¯`·.¸¸.·´¯`· PLEASE THUMB UP OR STAR IF YOU LIKE THIS INDICATOR! ·´¯`·.¸¸.·´¯`·
                                   I'd like as many people as possible to get it :)
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?
study(title = "TheLark: Laguerre Moving Average", shorttitle="TheLark LMA", overlay=true)

//•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•//   
//                                             //
//            LAGUERRE MA BY THELARK           //
//                 ~ 2-11-14 ~                 //
//                                             //
//                     •/•                     //
//                                             //
//    https://www.tradingview.com/u/TheLark    //
//     (please do not remove this heading)     //
//                                             //
//•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•//

// The Laguerre Average was discovered by John Ehlers.
// It's a newer type of averaging that is meant to take out as much of the
// inherent lag that your typical EMA and SMA's give at the start of a major trend change.
// So what you get is an average that turns more quickly at major trend changes,
// and doesn't get tripped up on the noise (as much). 


//setups
h = high
l = low
//inputs
Gamma = input(0.77)
sd = input(true, title="Show dots?")
//calc
lag(g) =>
    p = (h + l)/2
    L0 = (1 - g)*p+g*nz(L0[1])
    L1 = -g*L0+nz(L0[1])+g*nz(L1[1])
    L2 = -g*L1+nz(L1[1])+g*nz(L2[1])
    L3 = -g*L2+nz(L2[1])+g*nz(L3[1])
    f = (L0 + 2*L1 + 2*L2 + L3)/6
    f
//plots
lma = lag(Gamma)
col =  lma > lma[1] ? #0094FF : #FF3571
up = lma > lma[1] ? 1 : 0
down = lma < lma[1] ? 1 : 0
plot(lma,linewidth=2,color=col)
plot(sd and cross(up,down) ? lma : na,style=circles, linewidth=4, color=col )