This is my first attempt at producing a strategy in Pine Script. I am NOT a professional coder. I'm not even a good coder at that. I've only started Pine Script coding since September 2019. I am teaching myself. This script is far from finished. I need to tweak a number of things about this script. Namely: Add a validity window to the 'trigger bar' condition....
Use heikin ashi candles, only take longs if line is aiming up and shorts if line is aiming down. Only enter on a bullish/bearish engulfing candle. Enjoy!
This script (idea) is intended for intraday use--Specifically 5 min bars/candles. It essentially tells you the support if a stock is bullish or the resistance if a stock is bearish. If you buy or sell around/in the cloud, you are ensured to be getting (around)VWAP price. Enjoy. Happy Holidays