Measuring Bullish Strength from a Single Candlestick

TL;DR: The bullish strength indicator converts a single candlestick's open-to-low distance (defense) and close-to-high distance (offense) into a value to judge how aggressively major players are attacking, but it is not an entry signal and works only as a filter for deciding whether to lean long or short in day trading.

Key ideas

  • Bullish strength has two parts: the smaller the open-to-low distance as a share of the high-low range, the stronger the defense; the smaller the close-to-high share, the stronger the offense. The strongest defense is when the open is the low of the day.
  • In code, subtract each distance share from 100 to get attack strength and defense strength, average the two into bullish strength, then take a moving average (the period is adjustable; the demo uses 5 days) so the curve does not swing too much from day to day and distort interpretation.
  • When the high equals the low, the denominator is zero and the indicator breaks, so an if function checks first and returns the neutral value 50 when they are equal.
  • Longsteel's bullish strength is mostly above the zero line, meaning major players are attacking aggressively and closing near the high; Acbel stays below the zero line for long periods, a common pattern of major players pushing the price up and quietly selling, leaving closes with upper shadows or black candles.
  • Bullish strength cannot be used directly as an entry signal, but it works as a filter when picking day trading stocks: if it is positive over the long term, favor going long; if it is negative over the long term, shorting is stronger.
量化交易科學園區 - 江加宏Length 10:42Quant Trading Science Park
Episodes
  1. Mon, Nov 28Custom SwingHighBar: Finding Perfect Peaks with Rising Left Side and Falling Right Side
  2. Sat, Dec 31Automatically Detecting an M-Top with XScript: Swing Highs, Neckline and Multiple Filter Conditions
  3. Thu, Mar 16Detecting Volume-Price Divergence with Code: Comparing Price and Volume at Two Swing Highs
  4. Wed, Mar 29Recreating the Day-Trading Three Lines and a Short Alert for Breakouts That Fall Back, Using XS
  5. Tue, Apr 11RSI Bearish Divergence Algorithm and Tolerant Sampling: Syncing Price Highs with Indicator Highs
  6. Thu, Apr 20Measuring Bullish Strength from a Single Candlestick
  7. Fri, Apr 28Manual Entry, Automatic Exit: Using XQ Semi-Automated Trading to Free Up Office Workers
  8. Sun, May 14Automated Trading Without Coding Skills: Split a Strategy into Four Building Blocks of Stock Selection, Entry, Exit and Position Control
  9. Mon, Jun 5Is a High-Volume Long Upper Shadow a Reversal or a Bullish Shakeout? A 3-Year Backtest
  10. Sat, Jun 17Picking Stocks at the Second-Wave Breakout: Big Prior Rally, Low-Volume Consolidation, Then a High-Volume Long Red Candle
  11. Wed, Sep 23Disposition stocks no longer pull back under the new rules: buy those that close strong on day 1 and sell on day 5
  12. Wed, Oct 7A Live Trading Strategy Under the New Disposition Stock Rules: Buy on Day 1, Sell on the Last Day, and Use Stop-Losses
  13. Wed, Oct 21Foreign Capital Rotates Into Defensive Stocks, and a Review of Live Disposition Stock Trades
  14. Wed, Oct 28SDT Shared Variables: Fixed Memory That Saves Resources and Lets Instruments in the Same Strategy Pass Data to Each Other
  15. Wed, Nov 4Disposition Stock Strategy Flips From Bull to Bear: Why It Is Paused When the Market Weakens
  16. Wed, Nov 18Auditing Online Course Strategies with AI: Out-of-Sample Backtesting and Building Your Own XQ Minute-Bar Database
  17. Wed, Nov 25Options Long Straddle Backtest: Trading It Every Day Loses Over the Long Run, With Chances to Profit Only in High-Volatility Periods
▶ Watch the original on YouTube
Ask AI about this episode

Copy the prompt, paste it into an AI service, and add the question. The AI reads the notes on this site and links to the page and the video timestamps.

Or open directly:ChatGPTClaudeGrokPerplexity

Section summaries

  1. 0:05How a Single Candlestick Defines Bullish Strength

    Before writing the indicator, the definition of bullish strength must be clear. Taking a red candlestick as an example, the smaller the open-to-low distance share, the stronger the defense; the smaller the close-to-high distance share, the stronger the offense. This forms the basis of the indicator design.

    ▶ Watch from here
    Slide 1/2: How a Single Candlestick Defines Bullish StrengthSlide 2/2: How a Single Candlestick Defines Bullish Strength
  2. 2:15Coding the Indicator and Handling Division by Zero

    Attack strength and defense strength are each calculated by subtracting the distance share from 100, then averaged into bullish strength, and a 5-day moving average smooths the curve. To avoid a division-by-zero error when the high equals the low, an if function checks first and returns the neutral value 50 when they are equal.

    ▶ Watch from here
    Slide: Coding the Indicator and Handling Division by Zero
  3. 7:45Longsteel and Acbel Examples and Use as a Filter

    After the chart settings are done, Longsteel and Acbel serve as examples: Longsteel's bullish strength is mostly above the zero line, meaning major players are attacking aggressively, while Acbel stays below the zero line for long periods. Bullish strength is not an entry signal but a filter for judging whether to lean long or short in day trading.

    ▶ Watch from here

This page summarizes the video; it is not an official transcript. Original video: Measuring Bullish Strength from a Single Candlestick (量化交易科學園區 - 江加宏), copyright belongs to the original creator.