Смотри, как бесплатно скачать роботов
Ищи нас в Twitter!
Ставь лайки и следи за новостями
Интересный скрипт?
Поставь на него ссылку - пусть другие тоже оценят
Понравился скрипт?
Оцени его работу в терминале MetaTrader 5
Скрипты

Prop Drawdown Guard SelfTest - скрипт для MetaTrader 5

Yury Muryn
Yury Muryn
Разработка торговых роботов, индикаторов и утилит для MetaTrader 5 на MQL5.
Просмотров:
18
Опубликован:
\MQL5\Include\PropGuard\
MQL5 Фриланс Нужен робот или индикатор на основе этого кода? Закажите его на бирже фрилансеров Перейти на биржу
This is the verification companion to Prop Drawdown Guard. It contains no trading logic and no panel: it runs the risk model against fixed control vectors and prints a PASS/FAIL line for every check, so the arithmetic can be verified on any terminal in seconds.

WHAT IS CHECKED


- Daily budget, drawdown, usage and remaining budget at equity levels 10000, 9850, 9760, 9700 and 9600 with a 3 percent daily limit.
- Maximum lot from risk-per-trade and from the remaining budget, quantised by lot step.
- Total usage measured from the intraday equity peak, including a case where the total limit drives the state while the daily usage is zero.
- State machine thresholds SAFE / WATCH / WARN / LOCK, with immediate escalation and de-escalation only below the threshold minus hysteresis. Boundary values are checked explicitly.
- Invalid point value: the lot is reported as unavailable, no division is performed, and the state is still computed.
- Day resolver: automatic day-start equity, peak update, and reset on a new server day.
- Broker volume clamp: normal case, result below the broker minimum, cap at maximum, and alignment to a coarser volume step.
- Performance: one hundred thousand model calculations are timed and the average cost per calculation is printed.
HOW TO RUN
Compile the script and drop it on any chart. Open the Experts journal and read the results. Every check prints its own line with the measured and the expected value; the final line reports the total number of passed and failed checks. Tolerance for numeric comparisons is 1e-6.
FILES
Scripts/PropGuardSelfTest.mq5; Include/PropGuard/RiskModel.mqh; Include/PropGuard/State.mqh.
NOTES
The script performs no trading operations and creates no chart objects. It is intended for developers who modify the risk model and want to confirm that the arithmetic and the state machine still behave as specified.
BacktestOverfitting: probability of backtest overfitting (PBO) of an optimization BacktestOverfitting: probability of backtest overfitting (PBO) of an optimization

Вероятность переобучения при бэктесте (PBO) оптимизации на MT5 с использованием комбинаторно-симметричной перекрестной проверки. Каждый проход отправляет свои дневные результаты в виде фрейма, а показатель PBO рассчитывается по завершении оптимизации.

Risk Lot Panel Risk Lot Panel

Панель на графике, которая преобразует настройку риска в размер лота и показывает, как шаг объема и минимальный лот брокера влияют на этот риск. Только для просмотра — она никогда не размещает, не изменяет и не закрывает ордера.

YURAZ_RSAXEL Скрипт рисует уровни Рудолфа Акселя YURAZ_RSAXEL Скрипт рисует уровни Рудолфа Акселя

Скрипт рисует уровни Рудолфа Акселя

YURAZ_MCCH YURAZ_MCCH

Индикатор рассчитывает % роста или падения относительно CLOSE, написан с применением ООП, и легко интегрируется в любой советник или иной индикатор.