View Single Post
  #9 (permalink)  
Old 12-10-2007, 08:17 PM
fuzzbomb fuzzbomb is offline
Junior Member
 
Join Date: Jul 2007
Posts: 6
fuzzbomb is on a distinguished road
Easy Expert Functions - Include file

While coding my own experts, I realized that the process for opening/closing orders, etc. is pretty much the same every time, and I kept reusing the same code every time I wanted to try a new strategy.

Instead of having to write new code each time to open and close orders, I decided to write an include file with functions that will do it automatically, and keep track of the state of opened/closed orders, trailing stops, adding to profitable positions and hedging.

The end result is that it takes minutes to code an EA to try out a new strategy using different indicators. That way, the programmer can concentrate on coding buy/sell logic instead of dealing with routine actions.

Try it out, modify it and let me know if you like it or have any suggestions.
Attached Files
File Type: mqh EasyExpert.mqh (16.0 KB, 133 views)
File Type: mq4 EasyExpert MA Cross.mq4 (783 Bytes, 104 views)
Reply With Quote