MQLXpert EA Validation Guard
============================

A reusable MQL5 pre-flight validation include for checking a trade request before OrderSend().

Main checks:
- Terminal, program and account trading permissions
- Symbol trading mode
- Trading session availability
- Minimum/maximum/step volume
- SYMBOL_VOLUME_LIMIT
- Tick-size price alignment
- Market-order stop-loss/take-profit distance
- Margin estimate
- Broker/server OrderCheck()
- Broker stop/freeze levels included in rejection diagnostics

The library does not change the trading strategy, resize positions, or send trades automatically.

Basic use:

#include "MQLXpert_ValidationGuard.mqh"

string reason="";
if(MQLXpertValidateTradeRequest(request,reason,true,true))
{
   MqlTradeResult result={};
   OrderSend(request,result);
}

The included example script performs validation only and intentionally does not send an order.

Developed by MQLXpert
Code for Traders. By Traders.
