Trend Trading EA with Automated Loss Recovery

Post your EA's using ALR here

Trend Trading EA with Automated Loss Recovery

Postby Dewey McG » Sat Aug 16, 2014 4:18 pm

SpiderX » Sat Aug 16, 2014 11:41 am wrote:
Hi Dewey,

That doesnt quite make sense since technically the way it works should be similar to the original.
Hope you are able to figure things out.
Have you considered using something like 70/120 ?
Since the lot sizes are smaller, you can do with a larger zone and smaller tp.

Cheers



It was just a first impression, not backed up by any facts. More testing will help.

I hadn't thought about that but will try it as well
Dewey McG
 
Posts: 444
Joined: Sat Nov 26, 2011 4:20 pm
Location: Tampa FL

Trend Trading EA with Automated Loss Recovery

Postby SpiderX » Sun Aug 17, 2014 6:00 am

Hi

v2.06 is in post 1.
Had some new ideas and couldnt resist making an update on this.
The new versions allow the user to have more precise control on the percent profit of each ALR progression.
Do remember to adjust ALR_CommissionPips according to your broker's commission rate.
In addition, the new feature also serves to protect against unacceptable amount of losses.


v2.06
-Removed ALR_ProfitPips and replaced with ALR_TargetPercentProfit
Use this to set the target percent profit you wish to have at the end of an ALR progression
0 is ok, if you wish to minimize lot sizes, anything higher means higher lot sizes.
i.e: if you set 0.1%, you get a 0.1% profit for your account at the end of each ALR Progression upon hitting tp.

-new variable ALR_MaxPercentLoss
Determines the maximum hit to the account for ALR progression and supercedes MaxALRTrades
Use this to protect your account from more losses than acceptable.
i.e: for 20%, the maximum hit your account can take is 20% and no more.

Code: [Select all]
 Please Login or Register to see this content
<



Cheers
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
User avatar
SpiderX
 
Posts: 576
Joined: Thu Aug 22, 2013 4:50 pm

Trend Trading EA with Automated Loss Recovery

Postby Dewey McG » Mon Aug 18, 2014 3:18 am

I did a comparison using the new EA with ALR II and the previous one that uses ALR I. I picked the EURJPY becasue we know there was a problem trade and I updated my tickdata so we would know the back test was accurate.

Using the new ea we have to use 18 turns to avoid a Stop Loss and set maximum SL to at least 30%.

If we used the original concept, we would have been able to avoid the stoploss as well but LOOK AT THE DRAWDOWN! The account gets all the way down to just $1503 on a 25000 account before breaking even. It also generated less overall profit.
You do not have the required permissions to view the files attached to this post.
Dewey McG
 
Posts: 444
Joined: Sat Nov 26, 2011 4:20 pm
Location: Tampa FL

Trend Trading EA with Automated Loss Recovery

Postby SpiderX » Mon Aug 18, 2014 4:09 am

Dewey McG » Mon Aug 18, 2014 11:18 am wrote:I did a comparison using the new EA with ALR II and the previous one that uses ALR I. I picked the EURJPY becasue we know there was a problem trade and I updated my tickdata so we would know the back test was accurate.

Using the new ea we have to use 18 turns to avoid a Stop Loss and set maximum SL to at least 30%.

If we used the original concept, we would have been able to avoid the stoploss as well but LOOK AT THE DRAWDOWN! The account gets all the way down to just $1503 on a 25000 account before breaking even. It also generated less overall profit.



Hi Dewey,

Not sure if i would be able to stomach a 30% stop out.
imo, a sensible loss limit might be around 10%.
Also, you could consider playing around with ALR_TargetPercentProfit if you like more profits at the end of a leg, with the risk that your lot sizes would grow somewhat faster.
Glad that the new concept is working out much better.

Cheers
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
User avatar
SpiderX
 
Posts: 576
Joined: Thu Aug 22, 2013 4:50 pm

Trend Trading EA with Automated Loss Recovery

Postby Dewey McG » Mon Aug 18, 2014 1:16 pm

SpiderX » Mon Aug 18, 2014 12:09 am wrote:
Hi Dewey,

Not sure if i would be able to stomach a 30% stop out.
imo, a sensible loss limit might be around 10%.
Also, you could consider playing around with ALR_TargetPercentProfit if you like more profits at the end of a leg, with the risk that your lot sizes would grow somewhat faster.
Glad that the new concept is working out much better.

Cheers


I agree--I was just trying to show the difference.

I do think 18 turns is a "black swan" event that would only occur very rarely, which further testing will help confirm either way. As such I think we can allow a little further draw down, but nowhere near 30%. 10% would be the maximum I would look at and probably even less.
Dewey McG
 
Posts: 444
Joined: Sat Nov 26, 2011 4:20 pm
Location: Tampa FL

Trend Trading EA with Automated Loss Recovery

Postby moncsicsi78 » Sun Aug 24, 2014 1:51 pm

I run some backtest and I realized this error in journal tab when I saw a big DD in backtest.
Can you help me, Sypder?

2014.08.24 15:44:05.125 2013.04.23 07:45 DMC ALR EA v2.06 EURJPY,M1: ManageALRTrades:Last trade closed in loss, but next trade not triggered
2014.08.24 15:44:05.125 2013.04.23 07:45 DMC ALR EA v2.06 EURJPY,M1: Alert: ManageALRTrades:Last trade closed in loss, but next trade not triggered


...and there is no "you don't have enough money" error message...
moncsicsi78
 
Posts: 4
Joined: Sat Oct 12, 2013 9:56 am

Trend Trading EA with Automated Loss Recovery

Postby SpiderX » Sun Aug 24, 2014 2:18 pm

moncsicsi78 » Sun Aug 24, 2014 9:51 pm wrote:I run some backtest and I realized this error in journal tab when I saw a big DD in backtest.
Can you help me, Sypder?

2014.08.24 15:44:05.125 2013.04.23 07:45 DMC ALR EA v2.06 EURJPY,M1: ManageALRTrades:Last trade closed in loss, but next trade not triggered
2014.08.24 15:44:05.125 2013.04.23 07:45 DMC ALR EA v2.06 EURJPY,M1: Alert: ManageALRTrades:Last trade closed in loss, but next trade not triggered


...and there is no "you don't have enough money" error message...



Hi,

The alert was there because it was a situation which i did not forsee would happen.
Is there a gap in price ?
A gap in price would definitely ruin things, and is most likely the cause of this error.
Still considering how to deal with a gap.

Cheers
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
User avatar
SpiderX
 
Posts: 576
Joined: Thu Aug 22, 2013 4:50 pm

Trend Trading EA with Automated Loss Recovery

Postby TheInsider » Sun Aug 24, 2014 2:29 pm

Dewey McG » Mon Aug 18, 2014 4:18 am wrote:I did a comparison using the new EA with ALR II and the previous one that uses ALR I. I picked the EURJPY becasue we know there was a problem trade and I updated my tickdata so we would know the back test was accurate.

Using the new ea we have to use 18 turns to avoid a Stop Loss and set maximum SL to at least 30%.

If we used the original concept, we would have been able to avoid the stoploss as well but LOOK AT THE DRAWDOWN! The account gets all the way down to just $1503 on a 25000 account before breaking even. It also generated less overall profit.


What was the start date and time for this test? And share the set-file with the settings you used.

Without that information it's impossible to re-create it?
TheInsider
 
Posts: 20
Joined: Wed Aug 06, 2014 10:14 pm

Trend Trading EA with Automated Loss Recovery

Postby moncsicsi78 » Sun Aug 24, 2014 4:59 pm

SpiderX » Sun Aug 24, 2014 3:18 pm wrote:
moncsicsi78 » Sun Aug 24, 2014 9:51 pm wrote:I run some backtest and I realized this error in journal tab when I saw a big DD in backtest.
Can you help me, Sypder?

2014.08.24 15:44:05.125 2013.04.23 07:45 DMC ALR EA v2.06 EURJPY,M1: ManageALRTrades:Last trade closed in loss, but next trade not triggered
2014.08.24 15:44:05.125 2013.04.23 07:45 DMC ALR EA v2.06 EURJPY,M1: Alert: ManageALRTrades:Last trade closed in loss, but next trade not triggered


...and there is no "you don't have enough money" error message...



Hi,

The alert was there because it was a situation which i did not forsee would happen.
Is there a gap in price ?
A gap in price would definitely ruin things, and is most likely the cause of this error.
Still considering how to deal with a gap.

Cheers

Thanks!

I thought about GAP, too... Maybe it caused the problem, but it is a big problam at the moment.
moncsicsi78
 
Posts: 4
Joined: Sat Oct 12, 2013 9:56 am

Trend Trading EA with Automated Loss Recovery

Postby SpiderX » Mon Aug 25, 2014 1:13 am

moncsicsi78 » Mon Aug 25, 2014 12:59 am wrote:Thanks!

I thought about GAP, too... Maybe it caused the problem, but it is a big problam at the moment.



Ok...figured out a possible way to deal with GAP ...will work on it through the week...stay tuned.

Cheers
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
User avatar
SpiderX
 
Posts: 576
Joined: Thu Aug 22, 2013 4:50 pm

PreviousNext

Return to Automated Loss Recovery

Who is online

Users browsing this forum: No registered users and 1 guest