Hidden Gap`s VSA Volume

If Volume is less then the previous 20 intervals, Volume is gray.
If Volume is greater then the previous 40 intervals, Volume is black.
If Volume is less then the previous 2 intervals, Volume is purple.
If Volume is less then the previous, Volume is red.
If Volume is greater then the previous, Volume is blue.
Other - white.
You can add on the indicator a 2.5 Standart Deviation of a 20 period
Bollinger Band Shifted 3 periods forward.

You can change long to short in the Input Settings
Please, use it only for learning or paper trading. Do not for real trading.
Skrip open-source

Sejalan dengan semangat TradingView, penulis skrip ini telah mempublikasikannya secara open-source, sehingga para trader dapat memahami dan memverifikasinya. Salut untuk sang penulis! Anda dapat menggunakannya secara gratis, tetapi penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk dapat menggunakannya didalam sebuah chart.

Inggin menggunakan skrip ini pada chart?
Donate BTC: 13fXLkhWuGMXRmcvwkG2gaWKcnsiD88bwE


hi thank you for the indicator..is there any way we can add alert for specific type of volume bars...?
I'm getting an error "Orders's limit (3000) was reached"
HPotter Consultant
@Consultant, Try to use other time frame, more that do you used.
is it possible to add alert for volume grey black etc
I see two problems:
In this script I don't see where the boolian 'reverse' is updated, so I guess it remains false, therefore I guess 'possig' is only updated in line 35 to the current value of 'pos'.
There's also no strategy close, chances are that the long and short positions are forever open, perhaps I'm wrong here, I've little experience in strategy programming.
HPotter eykpunter
@eykpunter, boolean 'reverse' can be changed in the script parameters 'Trade reverse'
Yes, strategy all time in the market.