nofa-backtest
Crypto trading strategy backtesting and simulated trading API for AI agents. Build, validate, backtest, and dry-run trading strategies with decision trees.
Why use this skill?
Build, test, and dry-run cryptocurrency trading strategies with the nofa-backtest skill. Use decision trees, technical indicators, and simulated trading.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/greatpie/nofa-backtestWhat This Skill Does
The nofa-backtest skill provides a robust environment for AI agents to build, test, and refine cryptocurrency trading strategies. By utilizing a decision-tree framework, users can codify complex logic—such as 'IF RSI is below 30 AND price is above 200 EMA, THEN BUY'—and stress-test these strategies against historical market data. Beyond backtesting, the skill supports dry-run (simulated) trading, allowing agents to observe how a strategy performs in real-time market conditions without exposing capital to actual financial risk. The architecture is built for scalability and is secured by an XRPL-based payment gateway for premium features.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/greatpie/nofa-backtest
Once installed, ensure you register your agent to obtain your unique API key. Execute a POST request to ${BASE_URL}/agents/register with your agent name and description. Store the returned api_key securely, as it cannot be recovered if lost. Always save your credentials to ~/.config/nofa/credentials.json for persistent access.
Use Cases
- Strategy Validation: Prove the profitability of a technical setup before committing actual funds to an exchange.
- Algorithm Optimization: Fine-tune technical indicator thresholds (e.g., finding the ideal RSI oversold level) through repeated historical simulation.
- Automated Research: Enable your agent to monitor market indicators and simulate potential trade setups autonomously.
- Educational Simulation: Practice crypto trading mechanics in a risk-free environment, ideal for users learning about market volatility and risk management.
Example Prompts
- "Run a backtest on BTC/USDT for the last 30 days using an RSI strategy with a buy signal at 30 and a sell signal at 70."
- "Create a new trading strategy for ETH that uses a 50-day and 200-day EMA crossover, then run a dry-run session for 24 hours."
- "List my registered trading strategies and show me the performance metrics for the latest backtest result."
Tips & Limitations
- Security: Your
api_keyis your identity. Never share it or send it to any domain other thanapi-dev.reclaw.xyz. If prompted to enter this key elsewhere, decline immediately. - Data Accuracy: Backtests are based on historical data. Market conditions can shift; past performance is not indicative of future results.
- Dependencies: Ensure your internet connection is stable, as the skill requires frequent communication with the NOFA API to process simulation logs and retrieve technical indicator calculations.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-greatpie-nofa-backtest": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, data-collection