1. See Documentation - https://docs.mql4.com/runtime and https://docs.mql4.com/basis/functions/special
2. See https://docs.mql4.com/basis/variables
2. See https://docs.mql4.com/basis/variables
Great info Rosh, had to read it couple times to get it clear.
Another question I have is in regards to naming conventions. I've seen coders prepend a certain letter to variables etc then append a number to the end as examples below.
g_magic_568
gi_741
gd_1276
l_lots_8
li_0
I managed to work out the a prepended g indicates a global variable but what does gi, gd, l, li represent. Even more so what are the numbers referencing appended to the end?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
1. When is it the right time to use expert initialization, deinitialization function sections? In lamens terms what code should reside in this section?
2. Most coders declare variables within the top section of the code area. However I've seen declarations within the expert start function int start() section? When should one declare variables within this section?
3. In regards to functions I've seen varying different approaches. Some coders hold funtions within the expert initialization int init() area, others at the START of the expert start function int start() section before the trade engine/s, and lastly at the END of the expert start function int start() section after the trade engine/s. What is the best pratice method?
Thanks!