Strategy formatting

This commit is contained in:
2026-07-25 18:20:22 +02:00
parent 009f8b76b3
commit 7290154025
3 changed files with 97 additions and 15 deletions
+26 -1
View File
@@ -181,7 +181,32 @@ async fn main() -> tokio::io::Result<()> {
signals: ctx.use_state(Vec::new()),
logs: ctx.use_state(Vec::new()),
inspect: ctx.use_state(InspectTarget::None),
strategy: ctx.use_state(None),
strategy: ctx.use_state(Some(Strategy {
strategy: StrategyManifest {
name: "Liquidity Sweep".to_string(),
description:
"Detects liquidity grabs around key support and resistance levels."
.to_string(),
author: "Klesty Selimaj".to_string(),
version: "1.0.0".to_string(),
timeframes: vec![TimeFrame::M5, TimeFrame::M15, TimeFrame::H1],
},
risk: RiskManifest {
name: "Aggressive".to_string(),
description: "High-risk profile with larger position sizing.".to_string(),
author: "Klesty Selimaj".to_string(),
version: "1.0.0".to_string(),
max_loss: 5,
cooldown: TimeFrame::M15,
},
mode: Mode::Auto,
state: ItemState::Running,
cooldown: TimeFrame::M15,
})),
status: ctx.use_state(None),
})
})