TradingView
HPotter
Jun 21, 2017 6:06 AM

Hidden Gap`s VSA Volume 

E-mini S&P 500 FuturesCME

Description

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.
Comments
ARCHIERAT
is it possible to add alert for volume grey black etc
Nanda86
hi thank you for the indicator..is there any way we can add alert for specific type of volume bars...?
Consultant
I'm getting an error "Orders's limit (3000) was reached"
HPotter
@Consultant, Try to use other time frame, more that do you used.
eykpunter
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, boolean 'reverse' can be changed in the script parameters 'Trade reverse'
Yes, strategy all time in the market.
More