project to edit existing EA template. Template is mainly for system testing and development purposes, but also should function as efficient EA.
Following modifications to be done:
1) Efficient Tick Calculation
Compute state of the EA only when changed instead of on each tick
2) Use of libraries
For example Order / Trade management functions are in a library with robust error-handling and error-logging. These include deleting pending orders, opening, closing, modify orders and positions. ECN / non-ECN logic should be handled in Order/Trade management library. The EA should not really bother with execution details etc....
3) Use MQL constants (like OP_BUY, OP_SELL etc) wherever possible
4) Overall efficiency in term of no unnecessary calculations during live running or back testing, only functions that are used are calculated