OPEN-SOURCE SCRIPT
Call to Action (MACD+Stoch) : By Akshat Gupta finance_sniper

Call to Action (MACD+Stoch)
By Akshat Gupta | @finance_sniper
Stop switching timeframes. This indicator gives you the complete MACD + Stochastic signal picture across 9 timeframes in a single table and tells you exactly what options action to consider based on the combined signal.
Built originally for Indian derivatives traders navigating Nifty, BankNifty, and MidcapNifty expiries, but works on any symbol on any exchange globally — stocks, indices, commodities, crypto, forex.
---
THE TABLE
Five rows. Nine timeframes. Everything you need in one glance.
Timeframes covered: 6M · 3M · 1M · 1W · 1D · 4hr · 1hr · 15min · 5min
| Row | Content |
|---|---|
| MACD | AZ/AS · AZ/BS · BZ/AS · BZ/BS — position of MACD line relative to zero and signal |
| Stoch Cross | Positive or Negative crossover status |
| Stoch %K | Raw value — green above 70, red below 30, grey in between |
| Status | Combined signal verdict for that timeframe |
| Call to Action | Specific options strategy implied by the signal |
MACD CODE REFERENCE
| Code | Meaning |
|---|---|
| AZ/AS | Above Zero · Above Signal → Strong Bullish |
| AZ/BS | Above Zero · Below Signal → Bull Weakening |
| BZ/AS | Below Zero · Above Signal → Bear Recovering |
| BZ/BS | Below Zero · Below Signal → Strong Bearish |
Stochastic Crossover:
- Positive → %K above %D, or %K above 80 (overbought momentum)
- Negative → %K below %D, or %K below 20 (oversold momentum)
COMPLETE SIGNAL LOGIC
MACD + Stoch = Status → Call to Action
──────────────────────────────────────────────────────────────────
AZ/AS + Positive = Buy → Buy Call / Sell Put
AZ/AS + Negative = Weak Hands Exit Buy → Sell Call
AZ/BS + Positive = Weak Buy → Buy Call / Sell Put
AZ/BS + Negative = Mild Sell → Sell Call
BZ/BS + Positive = Weak Hands Exit Sell → Sell Put
BZ/BS + Negative = Sell → Buy Put / Sell Call
BZ/AS + Positive = Mild Buying → Sell Put
BZ/AS + Negative = Weak Sell → Buy Put / Sell Call
COLOUR CODING
Status row:
- 🟢 Green → Buy
- 🔴 Red → Sell
- 🔵 Blue → Mild Buying / Weak Buy
- 🟡 Amber → Mild Sell
- 🟣 Purple → Weak Hands Exit Buy / Sell (exhaustion signals)
Call to Action row:
- 🟢 Green → Buy Call / Sell Put (bullish play)
- 🔴 Red → Buy Put / Sell Call (bearish play)
- 🟡 Amber → Sell Call (caution on longs)
- 🔵 Blue → Sell Put (caution on shorts)
MACD codes:
- 🟢 AZ/AS · 🔴 BZ/BS · 🟡 AZ/BS · 🟣 BZ/AS
Stoch %K:
- 🟢 above 70 (momentum) · 🔴 below 30 (oversold) · ⚪ neutral zone
HOW TO USE
Basic (current chart symbol):
Add to chart → leave the Underlying field blank → table auto-tracks whatever symbol the chart is on.
Track a different symbol:
Enter any valid TradingView symbol in the Underlying input field.
Examples: `NSE:NIFTY` · `NSE:BANKNIFTY` · `NSE:MIDCPNIFTY` · `NSE:RELIANCE` · `BINANCE:BTCUSDT`
The exchange prefix is automatically stripped in the table header — `NSE:BANKNIFTY` displays as `BANKNIFTY`.
Typical FNO workflow:
- Open your BankNifty options chart
- Set Underlying to `NSE:NIFTY` to see Nifty's MTF status alongside your trade
- Use the 1D and 4hr Call to Action as primary directional bias
- Use 15min and 5min for entry timing
- Look for **alignment across 3+ timeframes** before acting
SETTINGS
| Setting | Default | Options |
|---|---|---|
| Underlying | (current chart) | Any valid symbol |
| MACD Fast | 12 | Any integer |
| MACD Slow | 26 | Any integer |
| MACD Signal | 9 | Any integer |
| Stoch %K Length | 14 | Any integer |
| Stoch %D Smooth | 3 | Any integer |
| Stoch %K Smooth | 3 | Any integer |
| Table Position | Bottom Right | 9 positions |
| Text Size | Small | Tiny / Small / Normal / Large |
DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice, investment advice, or a recommendation to buy or sell any financial instrument. Options trading involves substantial risk of loss and is not suitable for all investors. All trading and investment decisions are solely your own responsibility. Past signals do not guarantee future results.
---------------------------------------------------------------------------------------------------------------------
@finance_sniper on X
By Akshat Gupta | @finance_sniper
Stop switching timeframes. This indicator gives you the complete MACD + Stochastic signal picture across 9 timeframes in a single table and tells you exactly what options action to consider based on the combined signal.
Built originally for Indian derivatives traders navigating Nifty, BankNifty, and MidcapNifty expiries, but works on any symbol on any exchange globally — stocks, indices, commodities, crypto, forex.
---
THE TABLE
Five rows. Nine timeframes. Everything you need in one glance.
Timeframes covered: 6M · 3M · 1M · 1W · 1D · 4hr · 1hr · 15min · 5min
| Row | Content |
|---|---|
| MACD | AZ/AS · AZ/BS · BZ/AS · BZ/BS — position of MACD line relative to zero and signal |
| Stoch Cross | Positive or Negative crossover status |
| Stoch %K | Raw value — green above 70, red below 30, grey in between |
| Status | Combined signal verdict for that timeframe |
| Call to Action | Specific options strategy implied by the signal |
MACD CODE REFERENCE
| Code | Meaning |
|---|---|
| AZ/AS | Above Zero · Above Signal → Strong Bullish |
| AZ/BS | Above Zero · Below Signal → Bull Weakening |
| BZ/AS | Below Zero · Above Signal → Bear Recovering |
| BZ/BS | Below Zero · Below Signal → Strong Bearish |
Stochastic Crossover:
- Positive → %K above %D, or %K above 80 (overbought momentum)
- Negative → %K below %D, or %K below 20 (oversold momentum)
COMPLETE SIGNAL LOGIC
MACD + Stoch = Status → Call to Action
──────────────────────────────────────────────────────────────────
AZ/AS + Positive = Buy → Buy Call / Sell Put
AZ/AS + Negative = Weak Hands Exit Buy → Sell Call
AZ/BS + Positive = Weak Buy → Buy Call / Sell Put
AZ/BS + Negative = Mild Sell → Sell Call
BZ/BS + Positive = Weak Hands Exit Sell → Sell Put
BZ/BS + Negative = Sell → Buy Put / Sell Call
BZ/AS + Positive = Mild Buying → Sell Put
BZ/AS + Negative = Weak Sell → Buy Put / Sell Call
COLOUR CODING
Status row:
- 🟢 Green → Buy
- 🔴 Red → Sell
- 🔵 Blue → Mild Buying / Weak Buy
- 🟡 Amber → Mild Sell
- 🟣 Purple → Weak Hands Exit Buy / Sell (exhaustion signals)
Call to Action row:
- 🟢 Green → Buy Call / Sell Put (bullish play)
- 🔴 Red → Buy Put / Sell Call (bearish play)
- 🟡 Amber → Sell Call (caution on longs)
- 🔵 Blue → Sell Put (caution on shorts)
MACD codes:
- 🟢 AZ/AS · 🔴 BZ/BS · 🟡 AZ/BS · 🟣 BZ/AS
Stoch %K:
- 🟢 above 70 (momentum) · 🔴 below 30 (oversold) · ⚪ neutral zone
HOW TO USE
Basic (current chart symbol):
Add to chart → leave the Underlying field blank → table auto-tracks whatever symbol the chart is on.
Track a different symbol:
Enter any valid TradingView symbol in the Underlying input field.
Examples: `NSE:NIFTY` · `NSE:BANKNIFTY` · `NSE:MIDCPNIFTY` · `NSE:RELIANCE` · `BINANCE:BTCUSDT`
The exchange prefix is automatically stripped in the table header — `NSE:BANKNIFTY` displays as `BANKNIFTY`.
Typical FNO workflow:
- Open your BankNifty options chart
- Set Underlying to `NSE:NIFTY` to see Nifty's MTF status alongside your trade
- Use the 1D and 4hr Call to Action as primary directional bias
- Use 15min and 5min for entry timing
- Look for **alignment across 3+ timeframes** before acting
SETTINGS
| Setting | Default | Options |
|---|---|---|
| Underlying | (current chart) | Any valid symbol |
| MACD Fast | 12 | Any integer |
| MACD Slow | 26 | Any integer |
| MACD Signal | 9 | Any integer |
| Stoch %K Length | 14 | Any integer |
| Stoch %D Smooth | 3 | Any integer |
| Stoch %K Smooth | 3 | Any integer |
| Table Position | Bottom Right | 9 positions |
| Text Size | Small | Tiny / Small / Normal / Large |
DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice, investment advice, or a recommendation to buy or sell any financial instrument. Options trading involves substantial risk of loss and is not suitable for all investors. All trading and investment decisions are solely your own responsibility. Past signals do not guarantee future results.
---------------------------------------------------------------------------------------------------------------------
@finance_sniper on X
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.