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.
Open-source Skript

Ganz im Sinne von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es verstehen und überprüfen können. Ein Hoch auf den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln. Sie können das Skript den Favoriten hinzufügen, um es auf dem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?
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.