OPEN-SOURCE SCRIPT

VWAP/MVWAP/SMA CROSSOVER

Updated
To use this indicator is simple.

When the VWAP (Thick Yellow) AND the two SMA (Orange and thin Yellow) cross above the MVWAP (Purple) then you will be in a uptrend that could possibly continue upwards. The opposite is true if you are looking a short opportunity, wait for the three other lines to cross under the MVWAP and you should be in a downtrend that could possibly continue downwards

Of course as with all indicators not every signal will be 100% accurate there is no way to predict human emotions when it comes to trading but based on the VWAP strategy used in other markets this is the closest I could get.

Note: Don't relay completely on this indicator to think for you. Use other forms of TA to confirm all positions before entering. And if the candles start trending the opposite direction after a lets say a mini pump/dump then the signal was false.

Finally this was made according to the 15 minute chart. I did not plan on remaking it for any other timeframes as I have left the code open for you to tweak and the setting are free to adjust aswell.

Q/A

Q: Does it repaint?
A: No, this is based on moving averages as far as I know they don't repaint.

Q: How did you come up with this indicator?
A: Went on youtube looking for trading strategies other and the usual EMA crosses and found a VWAP & EMA strat. I added the MVWAP and played with the numbers until I found something that I liked.

Q: How long have you been trading/learning pinescript?
A: Been trading less than a two months and pinescript about a month and a half.
Release Notes
Fixed the code so that the Long/Short alerts only alert at the beginning of the new trend, previously it was alerting every bar corresponding to the color of the trend.
crossovermvwapSimple Moving Average (SMA)smaVolume Weighted Average Price (VWAP)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer