Help - Programming Metatrader 4

 
Hi,

I am new to Metatrader/MQL4 and am trying to get a handle on MQL4 programming language. Could you please advice me as to how to do the following:-

1. Fix the number of candle bars/screen - I need to have different number of bars on different timeframe charts, say 128 bars on a 15 min chart, 168 bars on a 1 hour chart and so on.

2. How does one vary the width of a candlestick under program control or otherwise ?

3. Is it possible to map function keys as hotkeys to run scripts/load different templates ?

4. Is it possible to have a script running in an infinite loop without attaching it to any chart ? I need it to say alert me on MACD crossovers on multiple currencies ? Could you point me to example alert/sendmail scripts, if available ?

Will appreciate help on the above.

Regards,

Satish
 
Slawa,

Could you please help me with the above queries ?

Satish