General handlers: events of a chart, a depth of market, new trades, etc.The workpieces for them are to be inserted into the EA template: Event handlers #Īt subsequent stages, select additional event handlers. It can be changed before a program launch or during operation.Īfter specifying all the necessary data, click Next. Initial value – initial value of a variable.To create a parameter, click Add and fill in three fields: The input parameters are "input" class variables. Parameters – set of EA input parameters (external variables).Link – developer's email address or website.For example, create it in the new \Experts subfolders. Here you can also change the path to a destination file. When creating a template, you can define the program inputs beforehand, as well as add them to the workpiece code for additional event handlers. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |