bhala-srinivash/nse-trading-skills

fibonacci-trading

Fibonacci retracement and extension trading for NSE/BSE equities.

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/bhala-srinivash/nse-trading-skills --skill fibonacci-trading

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

Fibonacci Trading

Fibonacci levels identify high-probability zones where price tends to react — for entries on pullbacks and targets on extensions.

Prerequisites

No dependencies required. Just provide a swing high and swing low price — Claude calculates all Fib levels instantly. Enhanced with Groww MCP (auto-identifies swings from candles) or yfinance.

Data Needed

  1. Swing high and swing low: From fetch_historical_candle_data or user-provided prices
  2. Current price: get_quotes_and_depth from Groww, or user-provided
  3. For precise calculation, you can compute in Python:
python
   diff = swing_high - swing_low
   levels = {
       "23.6%": swing_high - diff * 0.236,
       "38.2%": swing_high - diff * 0.382,
       "50.0%": swing_high - diff * 0.500,
       "61.8%": swing_high - diff * 0.618,
       "78.6%": swing_high - diff * 0.786,
   }

Retracement Levels (Entry Zones)

After a significant move up, price often pulls back to these levels before continuing:

LevelCharacterTrading Implication
23.6%Shallow pullbackStrong trend — buyers eager, enter aggressively
38.2%Normal pullbackHealthy trend — standard entry zone
50.0%Deep pullbackTrend weakening but viable — enter with caution
61.8%Golden ratioLast stand for the trend — high reward if it holds
78.6%Very deepTrend likely failed — avoid or use tight stop

For downtrend retracements (price bouncing up):

Same levels but inverted — measure from swing high down to swing low.

Extension Levels (Profit Targets)

After a retracement completes and price resumes the trend:

LevelUse
100%Measured move — equal to the prior swing
127.2%Conservative target — good for partial profit
161.8%Standard target — most common for swing trades
200.0%Extended target — for strong trends
261.8%Full extension — rare, only in powerful moves

Calculating Extensions

python
# For uptrend: price resumed from point C (retracement low)
ext_127 = C + (swing_high - swing_low) * 1.272
ext_161 = C + (swing_high - swing_low) * 1.618
ext_200 = C + (swing_high - swing_low) * 2.000

How to Draw Fibs

  1. Identify the swing: Find the most recent significant high and low (at least 5% move)
  2. Direction matters:
  • Uptrend retracement: Anchor at swing low, drag to swing high
  • Downtrend retracement: Anchor at swing high, drag to swing low
  1. Use the right swing: The most recent completed swing, not one still in progress
  2. Multiple swings: You can draw Fibs from different timeframes. When levels from different swings overlap, that's a confluence zone (very strong).

Confluence Zones

The most powerful Fibonacci levels are where they align with other technical factors. These zones have the highest probability of price reaction.

Confluence CombinationStrength
Fib level aloneModerate
Fib + horizontal S/RStrong
Fib + moving average (SMA50/200)Strong
Fib + trendlineStrong
Fib + S/R + MAVery strong
Fib from multiple timeframes overlappingVery strong

Practical Examples

  • Fib 38.2% from daily swing aligns with SMA50 → strong buy zone
  • Fib 61.8% from weekly swing aligns with horizontal support from 3 months ago → high-probability entry
  • Fib extension 161.8% aligns with a round number (Rs.2,000) → likely profit target

Fibonacci Trading Rules

  1. Don't use Fibs in isolation — they work best as confirmation alongside S/R, volume, and indicators
  2. Zone, not line — treat each level as a zone (±1-2%), not a precise price
  3. Wait for reaction — don't blindly buy at a Fib level. Wait for a reversal candle (hammer, engulfing, etc.)
  4. Strongest entries: Fib 38.2% to 61.8% zone in a healthy trend with volume confirmation
  5. If 78.6% breaks: The trend is likely over — exit or reverse
同じリポジトリから

関連する Skills

すべての Skills
bhala-srinivash
コミュニティ

stop-loss-strategies

Stop-loss placement strategies for NSE/BSE equity trades. Covers structure-based, ATR-based, support/resistance-based, and moving average-based stops with buffer rules and hard limits. Use when the user asks: "where to set stop-loss", "stop-loss for [stock]", "how to protect this trade", "what's a good stop level", "risk management for [position]", or any question about initial stop-loss placement for Indian equity trades.

1時間の導入数
1
GitHub Stars
63
更新日
3月5日
bhala-srinivash
コミュニティ

multi-timeframe-analysis

Multi-timeframe analysis using the 3-screen method for NSE/BSE equities. Higher timeframe sets bias, primary timeframe identifies setup, lower timeframe times the entry. Includes confluence scoring system. Use when the user asks: "what's the weekly trend", "daily vs weekly", "multi-timeframe check", "higher timeframe analysis", "3-screen analysis", "trend on different timeframes", "weekly bias for [stock]", or any question about analyzing a stock across multiple timeframes.

1時間の導入数
1
GitHub Stars
60
更新日
3月5日
bhala-srinivash
コミュニティ

nse-trading-toolkit

Master orchestrator for Indian NSE/BSE equity trading analysis via Groww broker. Routes to specialized framework skills: technical analysis, position sizing, stop-loss, trailing stops, risk-reward, multi-timeframe, RSI divergence, and Fibonacci trading. Use this skill whenever the user asks to: analyze a stock, check a position, decide buy/sell/hold, plan entries/exits, or do any comprehensive trading analysis for Indian equities. Triggers on: "analyze [stock]", "should I buy/sell [stock]", "che

1時間の導入数
1
GitHub Stars
60
更新日
3月5日
bhala-srinivash
コミュニティ

position-sizing

Calculate optimal position sizes for NSE/BSE equity trades using fixed fractional, ATR-based, and Kelly criterion methods. Includes portfolio constraints and leverage adjustments. Use when the user asks: "how many shares to buy", "position size for [stock]", "how much to invest in [stock]", "calculate lot size", "risk per trade", or any question about how much capital to allocate to a trade. Also triggers on portfolio allocation and leverage sizing questions.

1時間の導入数
1
GitHub Stars
60
更新日
3月5日