Skip to content

DevChima/BNF-Signal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 

Repository files navigation

BNF Signal πŸš₯

Python 3.8+ Financial Strategy License: MIT

BNF Signal is a quantitative market-observation engine designed to identify extreme mean-reversion events. It is a technical tribute to Takashi Kotegawa (alias: BNF), the legendary Japanese trader who mastered the art of buying market capitulation.


🎯 The Signal Logic

The engine monitors the divergence between a security's spot price and its 25-day Simple Moving Average (SMA). This specific metric was the cornerstone of BNF’s early success in the Japanese markets.

Mathematical Threshold

A signal is triggered when the price-to-SMA deviation of a stock meets the following condition:

$$\text{Price} \le \text{SMA}_{25} \times 0.80$$

Strategy Pillars:

  • Capitulation Detection: Identifying points where retail panic creates an "overstretched" rubber band effect.
  • High Liquidity Focus: By default, the scanner targets S&P 500 constituents to ensure efficient exits.
  • Mean Reversion: Anticipating a violent "snap back" toward the 25-day average once the selling pressure is exhausted.

πŸš€ Features

  • Real-time Scanning: Fetches the most recent daily closes for the S&P 500.
  • Automated Ticker Ingestion: Dynamically updates the watch list via Wikipedia's S&P 500 records.
  • Telegram Integration: Delivers actionable telemetry directly to your mobile device.
  • Batch Processing: Optimized yfinance calls to prevent IP rate-limiting.

πŸ› οΈ Installation & Setup

1. Clone the Repository

git clone [https://github.com/yourusername/bnf-signal.git](https://github.com/yourusername/bnf-signal.git)
cd bnf-signal

2. Install Dependencies

pip install yfinance pandas requests

3. Telegram configuration

Create a bot via @BotFather to get your API_TOKEN.
Get your CHAT_ID from @userinfobot.
Update the configuration section in bnf_signal.py.

About

Python-based market scanner implementing the Takashi Kotegawa (BNF) mean-reversion strategy. Monitors S&P 500 stocks for extreme 25-day moving average deviations with automated Telegram alerts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors