This indicator is built based on the video by ForexSignals TV (no association on my part with them), published on July 5th, 2019 titled "SIMPLE & PROFITABLE Trend-following Forex Trading Strategy!"
The basic premiss is to use the 8,13,21 EMAs, make sure they have not crossed in the previous 3 bars, then look for engulfing bars or pinbars for the current direction. Meaning if the trend is up, look for bullish engulfer or pinbars, and bearish ones if the trend is down. Also, the pin must have crossed the 8EMA but not the 21EMA.
When determining to act on the signal, the video recommends only executing a buy/sell if the the current trend in the anchor chart is trending in the same direction (trending up only enter buys, trending down, only enter sells).
The script overlays a BUY or SELL tag under the bar that meets the above criteria.
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.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.