[pshaiCmd] Report Maximum Drawdown based on GetBotProfit (for v4 Cloud)

0 57 Views No Comments 3 weeks ago
  • Maximum Drawdown in a Custom Command format, made for educational purposes.
    The command uses GetBotProfit to get the peak and trough.

    NOTE: The CC does not work on HTS v3 because of missing commands. The CC was made on and for v4 Cloud version.

    Usage:
    CC_ReportMdd()

    Example output in backtest logs:

    ——————— Report Maximum Drawdown (BINANCEFUTURES_BTC_USDT_PERPETUAL) ———————
    Maximum Drawdown: -7.676 / -1.2154 %

    • This topic was modified 3 weeks, 2 days ago by pshai. Reason: added a note
    • This topic was modified 3 weeks, 2 days ago by pshai.
    HaasScript Code
    Sign in or Register to download for free
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free