MaximumHoldTime defines the maximum number of minutes an auto-trade is allowed to remain open after it is triggered by extreme volatility.
It acts as a time-based exit rule, ensuring that volatility trades do not stay open longer than intended.
Example configuration:
AutoTrade:
MaximumHoldTime: 20
This means:
- The trade can stay open for up to 20 minutes.
- If Take-Profit (TP) or Stop-Loss (SL) is not triggered within 20 minutes, the position will be closed automatically, regardless of profit or loss.
โ๏ธ How It Works
Once an auto-trade is opened:
- A timer starts immediately.
The system monitors:
- Take-Profit
- Stop-Loss
- MaximumHoldTime
- Whichever condition happens first will close the trade.
If MaximumHoldTime: 0
โ No time restriction is applied.
๐ฏ Why Itโs Important
Extreme volatility setups are typically:
- Fast
- Short-lived
- Reaction-based
Strong reversals or momentum bursts often occur quickly. If price does not move in your favor within a short period, the opportunity may already be gone.
Thatโs why it is highly recommended to keep volatility trades short-term.
๐ Example Scenario
Settings:
MaximumHoldTime: 20
TakeProfit: 2%
StopLoss: 4%
Scenario:
- Trade opens at 12:00
By 12:20:
- TP not hit
- SL not hit
- At 12:20 โ Position is automatically closed
The outcome (profit or loss) does not matter โ the trade is exited due to time expiration.
๐ Strategic Use
- 5โ15 minutes โ Very aggressive scalping
- 15โ30 minutes โ Balanced volatility capture
- 30+ minutes โ More flexible but less โpure volatilityโ strategy
๐ Summary
MaximumHoldTime:
- Sets a time limit (in minutes) for auto-trades
- Forces automatic closure when exceeded
- Works independently from TP and SL
- Helps keep volatility trades fast and opportunity-focused
It ensures your auto-trades remain aligned with the nature of high-volatility, short-duration opportunities.