Install
openclaw skills install @rmbell09-lang/trading-strategiesComprehensive trading knowledge base covering fundamentals, technicals, strategies, backtesting, and risk management. Use when building trading apps or evaluating strategies.
openclaw skills install @rmbell09-lang/trading-strategiesComprehensive trading knowledge base covering fundamentals, technicals, strategies, backtesting, and risk management. Use when building trading apps, evaluating strategies, or making trading decisions.
P/E Ratio (Price-to-Earnings)
Share Price / Earnings Per ShareP/B Ratio (Price-to-Book)
Share Price / Book Value Per ShareDebt-to-Equity Ratio
Total Liabilities / Shareholders' EquityRevenue Growth Rate
Free Cash Flow (FCF)
EPS Growth (Earnings Per Share)
Return on Equity (ROE)
Net Income / Shareholders' EquityDividend Yield & Payout Ratio
RSI = 100 - (100 / (1 + (Avg Gain / Avg Loss))) over 14 periodsSum(Price × Volume) / Total Volume (intraday only)All of these together:
RULE: Never rely on a single indicator. Always combine 2-3 minimum.
Never risk more than 1% of total account on a single trade.
f = (bp - q) / b| Metric | Formula | Good | Great |
|---|---|---|---|
| Sharpe Ratio | (Return - Risk-Free) / Std Dev | >1 | >2 |
| Max Drawdown | Worst peak-to-trough | <20% | <10% |
| Win Rate | Wins / Total Trades | >40% | >55% |
| Profit Factor | Gross Profits / Gross Losses | >1.5 | >2 |
| Risk/Reward | Avg Win / Avg Loss | >2:1 | >3:1 |
Expected Return per Trade: (Win% × Avg Win) + (Loss% × Avg Loss) — must be positive
His backtesting engine ($99) does this — we can replicate for free:
Auto-download data:
/data/cache/ folder by asset and timeframeBTC_USDT_1d.csv, ETH_USDT_4h.csv, etc.[Data Feed] → [Indicator Engine] → [Signal Generator] → [Risk Manager] → [Order Executor]
↑ |
└──────────── [Backtesting Engine] ←────────────────────────┘
↓
[Performance Analytics]
This is the single most powerful workflow from all our research:
Michael's results: Super Trend went from 44% P&L → 3,605% P&L through this process.
Critical anti-overfitting rules:
py-clob-clientgamma-api.polymarket.comBuild scanner first (read-only, free). Paper trade. Then go live small.
| Strategy | Stocks | Crypto | Notes |
|---|---|---|---|
| Trend Following | ✅ | ✅ | Works in any market with trends |
| Mean Reversion | ✅ | ✅ | Better in stocks (more mean-reverting) |
| RSI/MACD Signals | ✅ | ✅ | Same indicators, different parameters |
| Bollinger Bands | ✅ | ✅ | Adjust for volatility differences |
| Pairs Trading | ✅ | ✅ | Stocks: KO/PEP. Crypto: BTC/ETH |
| Moving Average Crossover | ✅ | ✅ | Universal trend indicator |
| Ichimoku Cloud | ✅ | ✅ | Works anywhere with enough volume |
| Strategy Tournament | ✅ | ✅ | Run 10 strategies, evolve winners |
| AI Iteration | ✅ | ✅ | Give AI base strategy, let it improve |
| Factor | Stocks | Crypto |
|---|---|---|
| Hours | 9:30 AM - 4 PM ET | 24/7/365 |
| Volatility | Lower (1-3% daily avg) | Higher (5-10%+ daily avg) |
| Leverage | 2x (margin), options for more | 10-100x available |
| Regulation | Heavy (SEC, FINRA) | Light (evolving) |
| Data Quality | Excellent (decades) | Good (5-10 years) |
| Fees | Commission-free (Alpaca) | 0.1% typical |
| Short Selling | Restricted (uptick rule) | Easy (perps) |
| Pattern Day Trading | $25K minimum (PDT rule) | No restriction |
| Market Manipulation | Illegal, enforced | Common, less enforcement |
Yes, the core strategies transfer to stocks. The math is the same. What changes:
Best starting point for stocks: Alpaca (free, commission-free, paper trading built in, great API). Same strategies, just tune the parameters.
Each agent gets a detailed "soul" (personality + priorities + instructions). Without a soul, agents produce generic output.
Coordinator (Betty) — Manager agent. Delegates tasks, manages priorities, monitors agent health, delivers daily briefing. Never does the work itself.
Quant Scanner — Scans 30+ coins every 15 minutes via cron job. Uses CCXT for OHLCV data. Runs indicators (RSI, MACD, Bollinger, etc). Produces confluence score for each signal. Rules: never places trades without operator approval.
Researcher — Runs daily. Scans news, X/Twitter, market updates. Produces morning research brief. Focused on narratives, sectors, new listings.
Alert Agent — Formats signals from quant scanner into actionable alerts. Pushes to Discord channels. Includes: asset, timeframe, direction, confidence score, entry/exit suggestions.
Security Agent (Radar) — 24hr security audit. Checks for malicious code, prompt injections, bugs. Quality assurance on all strategy code before deployment. Non-negotiable.
Backtesting Agent — Validates strategies against historical data before deployment.
Trading Agent — Executes trades on exchange APIs. Only activated after paper trading period.
"Your output is only as good as your input." Generic prompts = generic agents. Spend time writing detailed soul descriptions for each agent. Include: