Trading Script Dashboard

Status: Stopped

Current Metrics

Total Buy Score: The combined score of all "buy" signals generated by your indicators. For example, if three indicators give scores 1.0, 0.7, and 0.5 respectively, the total is 2.2 – a high score indicates strong bullish sentiment.

Total Buy Score: 0.0

Total Sell Score: Similar to the buy score but for "sell" signals. A higher sell score implies bearish sentiment.

Total Sell Score: 0.0

Current Holding: The number of coins currently held in your position.

Current Holding: 0 coins

Average Entry Price: The weighted average price at which your current position was opened. For example, if you bought at different prices, this number shows the effective entry price.

Average Entry Price: 0

Peak Price: The highest price reached after entering your position. This is used to determine trailing stop levels.

Peak Price: N/A

Unrealized P/L (USDT): The profit or loss you would realize if you closed your position immediately.

Unrealized P/L (USDT): N/A

Position as % of Base Order: This shows the ratio of your current holding relative to your base order quantity.

Position as % of Base Order: 0%

Net Profit (all trades): The total profit or loss across all executed trades.

Net Profit (all trades): 0.0

Current Price: The live market price of the asset.

Current Price: N/A

Current Volatility: A measure of how volatile the market is, based on your indicators.

Current Volatility: N/A

Profit & Trailing Stop Info

This section details your trade’s profitability. "Unrealized Change" shows the percentage change, "Current Profit/Loss" indicates what you’d gain or lose if you exited now, and "Trailing Stop triggers at" tells you when the system will exit to secure profits.

No trade in progress.

No trade in progress.

Last Action: Describes the most recent significant action (e.g., "Executed INITIAL BUY").

Last Action: No actions taken yet.

Indicator Scores (Realtime)

Each indicator (like SuperTrend, QQEMOD, FairValueGap) outputs a "buy" and "sell" score. These scores are used to decide trade entries and exits.
Example: If SuperTrend shows Buy: 1.2 and QQEMOD shows Buy: 0.7, the aggregated bullish signal strengthens.

No indicator scores available.

Performance Metrics

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%).

Webhook & TradingView Alerts Setup

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

How to Create TradingView Alerts

  1. Click the "Alerts" icon in TradingView and select "Create Alert".
  2. Set your condition (e.g., SuperTrend turning bullish for a BUY signal).
  3. Check the "Webhook URL" box and paste the URL above.
  4. In the "Alert Message" field, use a JSON payload similar to:
                  
    {
      "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:

  1. Create an alert for volatility.
  2. Use a payload similar to:
                  
    {
      "id": "alert-{{ticker}}-{{time}}",
      "indicator": "SuperTrend",
      "volatility": "low",  // or "medium"/"high"
      "timestamp": "{{time}}",
      "price": {{close}}
    }
                  
                
  3. This will update the system’s stored volatility info.

Strategy Overview

This section explains the overall trading strategy:

Configuration

Adjust every parameter of the trading system below. These settings control how the system interacts with the market and how trades are managed.
Basic Settings: API credentials, exchange mode, trading symbol, base order quantity.
Indicator & Signal Settings: Weights for each indicator, buy threshold, sell threshold.
Risk Management: Maximum position fraction, initial buy fraction, soft stop loss, risk percentage, time-based exit minutes.
Trailing Stop Settings: Trailing stop activation percent, trailing stop percent.
Market & Volatility Settings: Poll interval, low/medium/high volatility percentages, scaling safeguard.
Advanced Features: Adaptive position sizing, OCO orders, ATR-based trailing stop, ATR multiplier, ATR period, ATR profit percent, default profit percent, multiple exit targets (JSON), indicator filtering (and threshold), refine partial exit logic, simple mode.
Additional Settings: Active market hours, minimum order book depth, maximum slippage percent, volume requirement, confirmation indicators, candlestick filter, order book analysis, BTC correlation.

Basic Settings

Your Binance API key. This is required for authentication with Binance.

Your Binance API secret, used together with your API key.

Choose "Live" for real trading or "Testnet" for simulation/testing.

This is the base size for orders. Other sizes are calculated relative to this.

Indicator & Signal Settings

Set the weight (importance) for each indicator. For example: {"SuperTrend": 1.2, "QQEMOD": 0.7, ...}

Minimum aggregated buy score needed to initiate a trade.

Minimum aggregated sell score required to trigger an exit.

Risk Management

Maximum fraction of the base order quantity allowed in a position.

Fraction of the base order to use for the initial buy.

The percentage loss at which a stop-loss is triggered.

Maximum percentage of your account risked on a single trade.

Maximum time a position can be held before exiting.

Trailing Stop Settings

The profit percentage required to activate the trailing stop.

The percentage drop from the peak price that triggers a sell.

Market & Volatility Settings

How frequently the system polls for market data.

Threshold for low volatility conditions.

Threshold for medium volatility conditions.

Threshold for high volatility conditions.

A safeguard percentage to prevent adverse scaling in.

Advanced Features

Enable dynamic order sizing based on market volatility and available balance.

Enable One-Cancels-the-Other orders to simultaneously manage profit targets and stop-losses.

Use Average True Range to adjust the trailing stop dynamically.

Multiplier for the ATR value when calculating stop levels.

Number of periods used to calculate the ATR.

Profit percentage target based on ATR for trailing stops.

Fallback profit target percentage if ATR is not used.

Enable multiple exit targets for scaling out of positions.

Define exit targets as a JSON array for loss and profit exits.

Only take trades if a dominant majority of indicators agree.

Threshold to determine if indicator filtering should prevent a trade.

Enable refined logic for scaling partial exits.

Disable advanced features for a simpler configuration.

Additional Settings

Define trading hours (UTC). For example: {"start": 8, "end": 22}.

The minimum cumulative quantity in the order book required before placing orders.

Maximum acceptable slippage percentage for order execution.

Require trading volume to be at least this multiple of the 30-minute average.

The minimum number of indicators that must agree to trigger a trade.

Enable filtering based on candlestick patterns before trade entry.

Analyze order book for large walls to avoid slippage.

Only enter trades if BTC/USDT correlation is acceptable.

Stop Script

Use this section to stop the trading script. You can choose to liquidate all open trades immediately, which may be necessary during volatile conditions.

Recent Logs

This area displays the most recent log entries, which help in monitoring system behavior and troubleshooting errors.

2026-01-02 05:15:26,940 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-02 05:51:49,850 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-02 16:45:42,856 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-02 20:37:00,765 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-03 00:53:47,957 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-03 05:04:49,874 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-03 10:52:52,435 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-03 10:54:07,623 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-03 13:53:58,140 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-03 13:54:16,909 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-03 13:54:17,518 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-03 16:06:16,438 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-04 04:48:12,564 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-04 16:57:52,969 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-05 03:47:21,399 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-05 04:02:24,846 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-05 05:22:33,342 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-05 16:43:03,965 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-06 02:41:05,980 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-06 03:59:54,300 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-06 04:55:45,215 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-06 16:47:11,996 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-07 08:31:39,686 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-07 10:47:33,476 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-07 10:47:34,893 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-07 10:47:47,723 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-07 10:47:48,626 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-07 10:47:49,935 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-07 17:06:56,798 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-08 03:07:56,012 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-08 17:07:18,431 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-09 06:03:51,902 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-09 08:02:15,018 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-09 13:32:05,751 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-09 16:14:34,794 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-09 23:50:40,853 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-10 02:11:29,350 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-10 17:58:02,080 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-11 02:57:19,935 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-11 03:29:31,118 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-11 05:16:54,469 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-11 05:16:54,660 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-11 05:17:10,790 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-11 05:45:18,789 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-11 05:45:18,820 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-11 05:45:27,937 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-11 06:17:24,674 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-11 06:17:25,065 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-11 06:17:39,325 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
2026-01-11 13:00:15,218 - ERROR - Error generating performance summary: Expecting value: line 1 column 1 (char 0)
View full logs

Trade Log

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": "Zrmsxaulz7eZl84hJSzos2IsGEmz1ln7CjTPhHkPDJylU0QtgK0JZYe8b0jT9HE9",
    "API_SECRET": "wQJ9HIKY4LfoSl7AGSuGVUyDvLZF1uKwBTe2MrJCYhPasqMQ9vXEYbXSAbHMGz9H",
    "exchange_mode": "live",
    "indicator_weights": {
        "ATR": 0.1,
        "FairValueGap": 0.5,
        "Hacolt": 0.6,
        "MarketSentimentTechnicals": 0.6,
        "MomentumStrategy": 0.6,
        "OBV": 0.6,
        "QQEMOD": 0.5,
        "RangeFilter": 0.8,
        "SuperTrend": 1.0,
        "UtBot": 0.5
    },
    "buy_threshold": 3.7,
    "sell_threshold": 3.4,
    "max_position_fraction": 0.35,
    "initial_buy_fraction": 0.2,
    "trailing_stop_activation_percent": 2.45,
    "trailing_stop_percent": 1.0,
    "poll_interval": 15,
    "symbol": "STPTUSDT",
    "base_order_quantity": 100.0,
    "soft_stop_loss_percent": 2.0,
    "risk_percentage": 1.0,
    "time_based_exit_minutes": 2160,
    "enable_oco_orders": true,
    "atr_based_trailing_stop": true,
    "atr_multiplier": 2.0,
    "atr_period": 14,
    "multiple_exit_targets": true,
    "exit_targets": {
        "loss": [
            {
                "exit_fraction": 0.2,
                "threshold_pct": -5.0
            },
            {
                "exit_fraction": 0.3,
                "threshold_pct": -10.0
            },
            {
                "exit_fraction": 0.5,
                "threshold_pct": -15.0
            }
        ],
        "profit": [
            {
                "exit_fraction": 0.25,
                "threshold_pct": 5.0
            },
            {
                "exit_fraction": 0.25,
                "threshold_pct": 10.0
            },
            {
                "exit_fraction": 0.25,
                "threshold_pct": 20.0
            },
            {
                "exit_fraction": 0.25,
                "threshold_pct": 30.0
            }
        ]
    },
    "enable_indicator_filtering": false,
    "enable_orderbook_analysis": true,
    "active_market_hours": {
        "end": 24,
        "start": 0
    },
    "min_order_book_depth": 250.0,
    "max_slippage_pct": 0.5,
    "adaptive_position_sizing": true,
    "enable_candlestick_filter": true,
    "volume_requirement": 0.5,
    "enable_btc_correlation": false,
    "simple_mode": false,
    "refine_partial_exit_logic": true,
    "maker_only_mode": true,
    "order_timeout_seconds": 25,
    "fallback_to_market": false,
    "price_adjustment_aggressiveness": 0.7,
    "spread_threshold": 0.1,
    "low_volatility_pct": 0.3,
    "medium_volatility_pct": 0.7,
    "high_volatility_pct": 1.5,
    "atr_profit_pct": 70.0,
    "default_profit_pct": 50.0,
    "panic_sell_threshold": 15.0
}

Trade History:
Download Trade Log

Reset State

If you want to clear all current settings and revert to the default configuration (for example, for troubleshooting), click the button below.

Suggested Config

          
          # 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
          }