Page 1 of 1

Martingale_EA

PostPosted: Sat Mar 18, 2023 2:55 am
by Apprentice
Based on the request.
https://fxcodebase.com/code/viewtopic.php?f=38&t=73478
Martingale_EA.mq4
(116.69 KiB) Downloaded 246 times

Re: Martingale_EA

PostPosted: Sun Mar 19, 2023 10:53 am
by aloorkar
Not working as i written in description .. ( Image)

Re: Martingale_EA

PostPosted: Mon Mar 20, 2023 7:56 am
by gerryj1968
Hi, thanks for this. I'm new to your platform, I'm giving this EA a go in a Demo account.
I have a real account running a paid (profitable) EA which operates a Martingale type strategy but it's done in such a way that I can't see the code.
I want to try and understand the code behind the EA's so I can tweak and edit to perfect a strategy better.
I've been trading stocks for several years but have never been able to manage the emotional side of trading so I thought I'd give FOREX a go, and in particular algo trading so I can fire and forget...

Thanks again!

Re: Martingale_EA

PostPosted: Mon Mar 20, 2023 10:21 am
by Apprentice
aloorkar can you provide a bit more information?

Re: Martingale_EA

PostPosted: Mon Mar 20, 2023 11:49 am
by gerryj1968
Hi, I've noticed that the EA seems to throw out 0.01 buys and sells simultaneously. It doesn't appear to be scaling up.
Shouldn't it put increasingly larger sells if the price is moving up (short) or increasingly larger buys if the price is moving down (long)? Then take profit on the pull back?

Re: Martingale_EA

PostPosted: Fri Mar 24, 2023 8:37 am
by gerryj1968
Hi, as Akoorla says this EA isn't working as it should I don't this. It just throws out 0.01 buys and sells as levels and doesn't scale into a position, doubling the previous entry and taking profit on the pullback (long or short).
It would be great if you could tweak it so it achieves this.
For me the scaled adds would be on the hourly candle close 'if' its moved 10+ pips (adjustable if possible)

Thanks
gerryj

Re: Martingale_EA

PostPosted: Sat Mar 25, 2023 1:08 pm
by Apprentice
We have added your request to the development list.
Development reference 267.

Re: Martingale_EA

PostPosted: Sun Apr 23, 2023 2:57 pm
by Apprentice
267pic.png

Martingale_EA_v2_First_mannually.mq4
(120.49 KiB) Downloaded 151 times

Re: Martingale_EA

PostPosted: Mon May 01, 2023 3:43 pm
by gerryj1968
Thanks! Will give this version a go.
Appreciated!

Re: Martingale_EA

PostPosted: Tue May 02, 2023 3:26 pm
by gerryj1968
Hi,On the 'about' page it says
"1. First trade must be made manually and the magic number must be zero (0)"
Does this mean I have to manually make the first trade. If so what lot size, which direction long or short?
What is the magic number and where do I set it to zero?
"2. Allow multiple trades at same time"
Please explain
"3. Can control a grid for each trade"
Please explain
"4. In tester: the EA simulates to open random trades after x candles (you can setup this)"
Please explain