Candlestick Reversal Pattern Detector in Pine Script

By prompts.chat community (profile) · From prompts.chat · License: CC0 1.0 · Added October 28, 2026

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.

Fill in anything in [brackets] or {braces} with your own details first.

This is my prompt

Wrote this prompt? Tell me, and I will put your name on it. I check every claim by hand.

Report or remove
What is wrong?

More Team and office prompts

Team and officeRun the business

OpenAI Create Plan Skill

--- name: create-plan description: Create a concise plan.

You need: any AI chat (ChatGPT, Claude or Grok Bot)

By beratcmn

Team and officeRun the business

Comprehensive POS Application Development with FIFO and Reporting

--- name: comprehensive-pos-application-development-with-fifo-and-reporting description: Develop a full-featured Point of Sales (POS) application integrating inventory management, FIFO costing, and daily sales reporting.

You need: any AI chat (ChatGPT, Claude or Grok Bot)

By lalsproject

All Team and office promptsAll prompts

Want a prompt for your own work? Ask for one. Every prompt here is free.

Want this built for you? Get it built.