3 MA Strategy

Strategies are published here.

Moderator: admin

3 MA Strategy

Postby Apprentice » Mon Oct 12, 2020 3:24 am

EURUSD H1 (10-12-2020 1022).png

Based on request.
viewtopic.php?f=27&t=70518
3 MA Strategy.lua
(34.96 KiB) Downloaded 28 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27499
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: 3 MA Strategy

Postby ami9192 » Mon Oct 12, 2020 8:20 am

Hi Mr Apprentice,

Thank you for turning this around in such a timely manner, and I really appreciate all you do for this community and for us traders. However upon backtesting, I've found some faults in the current strategy you've sent, as trades aren't opening or closing at the right times.

The first screenshot illustrates some issues I've found. For reference, the 5/Fast EMA is yellow, 20/medium is green and 50/slow is the red line.

Issue 1 is where the strategy entered a Long trade even though both the fast and medium are underneath the slow. It then closed for a loss when the fast recrossed the medium it seems. That crossing point should actually be a sell trigger.

Issue 2 is when a buy trade was entered despite the medium EMA not having crossed the Slow yet. Where the strategy seemed to work, is the trade to the right of that. It opened when the fast crossed the Medium, when both the fast and medium were above the slow.

The second screenshot is from right after that trade closed, and no further trades were entered despite there being triggers to do so. I've highlighted the buy triggers with green circles, and the close points in pink circles. These trades weren't entered whilst the strategy was being tested, but should have as all the criteria was met. T4, the circle highlighted in red is when a sell trade should've occurred too. The Fast EMA had crossed the Slow, and the Medium EMA crossed the slow within the allowed 5 hour window, meaning all criteria was met for a trade.

I hope this all makes sense, and is fixable. We really appreciate all you do here, and look forward to your further help!

All hail The Apprentice! :D
Attachments
3EMa strat faults 1.jpg
3EMa strat faults 2.jpg
ami9192
 
Posts: 4
Joined: Mon Oct 05, 2020 9:49 am

Re: 3 MA Strategy

Postby Apprentice » Tue Oct 13, 2020 7:59 am

place a buy as long as the the medium has crossed the slow within 5 hours of the fast crossing the slow. (Hope that makes sense)


medium and slow are red and green lines on your chart.
And indeed we have a cross within a set period.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27499
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: 3 MA Strategy

Postby ami9192 » Tue Oct 13, 2020 8:31 am

Yes so the medium is the green line and the slow is the red line.

For example for that "Issue 2", the fast has crossed the slow, however the medium hasn't, yet there's a buy trade put on. Additionally, had that trade not been put on, when the medium then crosses the slow 15 hours later, under the rules we wouldn't execute a trade as it's not in the 5 hour crossing window (it took 15 hours to cross after the fast).

In the second screenshot, all of those highlighted trades should've been triggered at the highlighted points but weren't.

Again hope this makes sense :D !
ami9192
 
Posts: 4
Joined: Mon Oct 05, 2020 9:49 am


Return to Custom Strategies

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 3 guests