Thread: Martingale EA
View Single Post
  #143 (permalink)  
Old 01-21-2008, 12:59 AM
wolfe's Avatar
wolfe wolfe is offline
Senior Member
 
Join Date: Jan 2006
Posts: 680
wolfe is on a distinguished road
v1_3

Here is v1_3.

This version should hopefully prove to be more stable.

v1_3 MUST have TFX_Include_v1_2.mqh saved to your include folder to operate.
v1_3 also uses stdlib.mqh which should already be in your libraries folder.

I have only let this run live for about 3 hours. So far I haven't had any problems. It will take much longer testing to work out any potential bugs in the code.

One thing I noticed is that if a bar runs away VERY fast, your next trade will probably not get hit where you set Next_Trade to activate. This may be a limitation in mq4. The only way around this that I can think of is setting pending orders. I never liked pending orders because they let the broker know exactly what you're up to. Next_Trade is coded to activate at >= or <= your pip parameter.

Please make sure to read ALL external variable comments in the code.

If you want to see the stored Global Variable info for the last order placed press f3, or go to tools/Global Variables.

Happy testing.
Attached Files
File Type: mq4 TFX v1_3.mq4 (20.3 KB, 190 views)
File Type: mqh TFX_Include_v1_2.mqh (2.5 KB, 154 views)

Last edited by wolfe; 01-21-2008 at 01:12 AM.
Reply With Quote