• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 7:31pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:31pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Martingale, Anti-martingale, and Compounding 40 replies

Martingale, Reverse Martingale, Modified Martingale, Maths 1 reply

Martingale Calculation EA (also reverse martingale) 3 replies

How to change this Martingale to Reverse Martingale ? 3 replies

Martingale vs. Non Martingale (Simplified RoR vs Profit) 1 reply

  • Trading Systems
  • /
  • Reply to Thread
  • Subscribe
  • 184
Attachments: Little Martingale EA
Exit Attachments
Tags: Little Martingale EA
Cancel

Little Martingale EA

  • Last Post
  •  
  • 1 3334Page 353637 50
  • 1 34Page 3536 50
  •  
  • Post #681
  • Quote
  • Nov 16, 2017 2:17pm Nov 16, 2017 2:17pm
  •  ebeckers
  • Joined Nov 2017 | Status: Member | 376 Posts
Hi Guys !

Just found this thread and as i have a weakness for martingale ea's i was very happy to see that the author shared the source code.
Is he back already and working on it again ??
If not.. i would be happy to see if i can fix any open bugs and/or add new features.
If you guys could explain the current bugs/issues with UnNomGuaiV1.12 then i'll take a look at it and try to fix it
 
2
  • Post #682
  • Quote
  • Nov 16, 2017 6:14pm Nov 16, 2017 6:14pm
  •  luca1073
  • | Joined Oct 2015 | Status: Member | 411 Posts
Quoting ebeckers
Disliked
Hi Guys ! Just found this thread and as i have a weakness for martingale ea's i was very happy to see that the author shared the source code. Is he back already and working on it again ?? If not.. i would be happy to see if i can fix any open bugs and/or add new features. If you guys could explain the current bugs/issues with UnNomGuaiV1.12 then i'll take a look at it and try to fix it
Ignored
thanks for your availabilty . Im using v1.4
but all versions seemed to have aome
sort of issue. EA doesnt respect settings if
restarted(platform crash or reboot) that
means if you reload platform EA will take
trades at levels as if it had just started but
only at pip levels. Example you are at 0.12
step. And you have as setting that next
trade will be taken at 100 pips. Well EA will
take it 50 pips later only as if it was the first
trade. Sequence in lot amount is respected.
In the past i had noticed issues on double
trades also . Thanks for the help, by the way as you may have guessed i like this EA!
 
 
  • Post #683
  • Quote
  • Nov 17, 2017 3:57pm Nov 17, 2017 3:57pm
  •  ebeckers
  • Joined Nov 2017 | Status: Member | 376 Posts
Ok here is a new version !
Fixed the following issues

- cleaned up source code
- Fixed issues that ea could open new trades outside time filter
- Fixed issues when you have some other ea on another chart, but on the same currency pair
- Fixed issues which happened if you had this ea running on multiple charts simultaneously
- Fixed issue that EA did not remember settings after crash/reboot/restart
- added small info panel so you can monitor the state of the EA
- added feature where you can choose between fixed initial lot size or dynamic initial lot size, where initial lot size depends on a max risk % of your account

And.. i've started work on a 2nd entry method.
At the moment you can choose between
- option 1) open 1 buy and 1 sell at startup and see which one survives,
- option 2) use the cci for determining entry.

What i would like to add is a signal based on the SMA7 and the parabolic SAR.
When parabolic SAR < SMA then we open a sell, when parabolic SAR > SMA7 then we open a buy.
Perhaps this helps to get a better entry


Happy testing and let me know if you guys have more requests!
Attached Image (click to enlarge)
Click to Enlarge

Name: Screen Shot 2017-11-17 at 21.49.48.png
Size: 220 KB
Attached File(s)
File Type: mq4 UnNomGuaiV1.13.mq4   27 KB | 686 downloads
 
1
  • Post #684
  • Quote
  • Edited 9:45pm Nov 17, 2017 8:04pm | Edited 9:45pm
  •  luca1073
  • | Joined Oct 2015 | Status: Member | 411 Posts
Quoting ebeckers
Disliked
Ok here is a new version ! Fixed the following issues - cleaned up source code - Fixed issues that ea could open new trades outside time filter - Fixed issues when you have some other ea on another chart, but on the same currency pair - Fixed issues which happened if you had this ea running on multiple charts simultaneously - Fixed issue that EA did not remember settings after
crash/reboot/restart - added small info
panel so you can monitor the state of the
EA - added feature where you can choose
between fixed initial lot size or dynamic
initial...
Ignored
AMAZING!!! thank you so much ebeckers will make some tests with it . Right now i have 1.4 running so im scared to change it wirh v12 i dont have source code for 1.4 not even Joan has it but i guess v12 is similar if you don't use those inputs at the start of the fixed lots at levels. Anyway will test, you are really good and kind

Luca
 
 
  • Post #685
  • Quote
  • Edited 11:44pm Nov 17, 2017 11:25pm | Edited 11:44pm
  •  luca1073
  • | Joined Oct 2015 | Status: Member | 411 Posts
something else ebeckers i ve installed the new version you shared (v1.13) on a fresh new vps. if i put spacelot to 0 will it just calculate the lot from the MM set to true with 0.02 and multiplier 1.5 and basket profit of 5 ?. basically i want the EA to start at lots 0.02 and multiply from 0.02 at increments of 1.5 only(like v1.4) with no extra feature but i want to test yours to see how it behaves when platform reboots or crashes

increments every 50 pips (500 pipettes):

first order: 0.02
second order:0.03
third order: 0.05
fourth order: 0.08
fifth order: 0.12

increment after 100 pips (1000 pipettes)

sixth order : 0.18

increment after 200 pips (2000 pipettes)

seventh order: 0.27

-------------

after 0.27 i would disable the EA on that particular trending pair by unticking allow live trading and "wait" for price to go back....lol

plaese have a look at sreenshot about the settings that i ve put and tell me if in your opinion the EA would perform like i said with these settings. probably not, but i ask, Thanks a lot again
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot (3672).png
Size: 155 KB
 
 
  • Post #686
  • Quote
  • Nov 17, 2017 11:45pm Nov 17, 2017 11:45pm
  •  rammer13
  • | Joined Apr 2015 | Status: Member | 139 Posts
I like martingales will try and get back with results Cheers !!!
 
1
  • Post #687
  • Quote
  • Nov 18, 2017 3:12am Nov 18, 2017 3:12am
  •  ebeckers
  • Joined Nov 2017 | Status: Member | 376 Posts
Quoting luca1073
Disliked
something else ebeckers i ve installed the new version you shared (v1.13) on a fresh new vps. if i put spacelot to 0 will it just calculate the lot from the MM set to true with 0.02 and multiplier 1.5 and basket profit of 5 ?. basically i want the EA to start at lots 0.02 and multiply from 0.02 at increments of 1.5 only(like v1.4) with no extra feature but i want to test yours to see how it behaves when platform reboots or crashes increments every 50 pips (500 pipettes): first order: 0.02 second order:0.03 third order: 0.05 fourth order: 0.08 fifth...
Ignored
Good question luca!

Please set
- MM = false
- lotsize= 0.02
- multiplier = 1.5
and then your other settings like spacing etc.. Then it should work. But will test it myself just 2 b sure

Only set MM=true if you want to use a dynamic initial lot size which is based on your account balance and the % risk you want.
And please set lot digits when using MM=true
 
1
  • Post #688
  • Quote
  • Nov 18, 2017 4:12am Nov 18, 2017 4:12am
  •  luca1073
  • | Joined Oct 2015 | Status: Member | 411 Posts
Quoting ebeckers
Disliked
{quote} Good question luca! Please set - MM = false - lotsize= 0.02 - multiplier = 1.5 and then your other settings like spacing etc.. Then it should work. But will test it myself just 2 b sure Only set MM=true if you want to use a dynamic initial lot size which is based on your account balance and the % risk you want. And please set lot digits when using MM=true
Ignored

I will do it now, so it will be ready for monday! Thanks
 
 
  • Post #689
  • Quote
  • Edited 6:02am Nov 18, 2017 5:28am | Edited 6:02am
  •  ebeckers
  • Joined Nov 2017 | Status: Member | 376 Posts
Ok just did a simple test myself with following settings:

  1. MM : false
  2. lot size : 0.02
  3. spacePips : 10pips
  4. space1Pips : 50pips
  5. multiplier: 1.5


As you can see in the screenshot it opened
- 1 buy trade and 6 sell trades
- sell trade #1-#5 are each 10 pips apart with lot sizes 0.02 , 0.03, 0.05, 0.08, 0.12
- and sell trade #6 opened at 50 pips distance with lot size 0.18

So i think it works nicely :-

Release notes of 1.131:

  1. settings.. Please note.. The spacing is now in PIPS and not in points anymore . So spacePips=10 means 10 pips !!
  2. settings... Added 2nd entry method based on SMA/parabolic (still beta and experimental)
  3. EA will now work ok on 3,4,5 digit brokers
  4. Fixed some small bugs where GUI panel show incorrect profit due to swap/commissions not being accounted for
  5. Added some more info to the GUI panel
  6. EA will now show error window if any of the settings are not correct (like trying to use a lot size of 0.0004)
  7. more code cleanup

Attached Image (click to enlarge)
Click to Enlarge

Name: test.jpg
Size: 954 KB
Attached File(s)
File Type: mq4 UnNomGuaiV1.131.mq4   32 KB | 641 downloads
 
1
  • Post #690
  • Quote
  • Nov 18, 2017 6:19am Nov 18, 2017 6:19am
  •  luca1073
  • | Joined Oct 2015 | Status: Member | 411 Posts
Quoting ebeckers
Disliked
Ok just did a simple test myself with following settings: MM : false lot size : 0.02 spacePips : 10pips space1Pips : 50pips multiplier: 1.5 As you can see in the screenshot it opened - 1 buy trade and 6 sell trades - sell trade #1-#5 are each 10 pips apart with lot sizes 0.02 , 0.03, 0.05, 0.08, 0.12 - and sell trade #6 opened at 50 pips distance with lot size 0.18 So i think it works nicely :- Release notes of 1.131: settings.. Please note.. The spacing is now in PIPS and not in points anymore . So spacePips=10 means 10 pips !! settings... Added...
Ignored

ok i had some issues with a vps, the new one i opened today is not working well. better to terminate the istance and put a new one with this version, thanks!!. will ask questions if somthing is not clear to me
 
1
  • Post #691
  • Quote
  • Nov 18, 2017 6:24am Nov 18, 2017 6:24am
  •  luca1073
  • | Joined Oct 2015 | Status: Member | 411 Posts
Quoting ebeckers
Disliked
Ok just did a simple test myself with following settings: MM : false lot size : 0.02 spacePips : 10pips space1Pips : 50pips multiplier: 1.5 As you can see in the screenshot it opened - 1 buy trade and 6 sell trades - sell trade #1-#5 are each 10 pips apart with lot sizes 0.02 , 0.03, 0.05, 0.08, 0.12 - and sell trade #6 opened at 50 pips distance with lot size 0.18 So i think it works nicely :- Release notes of 1.131: settings.. Please note.. The spacing is now in PIPS and not in points anymore . So spacePips=10 means 10 pips !! settings... Added...
Ignored

if i want fixed lots of o.o2 , 0.03 ,0.05 , o.08. 0.12 etc at my desired pip levels i have to put 0 in spacelots?
 
 
  • Post #692
  • Quote
  • Nov 18, 2017 7:16am Nov 18, 2017 7:16am
  •  ebeckers
  • Joined Nov 2017 | Status: Member | 376 Posts
Ok let me try to explain how it works now.
If we can all understand this then we can see if this is what we want, or if we need changes.

At the moment you have 2 options with this EA..
1) Use a multiplier to calculate to lot-size
2) Don't use a multiplier and set the lot-sizes yourself manually

1) Using the multiplier to calculate the lot size
Condition : multiplier > 0
In this case the multiplier is used to calculate lot size for each trade
So spaceLots (space1Lots, space2Lots, space3Lots) are not used in this case
Example lets say multiplier=1.5, lot size=0.02, spaceOrders=2, space1Orders=3, space2Orders=4, space3Orders=99
then:

-- Starting 2 orders since spaceOrders=2 --
Trade #1 : 0.02 (initial lot size)
Trade #2 : 0.03 (=0.02 * 1.5) Opened spacePips from trade #1

-- Next 3 orders since space1Orders=3 --
Trade #3 : 0.05 (=0.03 * 1.5) Opened space1Pips from trade #2
Trade #4 : 0.08 (=0.05 * 1.5) Opened space1Pips from trade #3
Trade #5 : 0.12 (=0.08 * 1.5) Opened space1Pips from trade #4

-- Next 4 orders since space2Orders=4 --
Trade #6 : 0.18 (=0.08 * 1.5) Opened space2Pips from trade #5
Trade #7 : 0,27 (=0.18 * 1.5 )Opened space2Pips from trade #6
Trade #8 : 0,40 (=0.40 * 1.5) Opened space2Pips from trade #7
Trade #9 : 0,60 (=0.60 * 1.5) Opened space2Pips from trade #8

-- Next 99 orders since space3Orders=99 --
Trade #10 : 0,9 (=0.60 * 1.5) Opened space3Pips from trade #9
....

2) Don't use the multiplier
Condition : multiplier = 0
Lotsize is set only by spaceLots (space1Lots, space2Lots, space3Lots)
multiplier is NOT used in this case
Example lets say:
lot size:0.02, spaceOrders=2
space1Lots=0.04, space1Orders=3
space2Lots=0.08, space2Orders=4
space3Lots=0.12, space3Orders=99

-- Starting 2 orders of 0.02 since lotsize=0.02 and spaceOrders=2 --
Trade #1 : 0.02 #1
Trade #2 : 0.02 #2 Opened spacePips from trade #1

-- Next 3 orders of 0.04 since space1Orders=3 and space1Lots=0.04 --
Trade #3 : 0.04 #1 Opened space1Pips from trade #2
Trade #4 : 0.04 #2 Opened space1Pips from trade #3
Trade #5 : 0.04 #3 Opened space1Pips from trade #4

-- Next 4 orders of 0.08 since space2Orders=4 and space2Lots=0.08 --
Trade #6 : 0.08 #1 Opened space2Pips from trade #5
Trade #7 : 0.08 #2 Opened space2Pips from trade #6
Trade #8 : 0.08 #3 Opened space2Pips from trade #7
Trade #9 : 0.08 #4 Opened space2Pips from trade #8

-- Next 99 orders of 0.12 since space3Orders=99 and space3Lots=0.12 --
Trade #10: 0.12 #1 Opened space3Pips from trade #9
...

Hope this explains it a bit
 
1
  • Post #693
  • Quote
  • Nov 18, 2017 8:20am Nov 18, 2017 8:20am
  •  freedom48
  • Joined Sep 2009 | Status: Member | 1,621 Posts
Hi friends, on my weekend I wanted to make tests on this . Now on the last EA post in Gu 15 minutes has nice move on default. But I can not again trade with higher lots . I set to true MM it did not help. I set lot sizes manually higher it did not help. I played around with the LotDigits and did not help unfortunately. What I am doing wrong ? and can not go higher. I know I am not specailizst with this EA, since I am not a long time reading this thread, but increasing lot size wouldn't be so complicated ) I am diabetic, maybe I have much hunger and can not thing correctly.
" Accepting losses is the most important single investment devise "
 
 
  • Post #694
  • Quote
  • Nov 18, 2017 8:53am Nov 18, 2017 8:53am
  •  ebeckers
  • Joined Nov 2017 | Status: Member | 376 Posts
Quoting freedom48
Disliked
Hi friends, on my weekend I wanted to make tests on this . Now on the last EA post in Gu 15 minutes has nice move on default. But I can not again trade with higher lots . I set to true MM it did not help. I set lot sizes manually higher it did not help. I played around with the LotDigits and did not help unfortunately. What I am doing wrong ? and can not go higher. I know I am not specailizst with this EA, since I am not a long time reading this thread, but increasing lot size wouldn't be so complicated ) I am diabetic, maybe I have much...
Ignored
Just use the default settings and then change the Lots (default=0.02) to whatever you want..
(If you set MM = true then lotsize is calculated automatically based on your account balance and the Risk..)
 
 
  • Post #695
  • Quote
  • Nov 18, 2017 9:22am Nov 18, 2017 9:22am
  •  freedom48
  • Joined Sep 2009 | Status: Member | 1,621 Posts
Quoting ebeckers
Disliked
{quote} Just use the default settings and then change the Lots (default=0.02) to whatever you want.. (If you set MM = true then lotsize is calculated automatically based on your account balance and the Risk..)
Ignored
Thanks, I understand you very well but the results are very different, please see the charts and sets of all 3 options, on the last 2 screens even spikes. There should be a big problem and can not increase lot size as same from the default BT result
Default set :110 trades 115 usd win and DD 2.2% chart below
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot1.png
Size: 30 KB

My Change form 0.02 lots to 0.2 lots : 335 trades 348 usd win and DD 48% chart below
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot2.png
Size: 36 KB

My Change MM true others default started to trade with 0.1 lots by 5000 balance: 205 trades 297 usd win and DD 24%
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot3.png
Size: 36 KB
" Accepting losses is the most important single investment devise "
 
 
  • Post #696
  • Quote
  • Edited 9:50am Nov 18, 2017 9:32am | Edited 9:50am
  •  ebeckers
  • Joined Nov 2017 | Status: Member | 376 Posts
Quoting freedom48
Disliked
{quote} Thanks, I understand you very well but the results are very different, please see the charts and sets of all 3 options, on the last 2 screens even spikes. There should be a big problem and can not increase lot size as same from the default BT result Default set :110 trades 115 usd win and DD 2.2% chart below{image} My Change form 0.02 lots to 0.2 lots : 335 trades 348 usd win and DD 48% chart below{image} My Change MM true others default started to trade with 0.1 lots by 5000 balance: 205 trades 297 usd win and DD 24%{image}
Ignored
If you increase the lot size you will reach your profit quicker and thus will open new trades quicker..
As an example
Suppose with default settings of 0.02 lots and profit of $5
- it opens a trade of at 00:00
- it reaches a $5 profit at 01:00

But when you use a lotsize of lets say 0.08
- it opens a trade of at 0 0:00
- it reaches a $5 profit at 00:30
This means it will start opening new trades already at 00:30 and these could become losers and thus the quicker you will encounter spikes.
Spikes are quite normal with martingale. I see them using the default settings as well. Just backtest GBPUSD from 1/1/2017 - 31/1/2017 on M15 and you will see them
 
 
  • Post #697
  • Quote
  • Nov 18, 2017 9:45am Nov 18, 2017 9:45am
  •  luca1073
  • | Joined Oct 2015 | Status: Member | 411 Posts
Quoting ebeckers
Disliked
Ok let me try to explain how it works now. If we can all understand this then we can see if this is what we want, or if we need changes. At the moment you have 2 options with this EA.. 1) Use a multiplier to calculate to lot-size 2) Don't use a multiplier and set the lot-sizes yourself manually 1) Using the multiplier to calculate the lot size Condition : multiplier > 0 In this case the multiplier is used to calculate lot size for each trade So spaceLots (space1Lots, space2Lots, space3Lots) are not used in this case Example lets say multiplier=1.5,...
Ignored

ok thanks again for the detailed explanation, amazing
 
 
  • Post #698
  • Quote
  • Nov 18, 2017 9:45am Nov 18, 2017 9:45am
  •  freedom48
  • Joined Sep 2009 | Status: Member | 1,621 Posts
Quoting ebeckers
Disliked
{quote} If you increase the lot size you will reach your profit quicker and thus will open new trades quicker.. As an example Suppose with default settings of 0.02 lots and profit of $5 - it opens a trade of at 00:00 - it reaches a $5 profit at 01:00 But when you use a lotsize of lets say 0.08 - it opens a trade of at 0 0:00 - it reaches a $5 profit at 00:30 This means it will start opening new trades already at 00:30 and these could become losers and thus the spikes
Ignored
Voila, now all is fine. Thank you much
" Accepting losses is the most important single investment devise "
 
 
  • Post #699
  • Quote
  • Nov 18, 2017 10:20am Nov 18, 2017 10:20am
  •  freedom48
  • Joined Sep 2009 | Status: Member | 1,621 Posts
ebeckers, sorry again me. I have the similar problem on Autop, if you please can help me out of that too it would be great, thank you much , it isnt the correct thread, sorry too all
" Accepting losses is the most important single investment devise "
 
 
  • Post #700
  • Quote
  • Nov 18, 2017 10:33am Nov 18, 2017 10:33am
  •  ebeckers
  • Joined Nov 2017 | Status: Member | 376 Posts
Quoting freedom48
Disliked
ebeckers, sorry again me. I have the similar problem on Autop, if you please can help me out of that too it would be great, thank you much , it isnt the correct thread, sorry too all
Ignored
love autop, but source is not available so cannot help you with that.
 
 
  • Trading Systems
  • /
  • Little Martingale EA
  • Reply to Thread
    • 1 3334Page 353637 50
    • 1 34Page 3536 50
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023