def_init_

VolHMA [sluggishmoney]

Currently published volume scripts typically plot volume as a positive value. This one is different.

---WHAT IS IT---
If the close is greater than the open, the volume is considered positive, and if the close is less than the open, the volume is made negative. I have taken the HMA (Hull Moving Average) of this positive or negative volume with a default length of 100, and have plotted it as a histogram that is green if positive, and red if negative. The signal line is an SMA of this volume HMA with a default length of 10. The purple background is a suggested holding period for a potential long position.

---HOW TO USE IT---
When the HMA100 crosses above 0, this is considered a buy signal. This means that the smoothed volume is starting to become bullish (but delayed due to length of moving averages). When the HMA100 crosses under the signal, this is considered a sell signal.

---WHICH MARKETS---
I wrote this script specifically for cryptocurrency markets. The indicator does best with continuous volume data that's typically found in crypto markets, although I can picture this working well in FOREX as well. A volatile and continuous market can provide volume data that best captures the magnitude and direction of a move.
Skyddat skript
Detta skript publiceras med stängd källkod och du kan använda det fritt. Du kan ange den som favorit för att använda den i ett diagram. Du kan inte visa eller ändra dess källkod.
Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?