源码预览
核心功能
Overview
This strategy combines quantitative signal generation with strict risk management rules—specifically engineered to prevent over-trading and capital drawdowns during choppy or unfavorable market regimes.
Key Features Custom Trade Signals: Evaluates market conditions to trigger precise, rule-based entries.
Pyramiding Limits: Built-in dynamic position sizing parameters to ensure account exposure remains controlled.
Loss-Based Cooldown Mechanism: Automatically detects consecutive losing trades and enforces a temporary cooldown period to pause new entries and preserve capital.
Real-Time Alerting: Integrated alert conditions (alertcondition) designed to trigger immediate webhook or push notifications whenever a strategy state or cooldown is initiated.
How It Works Entry Logic: Calculates raw entry signals based on the core indicator parameters and validates whether the current open position size is within the allowed pyramiding cap (maxPyramiding).
Cooldown Guardrail: If the strategy hits 2 consecutive losses, useCooldown triggers a lockout phase, blocking any new long/short orders until conditions stabilize.
Alerts: Triggers automated notifications to keep you informed of strategy state transitions without needing to monitor the chart 24/7.
Settings & Inputs Max Pyramiding: Set the maximum allowable scale-in limit for open positions.
Use Cooldown: Toggle the automated loss-cooldown circuit breaker on or off.
Consecutive Loss Limit: Customize the threshold of losing trades before pausing entry logic.
Disclaimer For educational and backtesting purposes only. Past performance does not guarantee future results. Always conduct your own risk management and forward testing before applying strategies to live accounts.
安装与验证
在文档完善前,请勿将未验证文件用于实盘环境。