I would like to build a trading bot alert in PineScript that performs the following:
9-15 EMA Crossover:
When the 9-period EMA crosses above the 15-period EMA, it's a bullish signal. When the 9-period EMA crosses below the 15-period EMA, it's a bearish signal. Candle Pattern Confirmation:
After a bullish crossover, check for any of the following bullish candle patterns in the next 3 or 5 minutes: Hammer Bullish Engulfing Morning Star Bullish Piercing Pattern If any of these patterns are detected, trigger an alert
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.