Hey man,
This is a way better place to get that answered. (
MQL4 Code Base: expert advisors, custom indicators, scripts and libraries) You can post your EA there and ask your coding questions. Also (not to promote) but interbankfx has a good wall maintained forum that has a section on EA's and coding. The guy who places 3rd place in the 2006 EA completion works there.
I wouldn't waste your time with it though, even the winner of the 2006 MTQ4 EA competition says its 100% luck and an EA is not a way to make any money long term in any market.
Better off trying to double up on $100 bets on the blackjack table. If you can win 14 bets in a row you will have almost 2million.... hey at least the odds are 'in your favor"
There is no shortcut to education.