Thread: Martingale EA
View Single Post
  #99 (permalink)  
Old 01-16-2008, 02:59 AM
wolfe's Avatar
wolfe wolfe is offline
Senior Member
 
Join Date: Jan 2006
Posts: 820
wolfe is on a distinguished road
TFX v1_2

Here is v1_2.

Changes made in v1_2:

1. You need to save TFX_Include_v1_2 in your include folder. There is additional code in this file NOT in original file.

2. Close_By_Percent external variable.

-If true EA will close based on percentage of account BALANCE

-If false EA will close based on Close_By_Profit (enter a $ amount), or close by Close_By_Loss (enter a -$ amount)

3. Use_Manual_Entry external variable.

-If true you must enter Manuel_Long & Manuel_Short price you want EA to start cycle. (current price must be between Manuel_Long & Manuel_Short to execute properly)

-Manuel_Long & Manuel_Short are external variables to enter your "breakout" prices used to trigger the start of a cycle.

-Once a cycle is complete an alert will pop up notifying that you need to RESET EA and RESET MANUEL_LONG AND MANUEL SHORT.

-If Use_Manual_Entry is false EA will use the moving average to decide direction and start a cycle. Once a cycle is complete EA will immediately start a new cycle.

PLEASE take some time to read all external variable comments in the code.

Hope this works well for all.
Attached Files
File Type: mqh TFX_Include_v1_2.mqh (2.5 KB, 123 views)
File Type: mq4 TFX v1_2.mq4 (11.2 KB, 142 views)

Last edited by wolfe; 01-16-2008 at 06:16 AM. Reason: RE-POST of TFX v1_2 (small code change)
Reply With Quote