Forex
Google
New signals service!

Go Back   Forex Trading > Trading systems > Martingale/Average Cost and Hedging


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (20) Thread Tools Display Modes
  3 links from elsewhere to this Post. Click to view. #141 (permalink)  
Old 01-20-2008, 09:15 PM
Neo Neo is offline
Junior Member
 
Join Date: Jun 2006
Posts: 25
Neo is on a distinguished road
Has version 1.3 been posted somewhere and I've overlooked it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #142 (permalink)  
Old 01-20-2008, 09:27 PM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 680
wolfe is on a distinguished road
Quote:
Originally Posted by Neo View Post
Has version 1.3 been posted somewhere and I've overlooked it?
Not posted yet. I'm going to test for 3 - 4 hours with live market before posting. I will post tonight.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #143 (permalink)  
Old 01-21-2008, 12:59 AM
wolfe's Avatar
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #144 (permalink)  
Old 01-21-2008, 01:17 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 2,598
ElectricSavant is on a distinguished road
wolfe,

nice touch in the upper left...I wanted to report I loaded the EA effortlessly and all seems to be functioning in the early minutes..

This EA is a class act and running like a swiss watch! (so far )

I will be providing a "log in" to the Demo on the very hard USD/JPY in my Blog as soon as I can discover this is well running enough.

ES

Quote:
Originally Posted by wolfe View Post
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.

Last edited by ElectricSavant; 01-21-2008 at 01:20 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #145 (permalink)  
Old 01-21-2008, 01:22 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 680
wolfe is on a distinguished road
Quote:
Originally Posted by ElectricSavant View Post
wolfe,

nice touch in the upper left...I wanted to report I loaded the EA effortlessly and all seems to be functioning in the early minutes..

This EA is a class act and running like a swiss watch! (so far )

I will be providing a "log in" to the Demo on the very hard USD/JPY in my Blog as soon as I can discover this is well running enough.

ES
Upper left courtesy of omelette. I liked what he did.

Lets hope all is well with TFX!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #146 (permalink)  
Old 01-21-2008, 01:39 AM
Senior Member
 
Join Date: Jan 2006
Posts: 1,077
omelette is on a distinguished road
Quote:
Originally Posted by wolfe View Post
.....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.....
You could set the 'Slippage' parameter in Ordersend to a bigger value, or try successively increasing it after each failure until you are 'successful' - not a recommendation though.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #147 (permalink)  
Old 01-21-2008, 02:37 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 680
wolfe is on a distinguished road
Quote:
Originally Posted by omelette View Post
You could set the 'Slippage' parameter in Ordersend to a bigger value, or try successively increasing it after each failure until you are 'successful' - not a recommendation though.....
That's a thought. Why not a recommendation? Because your slippage would be out of control?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #148 (permalink)  
Old 01-21-2008, 02:49 AM
Senior Member
 
Join Date: Jan 2006
Posts: 1,077
omelette is on a distinguished road
Quote:
Originally Posted by wolfe View Post
That's a thought. Why not a recommendation? Because your slippage would be out of control?
Because widening the spread is often one of the brokers little games designed to lose you money. It couldn't hurt to try out on a demo though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #149 (permalink)  
Old 01-21-2008, 07:01 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 2,598
ElectricSavant is on a distinguished road
wolfe,

So far so good...

A cosmetic little picky thing...to make this EA more aesthetic.

CloseByLoss should not require a minus sign...you should be able to code the value entered in the input to ALWAYS be a negative and do not even allow the minus sign character to be entered there.

As you know...If the user does not put the minus sign there and he is using CloseByLoss (not percent) then he will get the trades opening and closing immediatley.

Now I could be weird about this and many users may not find this change necessary and may not agree.

ES

P.S. wolfe, I also agree with you about using market orders...The dealer has no way to know what this EA is doing the way you coded this...

P.P.S. by the way.... wolfe, LCFX and omelette Thank You for this EA. This is just awesome how everybody worked on this public EA together.

Stay tuned in my Blog for TFX trading...

ES

Last edited by ElectricSavant; 01-21-2008 at 07:13 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #150 (permalink)  
Old 01-21-2008, 08:54 AM
Senior Member
 
Join Date: Feb 2007
Posts: 157
lcfxtrader is on a distinguished road
Wolfe,

It looks like the last trade progression for the EUR/USD is incorrect. Please see pic and advise. Thanks for the updated EA.

LCFX
Attached Images
File Type: bmp progression size error.bmp (480.1 KB, 325 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/martingale-average-cost-hedging/11734-martingale-ea.html
Posted By For Type Date
ea - learn to trade forex swicki - powered by eurekster This thread Refback 06-05-2008 05:34 PM
[intraday]martingale strategy dan variasinya - Page 6 - Forexindo Forum This thread Refback 04-04-2008 02:15 AM
TFX v1.5 Expert Adviser - The Money Guru Forum - Money Making Discussions This thread Refback 03-31-2008 04:36 PM
Download 10points3 Ea - Type Your Search Here This thread Refback 03-12-2008 12:38 AM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-08-2008 07:36 PM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-07-2008 06:27 AM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-07-2008 02:27 AM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-05-2008 12:56 AM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-29-2008 12:05 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 08:59 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 04:07 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 04:04 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 05:50 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 05:07 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 05:05 PM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-23-2008 06:38 PM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-04-2008 05:15 AM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-03-2008 04:01 AM
Bright Ideas™ » TFX (an amazing EA) This thread Refback 01-15-2008 05:26 PM
World of Forex Trading » Martingale EA This thread Pingback 01-11-2008 01:33 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Martingale Trend EA criss73 Expert Advisors - Metatrader 4 7 11-17-2007 01:57 PM
Reversed martingale mrv Expert Advisors - Metatrader 4 6 07-26-2007 12:28 AM
Leverage for martingale frantacech Expert Advisors - Metatrader 4 0 05-22-2007 01:17 PM
Martingale EAs? icepeak Expert Advisors - Metatrader 4 5 01-18-2007 02:21 AM
Martingale EA newdigital Expert Advisors - Metatrader 3 2 05-23-2006 02:42 PM


All times are GMT. The time now is 08:16 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.