Alım-satım robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Telegram üzerinde bulun!
Fan sayfamıza katılın
Kodu ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Kodu beğendiniz mi? MetaTrader 5 terminalinde deneyin
Uzmanlar

Daily Drawdown Guard - MetaTrader 5 için uzman

Pavel Polikarpov
Pavel Polikarpov
  • Директор at  Мотосервисе
  • Rusya
  • 169
Энтузиаст который познает технологии!
Görüntülemeler:
66
Yayınlandı:
MQL5 Freelance Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

Daily Drawdown Guard is a MetaTrader 5 utility. It watches the daily loss of the account and raises a warning or a critical alert when a limit you chose is reached. It does not place, modify or close orders, and it does not stop other Expert Advisors.

What it measures

At the start of each trading day (a chosen hour and minute in broker server time, midnight by default) the utility stores the equity and the balance. During the day it also tracks the highest equity reached since that start.

The panel shows:

  • Status: OK, WARNING or CRITICAL.
  • Day start, in server time.
  • The alert mode.
  • Current equity, balance and credit.
  • Start-of-day equity and the intraday equity peak.
  • Daily profit or loss, in money and as a percent of start-of-day equity.
  • Loss from the start of the day, in money and in percent.
  • Drawdown from the intraday peak, in money and in percent.
  • The warning and critical limits.
  • The value that is currently used for alerts.

Credit is shown as a separate line. A broker credit bonus increases equity, but it is not cash. If the account has a credit, read the daily loss against both equity and balance; a percent of equity can look smaller than the same money relative to the cash balance.

Alert modes

You choose which figure is compared with the limits:

  • Daily loss from the start of the day (the default). This is the usual “daily loss cap” measure.
  • Drawdown from the intraday equity peak.
  • Whichever of the two percentages is larger.

Each mode can use a percent limit, an optional money limit, or both. The warning must be below the critical level when both are set. Each level fires only once per trading day. After a restart during the same day the start, the peak and the “already alerted” flags are restored from terminal global variables, so the same alert is not repeated.

Alerts can be a terminal alert window, a sound, and an optional push notification to a MetaQuotes ID. The utility never sends orders and never closes a position for you. If you need to flatten, you do that yourself.

Inputs

Limits

  • Alert mode (from start, from peak, or either).
  • Warning and critical percent (defaults 3.0 and 5.0).
  • Optional warning and critical money amounts (0 = do not use).

Day

  • Hour and minute of the trading-day reset, server time (default 00:00).

Alerts

  • Terminal alert, sound file, push notification.

Panel

  • Show or hide the panel, corner, offsets, font size and colours.

Requirements

  • Platform: MetaTrader 5.
  • Attach the Expert Advisor to one chart. The figures are account-wide, not symbol-specific.
  • No DLL calls, no WebRequest and no internet connection.
  • The utility can sit on the same chart as a separate trading Expert Advisor; it will not open, modify or close a position of its own.
  • AutoTrading is not required.

About the author

Author of Golden Sniper XAU: https://www.mql5.com/en/market/product/207995

Session Range Box Session Range Box

Draw Asian, London and New York session ranges as chart boxes with high/low lines, labels and an optional London–New York overlap. Configure GMT or broker-server hours and review the latest session statistics in a panel.

Risk-Based Lot Size Calculator (script) Risk-Based Lot Size Calculator (script)

A small script that turns "risk in % of the account" and "stop loss in pips" into a lot size. It only calculates and prints; it never opens, modifies or closes trades.

CreyesHistoryCSV - Closed trades to CSV with summary CreyesHistoryCSV - Closed trades to CSV with summary

Script that exports the closed trades of your account to a CSV file and prints a short summary: trades, win rate, net result and profit factor.

Daily Pivot Points – Classic, Fibonacci and Camarilla Daily Pivot Points – Classic, Fibonacci and Camarilla

Daily pivot point with three resistance levels and three support levels, using Classic, Fibonacci or Camarilla formulas.