Hide perp signal direction in option-option mode.

Plan panel shows Call+Put structure and OO selection/exit labels instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-07 16:18:40 +08:00
parent 42e56d940c
commit 8d3c181246
3 changed files with 142 additions and 51 deletions
+30
View File
@@ -261,6 +261,36 @@ class StrategyEngine:
in ("perp_option", "option_option")
else "perp_option"
),
"oo_amplitude_pct": float(
self.ledger.get_setting_float(
"oo_amplitude_pct", s.oo_amplitude_pct
)
or s.oo_amplitude_pct
),
"oo_amplitude_hours": float(
self.ledger.get_setting_float(
"oo_amplitude_hours", s.oo_amplitude_hours
)
or s.oo_amplitude_hours
),
"oo_min_option_hours": float(
self.ledger.get_setting_float(
"oo_min_option_hours", s.oo_min_option_hours
)
or s.oo_min_option_hours
),
"oo_min_leverage": float(
self.ledger.get_setting_float(
"oo_min_leverage", s.oo_min_leverage
)
or s.oo_min_leverage
),
"oo_reward_ratio": float(
self.ledger.get_setting_float(
"oo_reward_ratio", s.oo_reward_ratio
)
or s.oo_reward_ratio
),
"risk_perp_unit": risk_perp_unit,
"risk_option_unit": risk_option_unit,
"risk_exit_unit": risk_exit_unit,