A comprehensive backtesting platform designed to optimize settings for the Aster Lick Hunter Node application. This tool provides real-time liquidation tracking and strategy optimization capabilities to generate optimal trading parameters for AsterDEX strategies.
⚠️ DEVELOPMENT WARNING: This application is currently in active development and should be considered experimental. All trading strategies, optimizations, and backtesting results generated by this tool should be assumed to be unprofitable until thoroughly validated. Do not use any generated settings for live trading without extensive testing and verification. Trading cryptocurrencies involves substantial risk of loss.
Note: This backtesting tool is used to test and optimize trading strategies, generating settings that can then be applied to the Aster Lick Hunter Node for live trading.
- Real-time Liquidation Tracking: Monitor liquidations from AsterDX exchange
- Interactive Charts: Price analysis with TradingView-style interface
- Backtesting Engine: Test trading strategies against historical data
- Strategy Optimization: Parameter optimization with wallet balance validation
- Threshold System: Cumulative volume-based trading strategy options
The main dashboard showing real-time liquidation tracking, price charts, trades, and liquidation analytics
Strategy optimization interface showing backtesting progress and price chart with liquidations
git clone https://github.com/birdbathd/lick_tester
cd lick_tester
npm install
# Copy liquidation.db from Aster Lick Hunter Node and place in data/ (optional)
npm startPrerequisites: You can optionally use the
liquidation.dbfile from the Aster Lick Hunter Node application for additional historical data analysis, but this tool also monitors liquidations independently.
Access the dashboard at http://localhost:3020
Default port is 3020. To change:
Environment Variable:
PORT=3002 npm startEdit server.js:
Change DEFAULT_PORT = 3020 in the configuration section.
Configure liquidation thresholds, leverage, and risk management settings in the web interface or config file.
- Monitor Liquidations: View real-time liquidation events and volume data
- Backtest Strategies: Test trading parameters against historical liquidation data
- Optimize Parameters: Find optimal strategy settings using the Config Hunter
- Analyze Performance: Compare instant vs threshold-based trading systems
Simulates trades immediately when liquidation volume exceeds threshold.
Accumulates liquidations over time window, simulates trades when cumulative volume exceeds threshold.
⚠️ Important: The backtesting engine makes several assumptions that may not reflect real-world trading conditions. Results should be considered optimistic estimates.
Fees (10 basis points = 0.10%)
- Applied to both entry and exit of every trade
- Assumes taker fees (market orders) for realistic modeling
- Higher than typical maker fees to account for urgency during liquidation events
Slippage (8 basis points = 0.08%)
- Applied to both entry and exit prices
- Accounts for adverse price movement when executing trades
- Conservative estimate for normal market conditions
- Caveat: During actual liquidation cascades, slippage could be significantly higher
Price Execution
- Entries use "next candle open" price + slippage
- Exits use exact TP/SL levels - slippage
- Caveat: Real execution may face partial fills, requotes, or rejected orders
Liquidity
- Assumes unlimited liquidity at calculated prices
- Reality: Large liquidation events often reduce available liquidity
- Impact: Real trades might get worse fills or partial execution
Order Execution
- Perfect TP/SL execution at exact levels
- Reality: Stop losses may slip during volatile periods
- Reality: Take profits might not fill completely at target levels
Tie Resolution
- When both TP and SL hit in same candle, assumes "worst case" (SL hit first)
- Reality: Actual outcome depends on intrabar price action
- Use results as upper bounds - actual performance will likely be lower
- Apply additional safety margins to any generated parameters
- Paper trade strategies before live implementation
- Start with smaller position sizes than backtests suggest
- Monitor real execution costs and adjust models accordingly
The backtesting tool is designed to find potentially profitable strategies, but real-world execution introduces additional challenges not captured in these simulations.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is a backtesting and optimization tool designed to work with the Aster Lick Hunter Node application by CryptoGnome.
The Lick Tester generates optimized trading parameters and settings through backtesting, which can then be applied to the Aster Lick Hunter Node for live trading execution.
Charts powered by TradingView Lightweight Charts - professional financial charts for web applications.
MIT
See LICENSE file for details.