TheLark

FREE INDICATOR: Laguerre Moving Average by TheLark

8197 48 1353
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: http://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 :)
Remove from Favorite Scripts Add to Favorite Scripts
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 )
Hello Lark:
First of all, thank you for this very helpful indicator! I am superimposing your LMA over my price chart, and it is providing excellent entry and exit signals. I have been also plotting the VWMA with it; producing a crude Vol-Price Conformation Indicator (VPCI). The question I have is it possible to add volume to the Laguerre MA calculation producing a LVWMA?
Thanks Michael
Reply
Hi The,

Have you used this currency pairs? If so what setting have you come up with you find work best? Thanks
Reply
How better is this indicator , than the Triple EMA provided by TV?
+1 Reply
joe_vijay PRO joe_vijay
Please see below for a comparison:

snapshot

+1 Reply
TheLark PRO joe_vijay
LMA is actually sort of mis-named, and I'd change it now if I could to LF (Laguerre Filter), it works more like a filter. It only uses 4 data points to come to it's number, which means it can have less inherent lag. Also the fact that it uses a gamma for adjustment rather than a lookback period means it can be easily auto adjusted for different market conditions while program trading.
+1 Reply
Every time I paste and try and save it says I need a title----it is clearly on there ????????

Any ideas ?
+1 Reply
Did you clear everything in the "new Script" box? I Sometimes forget to and end up with two title tags, it doesn't like that :) Other than that, hmmm
+1 Reply
ScottY TheLark
Yes I cleared all the data in the scripts box. I have tried it 6 or 7 different times with the same error message that the file needs a title. Love your indicator...would sure like to use it.
+1 Reply
Another idea -- whitespace sometimes messes things up, where are you copying the script from? If from the pastebin link above, I've found that copying the first rendition of the code (that has line numbers and a scroll bar), grabs unnecessary whitespace, try copying the rendition below that in the greyd out box
+1 Reply
ScottY TheLark
new info---getting a is a null
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
ประเทศไทย
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out