A couple of basic questions?

 

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!

 

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?