MQL4: Writing an Expert Advisor for Trading Specified Patterns