Lightweight market data utilities and price formatting for trading applications
npm install rthmnNext Generation Forex / Stocks Toolkit - A powerful algorithmic trading library for creating and backtesting trading strategies.
- Create custom trading strategies for Forex and Stocks
- Backtest strategies with historical data
- Advanced technical analysis indicators
- Professional risk management tools
- Real-time market data integration
- Position sizing utilities
- Multi-market support (Forex & Stocks)
``bash`
npm install rthmn
`javascript
const rthmn = require("rthmn");
// Create a simple moving average strategy
const strategy = new rthmn.Strategy({
name: "Simple MA Crossover",
timeframe: "1d",
indicators: {
fastMA: new rthmn.indicators.SMA(10),
slowMA: new rthmn.indicators.SMA(20),
},
});
// Run backtest
const results = await rthmn.backtest(strategy, {
symbol: "EUR/USD", // Works with both Forex pairs and Stock symbols
startDate: "2022-01-01",
endDate: "2023-12-31",
});
``
For full documentation, visit rthmn.com
- Email: hey@rthmn.com
- Twitter: @rthmnapp
- Instagram: @rthmnapp
Contributions are welcome! Please read our contributing guidelines first.
MIT © RTHMN