pub struct OptimizedParams {Show 20 fields
pub asset: String,
pub ema_fast_period: u32,
pub ema_slow_period: u32,
pub atr_length: u32,
pub atr_multiplier: f64,
pub min_trailing_stop_pct: f64,
pub min_ema_spread_pct: f64,
pub min_profit_pct: f64,
pub take_profit_pct: f64,
pub stop_loss_pct: f64,
pub trade_cooldown_seconds: u64,
pub require_htf_alignment: bool,
pub htf_timeframe_minutes: u32,
pub max_position_size_usd: f64,
pub enabled: bool,
pub min_hold_minutes: u32,
pub prefer_trailing_stop_exit: bool,
pub optimized_at: String,
pub optimization_score: f64,
pub backtest_result: BacktestResultSummary,
}Expand description
Optimized parameters for a single asset
Fields§
§asset: StringAsset symbol (e.g., “BTC”, “ETH”, “SOL”)
ema_fast_period: u32Fast EMA period (typically 8-14)
ema_slow_period: u32Slow EMA period (typically 21-40)
atr_length: u32ATR calculation period
atr_multiplier: f64ATR multiplier for trailing stop
min_trailing_stop_pct: f64Minimum trailing stop percentage
min_ema_spread_pct: f64Minimum EMA spread to confirm trend
min_profit_pct: f64Minimum profit percentage to allow exit
take_profit_pct: f64Take profit target percentage
stop_loss_pct: f64Stop loss percentage (positive value; e.g. 2.0 = exit when
unrealized loss reaches 2% of notional). Defaults to 2.0 so
existing optimizer payloads that lack this field keep the same
conservative behaviour as the original hardcoded threshold.
trade_cooldown_seconds: u64Cooldown between trades in seconds
require_htf_alignment: boolWhether to require higher timeframe alignment
htf_timeframe_minutes: u32Higher timeframe for trend filter (minutes)
max_position_size_usd: f64Maximum position size in USD
enabled: boolWhether this asset is enabled for trading
min_hold_minutes: u32Minimum hold time in minutes
prefer_trailing_stop_exit: boolPrefer trailing stop exit over EMA reversal
optimized_at: StringWhen these params were optimized (ISO 8601)
optimization_score: f64Optimization score (higher is better)
backtest_result: BacktestResultSummaryBacktest results summary
Implementations§
Trait Implementations§
Source§impl Clone for OptimizedParams
impl Clone for OptimizedParams
Source§fn clone(&self) -> OptimizedParams
fn clone(&self) -> OptimizedParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more