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
  #91 (permalink)  
Old 01-15-2008, 07:07 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 2,716
ElectricSavant is on a distinguished road
Simply put...you cannot apply a sliding scale (this is what a percent does) to the same progression over and over again , trade by trade...as you progressivley set the goal harder and harder and harder with increasing exposure values, in other words without increasing leverage or progression.

Spoonfeed:

1 instrument
initial:1K
$25.00 TP (Double this when you reach 2k...not before!)
$500.00 SL (you need room to run...this is a hedge of long and short...do not forget, pyramiding is your salvation) (Double this when you reach 2k, not before!)


USD/JPY : NextTrade=16
Start 0.01 (Double this when you reach 2k, not before)
increment 0.01 (Double this when your reach 2K, not before!)
CloseAllMax "false"
TF:5

ES
__________________
ElectricSavant Challenge™ (Ends 10/09/08)

Live Portfolio (This takes a while to download as it is a big excel spreadsheet)

Last edited by ElectricSavant; 01-15-2008 at 07:24 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #92 (permalink)  
Old 01-15-2008, 07:16 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 2,716
ElectricSavant is on a distinguished road
LCFX,

did the red text help?

ES
__________________
ElectricSavant Challenge™ (Ends 10/09/08)

Live Portfolio (This takes a while to download as it is a big excel spreadsheet)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #93 (permalink)  
Old 01-15-2008, 07:19 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 2,716
ElectricSavant is on a distinguished road
LCFX,

Print out what I wrote in the long post...you need to learn this...it's easier if you keep a three-ring binder for review of hard copies.

Seriously...I do it all the time...I might even print out some of your posts too!

ES
__________________
ElectricSavant Challenge™ (Ends 10/09/08)

Live Portfolio (This takes a while to download as it is a big excel spreadsheet)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #94 (permalink)  
Old 01-15-2008, 07:27 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 2,716
ElectricSavant is on a distinguished road
LCFX,

my humble apologies...I did not realize this was your baby.

You and wolfe have a brilliant idea here...(there is just a little flaw in some logic...I am still testing and maybe I can find some more...but I have trouble to explain things if you have not noticed)

I am really, really embarrassed....

Am I understanding your EA theory correctley?

ES
__________________
ElectricSavant Challenge™ (Ends 10/09/08)

Live Portfolio (This takes a while to download as it is a big excel spreadsheet)

Last edited by ElectricSavant; 01-15-2008 at 07:54 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #95 (permalink)  
Old 01-15-2008, 11:32 PM
Senior Member
 
Join Date: Feb 2007
Posts: 160
lcfxtrader is on a distinguished road
ES,

Here's the system in a nut shell.

Hi wolfe,

Do you happen to have an EA that would do the following that you could share?

-User decides initial trade direction (let's say long) and starting lot size (say .1 lot)
-New position would be added every time the market moves x pips (say 10 pips) up or down away from the most recent position taken. If market moves up from the original position 10 pips a new long is added. If the market moves down 10 pips from the last position a short is added (basically following the market looking to catch a trend in either direction).
-Each new position size increased by x (ex: .1 lot)
-Take profit based on account %
-Stop loss based on account %
-Max number of standard lots before EA can't taken any new positions (at this point the T/P or S/L will need to be hit when max is reached)
-Re-enter mode would start a new progression again once the prior progression has ended do to T/P or S/L being hit
-Magic number to run on multiple pairs

If you don't have this, could you please code it so we could test it? I would very much appreciate it.

Thanks,
LCFX
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #96 (permalink)  
Old 01-15-2008, 11:51 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 2,716
ElectricSavant is on a distinguished road
It seems like wolfe is doing a great job...but I just got a ping error and the EA does not retry the entry...I think the progression is ended because of that...there may be a way for stability to be improved..

ES

Quote:
Originally Posted by lcfxtrader View Post
ES,

Here's the system in a nut shell.

Hi wolfe,

Do you happen to have an EA that would do the following that you could share?

-User decides initial trade direction (let's say long) and starting lot size (say .1 lot)
-New position would be added every time the market moves x pips (say 10 pips) up or down away from the most recent position taken. If market moves up from the original position 10 pips a new long is added. If the market moves down 10 pips from the last position a short is added (basically following the market looking to catch a trend in either direction).
-Each new position size increased by x (ex: .1 lot)
-Take profit based on account %
-Stop loss based on account %
-Max number of standard lots before EA can't taken any new positions (at this point the T/P or S/L will need to be hit when max is reached)
-Re-enter mode would start a new progression again once the prior progression has ended do to T/P or S/L being hit
-Magic number to run on multiple pairs

If you don't have this, could you please code it so we could test it? I would very much appreciate it.

Thanks,
LCFX
__________________
ElectricSavant Challenge™ (Ends 10/09/08)

Live Portfolio (This takes a while to download as it is a big excel spreadsheet)

Last edited by ElectricSavant; 01-16-2008 at 12:06 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #97 (permalink)  
Old 01-16-2008, 12:19 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 682
wolfe is on a distinguished road
Quote:
Originally Posted by lcfxtrader View Post
Wolfe,

Did you write the take profit and stop loss % to be based on account balance before the trade progressions begin (I believe this is what I requested wasn't it)? The EA has been taken profits, however, all the open positions have not added up to the % TP that I have set. Could you please explain why? All the orders should be closed on either the SL or TP being hit. I can send you print screen if needed.

Thanks,
lcfxtrader
I tried to code the way you explained. Not sure where the problem is yet. Maybe slippage? Maybe the time it takes to close all orders coupled with a fast moving market? Maybe my code! I'm no expert coder, that's why I am doing this for free. I am enjoying this project and am learning a lot from everyone's input.

You do need to enter your TP_Percent and SL_Percent as whole numbers. Example if you want 1% enter 1, not 0.01. The code changes to a decimal later.

Take_Profit=TP_Percent*0.01;
Stop_Loss=SL_Percent*0.01;

A new version will be posted later tonight.

Last edited by wolfe; 01-16-2008 at 12:28 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #98 (permalink)  
Old 01-16-2008, 12:24 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 682
wolfe is on a distinguished road
Quote:
Originally Posted by ElectricSavant View Post
It seems like wolfe is doing a great job...but I just got a ping error and the EA does not retry the entry...I think the progression is ended because of that...there may be a way for stability to be improved..

ES
After the initial strategy is coded, will have to analyze all the code for any potential bugs, to make it "order reliable". I know as it stands now, the code seems to have some "hiccups" every once in a while.

Going to go over what I've done to v1_2 now. Will post later tonight.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #99 (permalink)  
Old 01-16-2008, 01:59 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 682
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, 92 views)
File Type: mq4 TFX v1_2.mq4 (11.2 KB, 104 views)

Last edited by wolfe; 01-16-2008 at 05:16 AM. Reason: RE-POST of TFX v1_2 (small code change)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #100 (permalink)  
Old 01-16-2008, 05:21 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 682
wolfe is on a distinguished road
RE_POST of v1_2

I re-posted v1_2 in previous post with a slight code change.

The problem was that if Use_Manual_Entry was set to false you would still get a pop-up alert stating that trade was disabled. The problem should be fixed now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
martingale

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 05:50 AM.



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