What is MaximumHoldTime?

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:

  1. A timer starts immediately.
  2. The system monitors:

    • Take-Profit
    • Stop-Loss
    • MaximumHoldTime
  3. 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.

๐Ÿ“Ž Related Topics