The script detects candlestick patterns and stats related to the pattern. We have included 44 candle patterns to select. You can get stats for any timeframe and holding period. If a particular pattern is not available, the script will give an error. What is available. You can view the composite stat in the table panel. Pattern Name: The pattern name Pattern Type: Bullish(🟢)/ Bearish(🔴)/ Neutral(⚫) Total Found: Number of time pattern appeared in the chart Success: Number of time the pattern generated a positive return Failure: Number of time the pattern generated a negative return Highest Return: Highest return generated by the pattern (assuming trade taken at the open of the next candle and closed at the close price of the last candle of the holding period). Lowest Return: Lowest return generated by the pattern Average return: Average return generated by the pattern Total Up Breakout: Number of time patterns take an up breakout(break above high). Max Up Movement: Maximum up movement recorded by the pattern(distance between pattern high and highest high candle in given holding period). Min up movement: Minimum up movement recorded by the pattern. Average Up Movement: Average up movement recorded Total Down Breakout: Number of time patterns take a down breakout(break below low). Max Down Movement: Maximum down movement recorded by the pattern. Min Down Movement: Minimum down movement recorded by the pattern. Average Down Movement: Average down movement recorded You can find the number of bars tested, start date and end date in the panel.
You can visually inspect the candle pattern performance in the chart. Available options: Detect Trend: You can detect trends based on SMA 50, SMA 50/200 or No detection. Stat bars: Holding period after detecting the pattern. Panel position: Position the stat table as per your choice. Select pattern: Select available predefined pattern. Label color: choose color according to your choice.