A template is created in the directory corresponding to a program type – MQL5/Experts (or MQL4/Experts). It contains the standard program header, general properties and workpieces for the main event handlers: new tick arrival (OnTick), launch (OnInit) and EA deinitialization (OnDeinit). Professional trading in a couple of clicksĪ template is a basic source code of a trading robot.