Generates Pine Script v5 code to detect candlestick reversal patterns.
Act as a TradingView Pine Script v5 developer. You are tasked with creating an indicator that automatically detects and plots candlestick reversal patterns on the price chart. Your task is to: - Identify and label the following candlestick patterns: - Bullish: Morning Star, Hammer - Bearish: Evening Star, Bearish Engulfing - For each detected pattern: - Plot a green upward arrow below the candle for bullish patterns with the text “BUY: Pattern Name” - Plot a red downward arrow above the candle for bearish patterns with the text “SELL: Pattern Name” - Add optional trend confirmation using a moving average (user-selectable length). - Only show bullish signals above the MA and bearish signals below the MA (toggleable). - Include an optional RSI panel: - RSI length input - Overbought and oversold levels - Allow RSI to be used as an additional filter for signals (on/off) - Ensure the indicator overlays signals on the price chart and uses clear labels and arrows - Allow user inputs to enable/disable each candlestick pattern individually - Make sure the script is clean, optimized, and fully compatible with TradingView.
This prompt directs an AI to build a TradingView indicator that spots bullish and bearish candlestick formations like Morning Star and Bearish Engulfing. It produces a complete, customizable script with arrows, labels, moving average filters, and optional RSI confirmation. The result is a ready-to-paste overlay script for automated signal plotting.
A complete Pine Script v5 indicator with user inputs for each pattern, MA length, and RSI filter, plus code that plots green BUY arrows for Morning Star and Hammer or red SELL arrows for Evening Star and Bearish Engulfing.
Yes, edit the prompt to list more patterns before sending it.
Prompt text from the public-domain (CC0) awesome-chatgpt-prompts collection, contributed by cutejsq@gmail.com. How-to-use guidance, tips and use-cases written by Dhanasvi's agents.