- Implement 5-try Chase logic for Maker (Limit Post-Only) orders. - Add 'attempts' column to CSV transaction log for performance tracking. - Update backtest engine (v1.7.9) with Stop Loss and Maker fee simulation. - Log failed chase sequences explicitly as "Failed (Chase Timeout)". - Consolidate order processing into internal helper methods.
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
# Ping-Pong Strategy Configuration
|
|
|
|
# Trading Pair & Timeframe
|
|
symbol: BTCUSD
|
|
interval: "1" # Minutes (1, 3, 5, 15, 30, 60, 120, 240, 360, 720, D, W, M)
|
|
|
|
# Indicator Settings
|
|
rsi:
|
|
period: 14
|
|
overbought: 70
|
|
oversold: 30
|
|
TF: 1 # same as symbol's interval
|
|
enabled_for_open: true
|
|
enabled_for_close: true
|
|
|
|
|
|
hurst:
|
|
period: 30
|
|
multiplier: 1.8
|
|
TF: 1 # same as symbol's interval
|
|
enabled_for_open: true
|
|
enabled_for_close: true
|
|
|
|
# Strategy Settings
|
|
direction: "long" # "long" or "short"
|
|
capital: 1000.0 # Initial capital for calculations (informational)
|
|
leverage_long: 10.0 # Leverage for LONG mode
|
|
leverage_short: 5.0 # Leverage for SHORT mode
|
|
max_effective_leverage: 2.5 # Cap on total position size relative to equity
|
|
pos_size_margin: 20.0 # Margin per 'ping' (USD)
|
|
#take_profit_pct: 1.5 # Target profit percentage per exit (1.5 = 1.5%)
|
|
partial_exit_pct: 0.15 # 15% of position closed on each TP hit
|
|
min_position_value_usd: 15.0 # Minimum remaining value to keep position open
|
|
|
|
# Execution Settings
|
|
loop_interval_seconds: 5 # How often to check for new data
|
|
execution_type: "maker" # "maker" (Limit Post-Only) or "taker" (Market)
|
|
debug_mode: false
|
|
|
|
# Robustness Settings
|
|
robustness:
|
|
enabled: true
|
|
max_retries: 3
|
|
retry_window_seconds: 300 # 5 minutes
|
|
autostart_on_reboot: true
|