5.1 — Theta Decay — Time Is Money, Literally
Theta Decay — Time Is Money, Literally
Of course. Here is the full lesson content, written in the requested tone and format.
COURSE: Pakistan Ka Pehla Professional Trading Bot Course
MODULE 5: Strategy Development — Theta Sniper Aur Geo Scout Build Karna
LESSON 5.1: Theta Decay — Time Is Money, Literally
Duration: 30 minutes
Assalam-o-Alaikum, developers. Welcome to Module 5. Pichlay modules mein humne bot ka infrastructure, data pipelines, aur execution logic set kar liya hai. Ab asal kaam shuru hoga — strategy development.
Aur hum shuru karengay uss wahid strategy se jisne Taqi ko ab tak profit mein rakha hai. Uske saaray fancy AI models, saaray complex indicators, sab side pe. Uska jo chota sa +$20 ka profit hai, woh sirf aur sirf Theta Sniper se aaya hai. Isliye, sab se pehle yeh seekho. Yeh woh foundation hai jispe tumhara bot paisa banayega.
Theta Kya Cheez Hai? Scene Kya Hai?
Forget all the complex financial definitions. Bilkul asaan lafzon mein samjho.
Theta ek pighalti hui baraf ki cube hai.
Imagine karo tumhare paas ek baraf ka cube hai. Uss cube ki ek intrinsic value hai (woh paani hai) aur ek time value hai (woh thanda hai). Jaise jaise waqt guzarta hai, woh pighalta rehta hai. Uski "thandak" waqt ke saath khatam ho jaati hai, aur akhir mein sirf paani bach jaata hai.
Prediction markets mein, yeh "thandak" uncertainty hai.
- Market Question: "Will Pakistan beat India in the T20 World Cup match on June 9th?"
- Current 'YES' Price: 40c
- Expiry: June 9th
Aaj, May mein, is market mein bohat uncertainty hai. Players ki form, weather, pitch conditions — kuch bhi ho sakta hai. Yeh uncertainty iski time value hai.
Ab farz karo, match se ek din pehle, Babar Azam form mein hai, Shaheen Afridi fit hai, aur pitch fast bowlers ke liye achi hai. Market ka price 85c ho gaya hai.
- Intrinsic Value (Probability): 85c
- Time Value (Remaining Uncertainty): 15c
Yeh jo 15c ki extra value hai, yeh waqt ke saath-saath pighal jayegi. Jaise hi match ka aakhri ball phenka jayega, saari uncertainty khatam. Market ya to 100c ($1) pe resolve hoga (Pakistan jeet gaya) ya 0c pe (Pakistan haar gaya).
Theta is the rate of decay of this time value. Hamara kaam, as Theta Snipers, unn markets ko dhundna hai jahan yeh baraf tezi se pighal rahi hai aur hum uss pighaltay paani ko profit ki tarah collect kar saken.
The Goldmine: 80-96% Markets Expiring in 24-72 Hours
Ab sawaal yeh hai ke konsi baraf sab se tezi se pighalti hai?
Naye developers sochte hain ke shayad 50/50 markets mein sab se zyada "time value" hai. Baat aadhi aadhi theek hai, lekin wahan risk bhi utna hi hai. Hum gamblers nahi hain, we are systematic traders.
Our goldmine is in high-probability markets that are very close to expiry.
- Markets expiring in >1 week: Bohat zyada time hai. Kuch bhi ho sakta hai. A key player could get injured. A political scandal could erupt. Too much "unknown unknown" risk.
- Markets expiring in <12 hours: Time value almost pighal chuki hoti hai. Price 98c, 99c pe hota hai. Profit margin itna kam hai ke exchange fees hi sab kuch kha jaati hai.
- The Sweet Spot (24-72 hours): Yahan scene perfect hai.
- High Certainty: Event ka outcome kaafi had tak clear ho chuka hota hai.
- Decent Premium: Phir bhi 4c se 20c tak ka "time value" premium baaki hota hai.
- Accelerated Decay: Is window mein, theta decay sab se tez hota hai. Har ghantay, time value visibly kam hoti hai.
Humara bot, scanner.py, inhi markets ko dhoondnay ke liye design hua hai. We are hunting for almost-certain outcomes where the market hasn't fully priced it in yet.
The Math: Asal Paisa Kese Banta Hai
Let's talk numbers. Yeh simple math hai, lekin isko aadat bana lo.
Farz karo humein ek market milta hai:
- Question: "Will the State Bank of Pakistan keep the interest rate unchanged in the next monetary policy meeting?"
- Expiry: 36 hours from now.
- 'YES' Price: 88c
Hamaray AI models (ai/gemini.py, ai/sonnet.py) ne news analysis karke high confidence di hai ke YES hi hoga. So, we decide to buy.
- Investment per share: $0.88
- Potential Payout per share: $1.00 (if it resolves to YES)
- Profit per share:
$1.00 - $0.88 = $0.12
Ab isko Return on Investment (ROI) mein dekho:
ROI = (Profit / Investment) * 100
ROI = (0.12 / 0.88) * 100 = 13.6%
13.6% in 36 hours!
KSE 100-Index pe saal ka average return 15-20% hota hai. Hum 1.5 din mein 13.6% ki baat kar rahe hain. This is the power of Capital Rotation.
Aap ne 50,000 PKR lagaye (~$180). 36 ghantay baad, woh 56,800 PKR ban gaye. Ab aap ke paas 56,800 PKR hain ek aur aisi trade dhoondne ke liye. Agar aap haftay mein aisi sirf 2 trades bhi aisi kar lete ho, the compounding effect is massive. Yehi Taqi ka secret hai. Chota profit, lekin tezi se.
Pro Tip: The Narrative is Your Edge
Price aur expiry dekhna to aam baat hai. Asal edge "narrative" ko samajhne mein hai. Market 88c pe kyun hai? Kya koi aakhri risk baaqi hai? For example, ek cricket match mein, agar opposition ke 2 wickets baaki hain aur 30 runs chahiye 5 overs mein, market shayad 95c pe hoga. Lekin agar woh do batsmen finishers hain, to woh 5c ka risk real hai. Hamara ai/haiku.py model specifically aisi qualitative nuances ko pakarnay ke liye train kiya gaya hai. Don't just trade the numbers; trade the story behind the numbers.
Code Mein Kese Hoga? Dissecting the theta_sniper Logic
Ab aao dekhte hain ke yeh saari logic hamaray bot ke dimaag, strategies/theta_sniper.py, mein code ki shakal mein kesi dikhti hai. Yeh function scanner.py har market ke liye run karta hai taake usko score kar sakay.
# This function is a core part of our strategies/theta_sniper.py module
# It helps us quantify if a market is a good theta decay opportunity.
import math
def calculate_theta_opportunity(yes_price, hours_to_expiry, volume_24h):
"""
Theta opportunity score calculate karo.
Yeh function 3 cheezain dekhta hai:
1. Profit Potential: Kitna paisa ban sakta hai?
2. Time Factor: Kitni jaldi paisa wapis aayega?
3. Liquidity: Kya hum aasani se shares khareed/bech saktay hain?
"""
# Defensive check: Prices should be between 1 and 99 for this strategy
if not (1 <= yes_price <= 99):
return {'verdict': 'INVALID_PRICE'}
# 1. Profit Potential: Return on investment per dollar
# Formula: (Payout - Cost) / Cost
# Theta decay is one of the most profitable strategies in prediction markets
---
## 📺 Recommended Videos & Resources
- **[Theta Decay in Options Trading](https://en.wikipedia.org/wiki/Greeks_(finance)#Theta)** — Time decay concept
- Type: Wikipedia
- Link description: Learn about theta decay and time value
- **[Prediction Market Mechanics](https://polymarket.com/docs)** — How prediction markets work
- Type: Official Documentation
- Link description: Understand market mechanics and expiry mechanics
- **[Options Selling Strategies](https://www.youtube.com/results?search_query=options+theta+decay+strategy+tutorial)** — Profiting from time decay
- Type: YouTube
- Link description: Search "theta decay strategy tutorial"
- **[Probability & Expected Value](https://en.wikipedia.org/wiki/Expected_value)** — Mathematical foundations
- Type: Wikipedia
- Link description: Learn EV calculations for trading
- **[Market Liquidity & Volatility](https://www.youtube.com/results?search_query=volatility+and+liquidity+trading)** — Key metrics
- Type: YouTube
- Link description: Search "volatility and liquidity in markets"
---
## 🎯 Mini-Challenge
**5-Minute Practical Task:** Calculate theta opportunity for 3 sample markets with different: (1) YES prices (20%, 50%, 80%), (2) hours to expiry (24h, 72h, 168h), (3) volumes. Identify which has the best theta opportunity and explain why.
---
## 🖼️ Visual Reference
📊 Theta Decay Over Time Price: 75% YES (probability stays constant)
Time to Expiry: 30 DAYS ┌────────────────────────────┐ │ BUY: $0.75 per YES share │ │ PROFIT IF HAPPENS: $0.25 │ │ ROI: 33% │ └────────────────────────────┘
Time to Expiry: 7 DAYS ┌────────────────────────────┐ │ SAME BUY: $0.75 per share │ │ SAME PROFIT: $0.25 │ │ BUT HIGHER PROBABILITY! │ │ (More days = more risk) │ │ Theta Decay = WORKING │ └────────────────────────────┘
Time to Expiry: 1 DAY ┌────────────────────────────┐ │ SAME: $0.75 per share │ │ Price gets pulled to: │ │ ~$0.90 (as event nears) │ │ THETA PREMIUM COLLECTED! │ │ (Time decay maximized) │ └────────────────────────────┘
---
Lesson Summary
Quiz: Theta Decay — Time Is Money, Literally
4 questions to test your understanding. Score 60% or higher to pass.