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
  #331 (permalink)  
Old 02-02-2008, 08:30 PM
ajk's Avatar
ajk ajk is offline
Senior Member
 
Join Date: Dec 2005
Posts: 230
ajk is on a distinguished road
The programming can be challenging to allow in a martingale. -- I have not reviewed this ea yet... are your orders are individually closed? if so, it is doable.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #332 (permalink)  
Old 02-02-2008, 08:41 PM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Quote:
Originally Posted by lcfxtrader View Post
Wolfe,

Let me know when you are up to the task on the correlation grid ea.

LCFX
O.K.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #333 (permalink)  
Old 02-02-2008, 08:44 PM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Quote:
Originally Posted by ajk View Post
The programming can be challenging to allow in a martingale. -- I have not reviewed this ea yet... are your orders are individually closed? if so, it is doable.
TFX v1_5 has a Double_Lotsize option in the external variables. Select true if you want each lot size double the previous order.

Pretty risky to do this though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #334 (permalink)  
Old 02-02-2008, 10:19 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
wolfe,

read the reply you quoted...the word was DOable not double..

ES

Quote:
Originally Posted by wolfe View Post
TFX v1_5 has a Double_Lotsize option in the external variables. Select true if you want each lot size double the previous order.

Pretty risky to do this though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #335 (permalink)  
Old 02-02-2008, 10:29 PM
ajk's Avatar
ajk ajk is offline
Senior Member
 
Join Date: Dec 2005
Posts: 230
ajk is on a distinguished road
You can probably change the 2 to 1.5 on the lot size.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #336 (permalink)  
Old 02-02-2008, 10:37 PM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Quote:
Originally Posted by ElectricSavant View Post
wolfe,

read the reply you quoted...the word was DOable not double..

ES
Woops! You're right!

Well to answer the actual question:

TFX closes all the orders in a close all loop. Such as this:

PHP Code:
int CBM(int intMagic)//CloseByMagic
{
int intOffset=0;
int Count OTBM(intMagic);

while(
OTBM(intMagic)>&& Count 0)
{
OrderSelect(intOffset,SELECT_BY_POS);
if(
OrderMagicNumber()==intMagic)
{
if(
OrderType()==OP_BUYOrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),999,Red);
else if(
OrderType()==OP_SELLOrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_ASK),999,Orange);
Count--;
}
else {
intOffset++;
}
}
return(
0);

Don't know if that's exactly what ajk was asking, but that's how the EA closes orders.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #337 (permalink)  
Old 02-02-2008, 10:50 PM
ajk's Avatar
ajk ajk is offline
Senior Member
 
Join Date: Dec 2005
Posts: 230
ajk is on a distinguished road
Martingales when they hit the tp usually combine a bunch of open orders and close them and "tie them together:. Ea's like bilksem for example
allowes the orders to be managed individually. The weekness of martingales, is basically what you described... letting your profits run. I like this type of ea.. .I just don't know yet on what to do with it.
Also, with Bilksem or with an ea like predator,,, it was only a martingale on the negative after the entry. This is a positive.
These martingales are "beast" and typically blow out---its just the way it is. ..You always have a loser and it goes against you so somehow you have to entend your wins. The programming of that is very, very hard.

Last edited by ajk; 02-02-2008 at 11:09 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #338 (permalink)  
Old 02-02-2008, 10:50 PM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Another back test to illustrate the implementation of a trailing stop used to close the cycle.

In this test after your profit was >= $10.00, a trailing stop was initiated, and would close all orders if you lost more than 50% of your HIGHEST total orders positive profit.

Should be fun to test, still have some work to do. Notice the HUGE draw down spike towards the end.
Attached Images
File Type: gif PH4.gif (10.3 KB, 178 views)
Attached Files
File Type: htm PH4.htm (373.2 KB, 26 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #339 (permalink)  
Old 02-02-2008, 11:26 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
I do not mean to be a downer here...I have toi first find something that goes positive to EVEN consider a TS..

I like the indicator dependent entry idea better..

ES


Quote:
Originally Posted by wolfe View Post
Another back test to illustrate the implementation of a trailing stop used to close the cycle.

In this test after your profit was >= $10.00, a trailing stop was initiated, and would close all orders if you lost more than 50% of your HIGHEST total orders positive profit.

Should be fun to test, still have some work to do. Notice the HUGE draw down spike towards the end.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #340 (permalink)  
Old 02-02-2008, 11:30 PM
ajk's Avatar
ajk ajk is offline
Senior Member
 
Join Date: Dec 2005
Posts: 230
ajk is on a distinguished road
well, you put a lot of work and time into it. so.. kudos for everyone ... I think you have somewhat of a winner... to early to tell however as like I would preach... the martingale is death trap. please shar if you get that ts to work.
the indicator entry is better. not that hard to modify what is there. Good entries are always hard to comeby.

Last edited by ajk; 02-02-2008 at 11:56 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
martingale, martingale ea, martingale EA, martingale ea download

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 Off
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 06:34 PM
[intraday]martingale strategy dan variasinya - Page 6 - Forexindo Forum This thread Refback 04-04-2008 03:15 AM
TFX v1.5 Expert Adviser - The Money Guru Forum - Money Making Discussions This thread Refback 03-31-2008 05:36 PM
Download 10points3 Ea - Type Your Search Here This thread Refback 03-12-2008 01: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 08: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 07: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 03: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 01:56 AM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-29-2008 01:05 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 09:59 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 05:07 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 05:04 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 06:50 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 06:07 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 06:05 PM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-23-2008 07:38 PM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-04-2008 06:15 AM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-03-2008 05:01 AM
Bright Ideas™ » TFX (an amazing EA) This thread Refback 01-15-2008 06:26 PM
World of Forex Trading » Martingale EA This thread Pingback 01-11-2008 02:33 AM

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


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



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