Status: Stopped
Total Buy Score: 0.0
Total Sell Score: 0.0
Current Holding: 0 coins
Average Entry Price: 0
Peak Price: N/A
Unrealized P/L (USDT): N/A
Position as % of Base Order: 0%
Net Profit (all trades): 0.0
Current Price: N/A
Current Volatility: N/A
No trade in progress.
No trade in progress.
Last Action: No actions taken yet.
No indicator scores available.
These metrics review the trading strategy over time:
Avg Position Hold Time: How long positions remain open (target: less than 6 hours).
Win/Loss Ratio: The number of winning trades compared to losing trades (target: above 2:1).
Peak-to-Trough Drawdown: The maximum drop from a peak profit level (target: less than 10%).
TradingView can send signals directly to this system via a webhook. Use the URL below in your TradingView alert settings.
Your webhook URL is:
https://yourwebhook.url/webhook
{
"id": "alert-{{ticker}}-{{time}}",
"indicator": "SuperTrend",
"action": "buy",
"timestamp": "{{time}}",
"price": {{close}}
}
(Change "action" to "sell" for SELL signals.)
For volatility updates, create a separate alert with a payload like:
{
"id": "alert-{{ticker}}-{{time}}",
"indicator": "SuperTrend",
"volatility": "low", // or "medium"/"high"
"timestamp": "{{time}}",
"price": {{close}}
}
This section explains the overall trading strategy:
Multiple indicators generate buy/sell signals with assigned weights. These scores are combined to gauge overall market sentiment.
Example: SuperTrend returns 1.2 and QQEMOD returns 0.7 – the combined score signals a strong buy.
The system starts with a smaller order to reduce fees. As additional signals confirm the move, the system scales into the trade.
Example: An initial order of 1000 coins is scaled up to 1500 coins when further buy signals occur.
Adaptive position sizing, fixed risk percentages, and stop-loss limits work together to limit exposure.
Example: Risking only 1.25% of your account ensures you never lose too much on a single trade.
The system uses multiple exit strategies (time-based, OCO orders, trailing stops) to secure profits and minimize losses.
Example: A trailing stop may trigger if the price falls 0.5% from its peak.
Trades only occur when a majority of indicators agree, reducing false signals.
Example: If 3 out of 5 indicators signal a buy, the trade proceeds.
Adjust every parameter of the trading system. All default configuration options are now available.
Use this section to stop the trading script. You can choose to liquidate all open trades immediately, which may be necessary during volatile conditions.
This area displays the most recent log entries, which help in monitoring system behavior and troubleshooting errors.
2025-10-24 15:07:46,187 - INFO - Starting trading web UI.
2025-10-24 15:07:46,318 - INFO - SQLite DB initialized.
2025-10-24 15:07:46,326 - INFO - Signal SQLite DB initialized.
2025-10-24 15:07:46,328 - INFO - State loaded; trading script was not running.
2025-10-24 15:07:46,471 - ERROR - Error loading pending signals: 1 validation error for Signal
volume
Input should be a valid number [type=float_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/float_type
2025-10-24 18:43:51,793 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-24 22:57:52,464 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-25 16:08:59,892 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-25 17:40:07,813 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-26 05:15:44,625 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-26 05:15:44,662 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-26 05:15:54,141 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-26 05:17:43,556 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-26 05:20:29,011 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-26 05:22:55,941 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-26 05:28:50,352 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-26 06:09:42,967 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-26 06:09:43,009 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-26 06:09:53,495 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2025-10-26 06:10:04,675 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
View full logs
The Trade Log contains detailed records of every trade executed by the system. This is useful for performance analysis and can be downloaded for offline review.
Trade Configuration:
{
"API_KEY": "l2Tilm42paaf3i7aCTT2jwcWCogzbfxJHbNpxqZ5n1naB9oncaLZktacAwk9RqjF",
"API_SECRET": "cVnvIIZmTYv5ZlzqZA5KmrHJ83HvIkoEh4kN6jBYaTzfkhAyrboMdYFgoXxfH7yy",
"exchange_mode": "testnet",
"symbol": "LTCUSDT",
"base_order_quantity": 10.0,
"maker_only_mode": true,
"fallback_to_market": false,
"price_adjustment_aggressiveness": 0.7,
"order_timeout_seconds": 25,
"spread_threshold": 0.05,
"indicator_weights": {
"ATR": 0.1,
"FairValueGap": 0.5,
"Hacolt": 0.7,
"MarketSentimentTechnicals": 0.6,
"MomentumStrategy": 0.7,
"OBV": 0.7,
"QQEMOD": 0.6,
"RangeFilter": 0.8,
"SuperTrend": 1.1,
"UtBot": 0.5
},
"buy_threshold": 3.7,
"sell_threshold": 3.4,
"confirmation_indicators": 2,
"max_position_fraction": 0.35,
"initial_buy_fraction": 0.2,
"risk_percentage": 1.0,
"soft_stop_loss_percent": 1.5,
"panic_sell_threshold": 12.0,
"time_based_exit_minutes": 240,
"trailing_stop_activation_percent": 1.6,
"trailing_stop_percent": 0.5,
"break_even_trigger_pct": 1.0,
"atr_period": 18,
"atr_multiplier": 1.8,
"atr_based_trailing_stop": true,
"default_profit_pct": 50.0,
"atr_profit_pct": 65.0,
"low_volatility_pct": 0.3,
"medium_volatility_pct": 0.7,
"high_volatility_pct": 1.5,
"indicator_filtering_threshold": 0.2,
"scaling_safeguard_pct": 0.3,
"adaptive_position_sizing": true,
"poll_interval": 15,
"active_market_hours": {
"end": 24,
"start": 0
},
"min_order_book_depth": 500.0,
"max_slippage_pct": 0.5,
"volume_requirement": 1.0,
"enable_orderbook_analysis": true,
"enable_candlestick_filter": true,
"enable_btc_correlation": true,
"enable_oco_orders": true,
"simple_mode": false,
"refine_partial_exit_logic": true,
"candlestick_interval": "30m"
}
Trade History:
Download Trade Log
If you want to clear all current settings and revert to the default configuration (for example, for troubleshooting), click the button below.
# Example optimized configurations for different coins/volatility profiles
STPT_CONFIG = {
"symbol": "STPTUSDT",
"base_order_quantity": 1800,
"max_position_fraction": 0.25,
"buy_threshold": 1.8,
"sell_threshold": 1.1,
"trailing_stop_activation_percent": 2.2,
"trailing_stop_percent": 0.8,
"soft_stop_loss_percent": 1.8,
"atr_multiplier": 2.2,
"exit_targets": {
"loss": [{"threshold_pct": -2.0, "exit_fraction": 1.0}],
"profit": [
{"threshold_pct": 1.5, "exit_fraction": 0.4},
{"threshold_pct": 3.0, "exit_fraction": 0.4},
{"threshold_pct": 5.0, "exit_fraction": 0.2}
]
},
"spread_threshold": 0.12,
"price_adjustment_aggressiveness": 0.85,
"panic_sell_threshold": 3.0
}
LTC_CONFIG = {
"symbol": "LTCUSDT",
"base_order_quantity": 3500,
"max_position_fraction": 0.35,
"buy_threshold": 2.1,
"sell_threshold": 1.4,
"trailing_stop_activation_percent": 1.6,
"trailing_stop_percent": 0.5,
"soft_stop_loss_percent": 1.2,
"atr_multiplier": 1.8,
"exit_targets": {
"loss": [{"threshold_pct": -1.2, "exit_fraction": 1.0}],
"profit": [
{"threshold_pct": 0.8, "exit_fraction": 0.3},
{"threshold_pct": 1.8, "exit_fraction": 0.5},
{"threshold_pct": 3.0, "exit_fraction": 0.2}
]
},
"spread_threshold": 0.04,
"price_adjustment_aggressiveness": 0.7,
"panic_sell_threshold": 2.0
}
OM_CONFIG = {
"symbol": "OMUSDT",
"base_order_quantity": 2200,
"max_position_fraction": 0.3,
"buy_threshold": 1.9,
"sell_threshold": 1.3,
"trailing_stop_activation_percent": 1.8,
"trailing_stop_percent": 0.65,
"soft_stop_loss_percent": 1.5,
"atr_multiplier": 2.0,
"exit_targets": {
"loss": [{"threshold_pct": -1.5, "exit_fraction": 1.0}],
"profit": [
{"threshold_pct": 1.2, "exit_fraction": 0.3},
{"threshold_pct": 2.2, "exit_fraction": 0.5},
{"threshold_pct": 3.5, "exit_fraction": 0.2}
]
},
"spread_threshold": 0.08,
"price_adjustment_aggressiveness": 0.75,
"panic_sell_threshold": 2.5
}