Basic EA structure/contents(dummies)

jameswong61  

As a newbie to forex trading industrial, particularly in EA programming.  I have found both MQL 4 and MQL 5 EA formation rather not so user friendly.

After about two years of market observations/study/conclusions, I believe that I have found my own effective trading strategies and subsequently working on creating my own EA for live trading.

Unfortunately, as a dummies like me in both trading and programming, I found extremely difficult on the formation of my first EA (while awaiting my MQL 5 EA programming book to arrive!).

Why can't [MetaQuotes] provide a dummies Live Trading EA structure (contains all compulsory sections(such as Global Variables, OnInit, OnStart) with optional add-on sections) while fillup with compulsory contents in each compulsory sections (such as TakeProfit, StopLoss, Lots....) with optional add-on tools/indicators).  In layman word, the trading strategies is normally the comparing (less than, equal to or more than) of at least two data or two set of data.  With just fill up (dummies template) the compulsory sections of the Trading EA, one workable Trading EA will be formed (irrespective of it ROI) and ready for backtesting.

I have been spending more than 100 of hours searching for such dummies Trading EA in the CodeBase community (search thru MQL5 website) but unfortunately till this moment of time, failed to find one.

I sincerely hope that MetaQuotes Management and/or expects can provide some kind of advice and/or assistance on the formation of My First Trading EA using MQL 4 and/or MQL 5.

Happy trading to all!!!

Best regards, James

kikoolol  

maybe you missed these links:


https://book.mql4.com/samples/expert

https://www.mql5.com/en/articles/1510

https://www.mql5.com/en/forum/176044
Simple Expert Advisor - Simple Programs in MQL4 - MQL4 Tutorial
Simple Expert Advisor - Simple Programs in MQL4 - MQL4 Tutorial
  • book.mql4.com
This section dwells on the principles of creating a simple trading Expert Advisor. Preliminary Arguments Before starting to program a trading Expert Advisor, it is necessary to define general principles of a future program. There are no strict program creating rules. However, once having created a program, a programmer usually continues to...