Ambler Gambler EA
  #1 (permalink)  
Old 07-11-2007, 04:50 PM
Sophomore
 
Join Date: Feb 2007
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
anamy will become famous soon enough
Default Ambler Gambler EA

This is a martingale EA that I made for Gazuz a few months ago. I haven't been able to get a hold of him lately, so I was not able to ask him if it was okay to post the system. Rather than having it sit around on my hard drive, I thought I would post it up on this forum. The following is Gazuz's explanation of the system which I coded:

Quote:
Buy and Sell X lots (determined by a variable "A") this means we will go in both directions from the beginning, a sort of hedging minus the spread. Set a take profit at X pips (other variable "B"). Once one take profit is reached, for the sake of argument it went up B pips, The close the BUY position, open another one and close the SELL position. Now re-open BUY position with A lots and open a SELL position with A*C lots (C is a variable to mutilply the number of lots by) resulting in having a net profit of 0 minus the spread, instead of just the loss or just the gain. Later we keep applying this algorithm. If the price goes up again B pips, the BUY position is closed with the profit and the SELL position is closed with the loss, we re-open another BUY positionn in intialy lots. Now we open a SELL position with A*C*C (it keeps increasing until that position wins). Now lets assume that the price falls B pips, the sell position closes with a profit and hypothetically should cover the losses plus the intial profit (depending on our C value). We close the BUY position with a loss. This time we open a BUY position with A*C and open a SELL with A. I'll recap it below in less words and more math.

A=1
B=10
C=2

Open BUY position @ 1.2900 with A lots
Open SELL position @ 1.2900 with A lots

Price goes to 1.2910

Close BUY position @ 1.2910, gain $100*A (1 lot = $10)
Close SELL position @ 1.2910, lose $100*A
Open BUY position @ 1.2910 with A lots
Open SELL position @ 1.2910 with A*C lots

Price goes to 1.2920

Close BUY position @ 1.2920, gain $100*A
Close SELL position @ 1.2920, lose $100*(A*C)
Open BUY position @ 1.2920 with A lots
Open SELL position @1.2920 with A*C*C lots

Price goes to 1.2910

Close BUY position @ 1.2910, lose $100*A
Close SELL position @ 1.2910, gain $100*(A*C*C)
Open BUY position @ 1.2910 with A*C lots
Open SELL position @1.2910 with A lots

Price goes to 1.2920

Close BUY positon @ 1.2920, gain $100*(A*C)
Close SELL position @ 1.2910, lose $100*A


Now I think thats enogh I proved my point, using real numbers if we start with lets say $10,000 we would end with:

$100 - $100 = 0
$100 - $200 = -100 = -100
-$100 + $400 = +300 = +200
+$200 - $100 = +100 = +300

+$300
by buying and selling

versus the original of only chosing one side which results in:

Sell only:
-$100
-$200
+$400
-$100
=+$100

or
Buy only
+$100
+$100
-$100
+$200
=+$300

This means whatever way it goes, we will make profit as much as possible and not go as negative as we would in the original Martingale case
As with most martingale, a sustained trend in either direction will hurt your account big time. If anyone wants to test it, I would really appreciate it. You can post up some account statements if you decide to.
Attached Files
File Type: mq4 Ambler Gambler v1.3.mq4 (12.4 KB, 44 views)
File Type: zip AmblerTest.zip (16.4 KB, 47 views)
Sponsored Links Shark EA Ultimate
Actual Profits on Live Account: +1064%
Since Jan 2007. View Live Statements.
__________________
Coder For Hire : : : Message me for details.
Reply With Quote
  #2 (permalink)  
Old 07-12-2007, 12:55 PM
bossxero's Avatar
Forex Leader
 
Join Date: Nov 2006
Posts: 453
Thanks: 110
Thanked 87 Times in 53 Posts
bossxero will become famous soon enoughbossxero will become famous soon enough
Send a message via ICQ to bossxero Send a message via MSN to bossxero Send a message via Yahoo to bossxero Send a message via Skype™ to bossxero
Default

What are u looking for? backtest or forward test?
__________________
F r e e___F o r e x___E b o o k s___a n d___S t u f f s

-> Cheap MQL Coding service for your EA/indicator is Here <- <-

Reply With Quote
  #3 (permalink)  
Old 07-13-2007, 02:31 AM
Sophomore
 
Join Date: Feb 2007
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
anamy will become famous soon enough
Default

Quote:
Originally Posted by bossxero View Post
What are u looking for? backtest or forward test?
Forward tests, please. On multiple pairs, with large TP (let's say 60+).
__________________
Coder For Hire : : : Message me for details.
Reply With Quote
  #4 (permalink)  
Old 07-13-2007, 12:10 PM
Libros's Avatar
Sophomore
 
Join Date: Jan 2007
Posts: 89
Thanks: 12
Thanked 7 Times in 7 Posts
Libros is on a distinguished road
Default

wrong logic anamy.

"let think buy and sell in the same price and same lot=0".

the reality is instead of buy and sell first, we do not take any position.->same+we don't pay spread at all.
(buy 1 + sell 1= 0)

1.when price goes 1.2910 for the first time, we sell for the first time.
(buy 1+sell 2= sell 1)

2. when price goes 1.2920 , we sell more lot than original bcs:
(buy 1 + sell 4= sell 3)

3.etc

and you will see the result is same+we don't cost spread.

this way if you want compare it with the original one.
+on the original, more margin can be use than this.(this hedging divide margin by two)


i wonder what hedging use for.

Last edited by Libros : 07-13-2007 at 12:30 PM.
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:33 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast