Need help on basic programming !!

 
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. Also I observed, the Bid-Ask spread as high as 20 pips for EURUSD. Is this the normal practice with InterBankFX ?

Will appreciate help on the above.

Regards,

Satish
Reason: