"""
FREEDOMMONEY Iteration 6: Ratio Optimization Focus
Test aggressive parameter combinations to improve ratio while respecting constraints.
Constraints: margin_calls <= 3, unrealized >= -60
"""

import os
os.chdir('obw_platform')

import sys
sys.path.insert(0, '.')

# Template for candidates
candidates = {
    'aggressive_tp_high_invest': {
        'long': {'tpPercent': 0.75, 'subSellTPPercent': 1.2, 'maxLongInvestPct': 1.5, 'minLongInvestPct': 1.0},
        'short': {'tpPercent': 0.75, 'subSellTPPercent': 1.65, 'maxShortInvestPct': 1.2, 'minShortInvestPct': 0.8},
    },
    'aggressive_tp_balanced': {
        'long': {'tpPercent': 0.70, 'subSellTPPercent': 1.15, 'maxLongInvestPct': 1.4, 'minLongInvestPct': 0.9},
        'short': {'tpPercent': 0.70, 'subSellTPPercent': 1.60, 'maxShortInvestPct': 1.1, 'minShortInvestPct': 0.7},
    },
    'moderate_tp_increase': {
        'long': {'tpPercent': 0.68, 'subSellTPPercent': 1.12, 'maxLongInvestPct': 1.3, 'minLongInvestPct': 0.8},
        'short': {'tpPercent': 0.68, 'subSellTPPercent': 1.58, 'maxShortInvestPct': 1.05, 'minShortInvestPct': 0.6},
    },
    'callback_boost_aggressive': {
        'long': {'tpPercent': 0.65, 'subSellTPPercent': 1.10, 'maxLongInvestPct': 1.25, 'callbackPercent': 0.050},
        'short': {'tpPercent': 0.65, 'subSellTPPercent': 1.56, 'maxShortInvestPct': 1.0, 'callbackPercent': 0.15},
    },
    'long_heavy_asymmetric': {
        'long': {'tpPercent': 0.80, 'subSellTPPercent': 1.25, 'maxLongInvestPct': 1.8, 'minLongInvestPct': 1.2},
        'short': {'tpPercent': 0.65, 'subSellTPPercent': 1.56, 'maxShortInvestPct': 0.9, 'minShortInvestPct': 0.5},
    },
}

# This file is designed to be imported by auto_tuner_dual_fast_pack.py
# Auto-tuner will use these parameter combinations when evaluating

if __name__ == '__main__':
    print("Tuning plan loaded. Use with: auto_tuner_dual_fast_pack.py")
    print(f"Testing {len(candidates)} candidate variations")
    for name in candidates:
        print(f"  - {name}")
