Script – A program written in MQL4/MQL5 that executes once and then stops. Unlike an EA, a script does not run continuously; it only runs its OnStart()
(MQL5) or start()
(MQL4) function once when launched. Scripts are used for single actions (e.g. close all trades, create orders). In MT4 they are stored in MQL4\Scripts
, in MT5 in MQL5\Scripts
.