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
  #171 (permalink)  
Old 01-22-2008, 02:42 AM
Senior Member
 
Join Date: Feb 2007
Posts: 168
lcfxtrader is on a distinguished road
Quote:
You guys have really been testing my coding abilities here. That's O.K. it's helped me learn a lot.
Charge on Wolfe!! You are doing a great job and I positive that all the members testing this EA feel the same way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #172 (permalink)  
Old 01-22-2008, 02:44 AM
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,

I have noticed that the EA will close all open trades far past the stop loss based on the close_by_loss input (ex: set to -100 & EA closed all aggregate positions at -135.02). Do you know why this would happen?

Thanks,
LCFX
Yes,

Stop loss will start executing once profit is < or = your stop loss parameter. Just 1 pip movement, could increase your loss by that much depending on how many orders are open and how many lots you have. Also take into account time taken for close all cycle, and slippage, and you have your answer.

The same could work for TP as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #173 (permalink)  
Old 01-22-2008, 03:40 AM
WNW's Avatar
WNW WNW is offline
Senior Member
 
Join Date: Feb 2006
Location: Motown, USA
Posts: 385
WNW is on a distinguished road
Bug Report

Hi wolfe,

Thanks for the new version.

Please see the attached pic.
Note that 2 buys and 2 sells were taken as opening trades, each within 1 pip of the other.

This does not seem right...
Attached Images
File Type: gif tfx.gif (66.6 KB, 311 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #174 (permalink)  
Old 01-22-2008, 06:02 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Quote:
Originally Posted by WNW View Post
Hi wolfe,

Thanks for the new version.

Please see the attached pic.
Note that 2 buys and 2 sells were taken as opening trades, each within 1 pip of the other.

This does not seem right...
I had the comments wrong in the ordersend() commands. If you notice in your screen shot they all say TFX_LONG_START. This is not really what happened.

It bought @ 1.4455, then sold @ 1.4443, then bought @ 1.4456, then sold @ 1.4444. That seams like it is working right. The comments are messed up and confusing.

The ordersend() comments will be fixed in v1_4.

Thanks for pointing that out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #175 (permalink)  
Old 01-22-2008, 10:24 PM
Senior Member
 
Join Date: Jun 2006
Posts: 248
giapel is on a distinguished road
tfx modified

hi,
i 've modified ea using the same logic but introducing another way to operate :

if price is over bollinger band and trend is up ( i am using turbo_jma) open long,
if price is below bollinger band and trend down open sell, i' ve used step = 5, tp= 0.1% and sl= 50%

could you see it and if you consider a dood idea continue to develop ?
thanks in advance
giapel
Attached Images
File Type: gif screen tfx1.7.gif (62.7 KB, 256 views)
Attached Files
File Type: mq4 Turbo_JMA.mq4 (10.8 KB, 79 views)
File Type: mq4 TFX v1_7.mq4 (21.0 KB, 77 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #176 (permalink)  
Old 01-22-2008, 10:31 PM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Still working

While v1_4 is a work in progress, I need to know if there are any more problems with v1_3.

This has taken quite a few tries to get right.(and still working) Thanks to all who have been testing TFX and pointing out bugs. I have been trying to include all of your ideas in the development of TFX. Sorry to those who have had suggestions and haven't seen results yet.

The code is getting increasingly more complex. v1_3 has over 500 lines of code, double that of the first version. v1_4 promises to be longer still. Just one character omitted or in the wrong place, and it will not work properly. Extremely tempermental, (and literal) these EA's can be!

Thanks again for your support and patience, as we work through this trading method together.

Please post any questions, comments, or concerns, as this will help in the development of v1_4.

-Wolfe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #177 (permalink)  
Old 01-23-2008, 02:00 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
Does the include file need to be reinstalled?

ES

Quote:
Originally Posted by giapel View Post
hi,
i 've modified ea using the same logic but introducing another way to operate :

if price is over bollinger band and trend is up ( i am using turbo_jma) open long,
if price is below bollinger band and trend down open sell, i' ve used step = 5, tp= 0.1% and sl= 50%

could you see it and if you consider a dood idea continue to develop ?
thanks in advance
giapel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #178 (permalink)  
Old 01-23-2008, 02:09 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Currently testing v1_4 on multiple currencies. Currently attached to 6 pairs at the same time. Seems to be working well. I'll continue with some of the other suggestions.
Attached Images
File Type: gif v1_4.gif (99.6 KB, 246 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #179 (permalink)  
Old 01-23-2008, 02:40 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Quote:
Originally Posted by alw2142 View Post
Hi Wolfe,

I am testing along with LCFX.

In addition to ES' comments above, please note that the readout only displays 1 decimal place for both Open Profit and Closed Profit.

When you are looking at that portion of the code, can you consider making the readout display go to two decimal places?

I think what is happening is if the second decimal place is 0, it is dropped off. Not sure how to fix that. My Open Profit is showing two decimal places.
Attached Images
File Type: gif v1_4usdchf.gif (9.4 KB, 236 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #180 (permalink)  
Old 01-23-2008, 03:53 AM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by wolfe View Post
I think what is happening is if the second decimal place is 0, it is dropped off. Not sure how to fix that. My Open Profit is showing two decimal places.
Use DoubleToStr() within the Comments() function - the second parameter sets the number of decimal places displayed.
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:40 PM.



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