Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
Find Out More Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Lentz Volatility Indicator for Amibroker (AFL)

Rating:
3 / 5 (Votes 2)
Tags:
amibroker

The Lentz Volatility Indicator is an inverted histogram of the difference between the 20-day ATR and its 20-day EMA. It can help discern environments conducive for non-directional option premium selling.

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("$LVI");
//Lentz Volatility Indicator

period = Param("EMA Period", 20, 1, 200, 1 );
ATRperiod = Param("ATR Period", 20, 1, 200, 1 );

SetForeign("^GSPC"); 
LVI = 0-(ATR(ATRperiod)-EMA(ATR(ATRperiod),period));
RestorePriceArrays();

Plot( LVI, _DEFAULT_NAME(), IIF(LVI>0, colorGreen, colorRed), styleHistogram );
Plot( LVI, "", colorblack, styleLine | styleNoLabel);

Plot(0,"",colorBlack,styleDashed | styleNoLabel);

_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.

Back