risk-reward-ratio
Skill64 starsChanged 17 days agoMITView on GitHub
Risk-reward evaluation for Indian trades after real costs: R multiples per target, weighted R for scale-outs, breakeven win rate, expectancy, trade-filter thresholds, and option-specific R:R (theta, IV, premium). risk.py rr computes everything including Indian round-trip charges.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- IngAs8/ClaudeSkilltheir own version, first seen Sep 28, 2026
- SKE-Labs/agent-trading-skillstheir own version, first seen Jul 18, 2026
- Bhala-Srinivash/nse-trading-skillstheir own version, first seen Mar 5, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Bhala-Srinivash/nse-trading-skills★ 36same name
- SKE-Labs/agent-trading-skills★ 17same name
- IngAs8/ClaudeSkill★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- backtest-labSkill
- breakout-plannerSkill
- broker-integrationSkill
- event-calendarSkill
- exhaustion-reversalSkill
- fibonacci-tradingSkill
- fii-dii-flowsSkill
- fno-options-analysisSkill
- fundamental-screeningSkill
- india-market-analystSkill
- indian-market-structureSkill
- indian-tax-for-tradersSkill
- ipo-analysisSkill
- macro-regimeSkill
- market-breadthSkill
- market-pulseSkill
- market-regimeSkill
- market-valuationSkill
- momentum-scannerSkill
- multi-timeframe-analysisSkill
- options-strategiesSkill
- pair-tradingSkill
- portfolio-reviewSkill
- position-sizingSkill
- results-seasonSkill
- rsi-divergenceSkill
- sector-rotationSkill
- stock-screenerSkill
- stop-loss-strategiesSkill
- technical-analysisSkill
- thesis-trackerSkill
- trading-costsSkill
- trading-disciplineSkill
- trailing-stopsSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
If the maths doesn't work after costs, skip the trade.
- Very specific: line 51
If the user doesn't know their win rate, assume 40–45% and require at least 2R after costs.
- Distinctive: line 67
Stop realism: if the stop is inside daily noise (under 1 ATR), the "great R:R" is an illusion of a tight stop.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Risk-Reward Ratio
If the maths doesn't work after costs, skip the trade. R:R is the cheapest filter there is.
Calculator
python3 ../position-sizing/scripts/risk.py rr --entry 1800 --stop 1700 --target 2100
python3 ../position-sizing/scripts/risk.py rr --entry 1800 --stop 1700 \
--target 1900:50 --target 2000:30 --target 2200:20 --win-rate 45 --cost-pct 0.25
python3 ../position-sizing/scripts/risk.py rr --entry 450 --stop 470 --target 410 --cost-pct 0.05 # shortWeights after : are the % of the position exited at each target. --cost-pct is the round-trip
cost (delivery ≈0.25, intraday ≈0.05, futures ≈0.06, or exact from trading-costs).
Core maths
R per target = (Target − Entry) ÷ (Entry − Stop) long; mirror for shorts
R after costs = (Reward − cost) ÷ (Risk + cost)
Weighted R = Σ weight × R
Breakeven win% = 1 ÷ (1 + R_after_costs)
Expectancy (R) = W × R_after_costs − (1 − W)Example: entry ₹1,800, stop ₹1,700, scale out 50/30/20 at ₹1,900/₹2,000/₹2,200 gives a weighted 1.90R. With 0.25% delivery costs it is 1.78R, so the breakeven win rate is 36%. At a 45% win rate, expectancy is +0.25R per trade.
Minimum R by win rate
| Win rate | Breakeven R | Recommended min R (after costs) |
| 30% | 2.33 | 3.0 |
| 40% | 1.50 | 2.0 |
| 50% | 1.00 | 1.5 |
| 60% | 0.67 | 1.0 |
If the user doesn't know their win rate, assume 40–45% and require at least 2R after costs.
risk.py journal measures the real win rate from their trades.
Filter
| R after costs | Decision |
| < 1 | Skip |
| 1 – 1.5 | Only with a proven >55% win rate |
| 1.5 – 2 | Acceptable |
| 2 – 3 | Good (standard swing) |
| > 3 | Excellent, but check the target is realistic (below the next major resistance) |
Making R honest
- Target realism: the target must sit at or before the next real resistance (
ta.py levels), the Fib extension, or the expected move. A target above three resistance levels is fantasy R. - Stop realism: if the stop is inside daily noise (under 1 ATR), the "great R:R" is an illusion of a tight stop.
- Costs and slippage: small targets in small caps lose a lot to spread and impact.
Options
- Long options: R:R depends on the move and its timing. Price the target premium with
options.py greeksat the target date and IV (IV often falls after events: IV crush). A ₹100 → ₹200 target needs the underlying move before theta eats the premium. - Short options: typical credit trades risk 2–4 units to make 1 (R ≈ 0.25–0.5) with a high win
rate. Judge them on expectancy and tail loss, not R.
options.py payoffgives max profit, max loss, breakevens and probability of profit.
Checklist
- Specific target(s) at real levels
- Stop at a technical invalidation point, ≥1 ATR away
- R ≥ 1.5–2 after costs
- Position risk ≤ 1–2% of capital
- Positive expectancy at a realistic win rate
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

