TradingView
TheLark
11 feb 2014 22:55

FREE INDICATOR: Laguerre Moving Average by TheLark 

SPDR S&P 500 ETF TRUSTArca

Beskrivning

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 :)
Kommentarer
joe_vijay
How better is this indicator , than the Triple EMA provided by TV?
joe_vijay
Please see below for a comparison:


TheLark
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.
ScottY
Every time I paste and try and save it says I need a title----it is clearly on there ????????

Any ideas ?
TheLark
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
ScottY
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.
TheLark
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
ScottY
new info---getting a is a null
ScottY
saved file anyways---tried to run it and said failed to compile
ScottY
Lark
Got it---used RAW data below- Yea !
Mer