TradingView
LazyBear
22 Th04 2014 14:53

Indicator: Volatility Quality Index [VQI] 

Mô tả

Volatility Quality Index (VQI), by Thomas Stridsman, points out the difference between bad and good volatility in order to identify better trade opportunities in the market.

This plots 3 lines:
- Red line is the VQI (actually, sum of VQI).
- Green line is the 9-period SMA of sum_of_VQI.
- Orange line is the 200-period SMA of sum_of_VQI.

Stridsman suggested to buy when VQI has increased in the previous 10 bars (use the SMAs) and sell when it has decreased in the previous 10 bars. IMO, use this with your other indicators as a confirmation signal.

More info: 3pips.com/volatility-quality-index-vq/

To use this indicator in your charts, click on "Share" button (top right on the chart). Click on "Make it mine" button on the dialog that pops up. Now, you will have a copy of this chart with the indicator's source code in it. Click on "{}" to open the source code of VQI_LB and save it to your custom scripts section.
Bình luận
QuantitativeExhaustion


Thanks! Works really well. Short Length trigger and long length trigger
QuantitativeExhaustion
I'll be using this one for long call entries.
LazyBear
I have sent you a pm reg posting some real life usecases here. Please let me know what you think.
LeMoussel
Interesting... Thanks ;)

3pips.com is down. What do you mean by "buy when VQI has increased in the previous 10 bars (use the SMAs) and sell when it has decreased in the previous 10 bars."
Is this:
xvqi10 = sma(vqi_sum, 10)
bullish = vqi_sum > xvqi10
bearish = vqi_sum < xvqi10
if (bullish)
strategy.entry("Buy", strategy.long)
if (bearish)
strategy.entry("Sell", strategy.short)

Can you give a sample code?
magarto
Mmm, interesting... thanks ;)
LazyBear
yw :)
QuantitativeExhaustion
Type : Indicator, Name : Volatility Quality Index
Variables:
VQI(0),
SumVQI(0);

If TrueRange <> 0 and (High - Low) <> 0 Then
VQI = ((Close - Close[1]) / TrueRange + (Close - Open) / (High - Low)) * 0.5
Else
VQI=VQI[1];
VQI = AbsValue(VQI) * ((Close - Close[1] + (Close - Open)) * 0.5);
SumVQI = SumVQI + VQI;
Plot1(SumVQI,"");
Plot2(Average(SumVQI,9),"");
Plot3(Average(SumVQI,200),"");

try plugging in this ... I get a much different look
LazyBear
This is the same. Plz check ur pm.
cnws02
Hello LazyBear,
I'm following on your request to drop a note when modifying your script.
I converted it to pine v5. I'm not 100% confident it's perfect, but it gives me the same results as your original code.
You can find it here: pastebin.com/QfPj7CCg
Thank you for your amazing sharing.
Claude.
UnknownUnicorn40403838
fantastic lazy your so brilliant love this and everything else you put out for everyone to grow within the tradingview community cheers and blessings
Thêm nữa