View Single Post
Easy Expert Functions - Include file
  #1 (permalink)  
Old 12-10-2007, 09:20 PM
fuzzbomb fuzzbomb is offline
Freshman
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 2 Times in 1 Post
fuzzbomb is on a distinguished road
Default 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, 28 views)
File Type: mq4 EasyExpert MA Cross.mq4 (783 Bytes, 25 views)
Sponsored Links EA Shark +1064% Return
Stock Market Crash? No Problem!
We Are Making Profits As Usual. More Info
Reply With Quote
The Following 2 Users Say Thank You to fuzzbomb For This Useful Post:

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast