stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Trend Trading EA with Automated Loss Recovery
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3719
Page 2 of 14
Author:  SpiderX [ Tue Jul 08, 2014 3:46 pm ]
Post subject:  Trend Trading EA with Automated Loss Recovery

Hi,

Have added some comments to post 1 and uploaded v1.02

v1.02
-Add trade comments to make trades more traceable
-Some code clean up and minor efficiency enhancements

Dewey can you confirm that the trade rules are correct ?
Also, any ideas on how to calculate the initial lot size based on the total risk of the whole basket ?
It seems complicated upon closer study.

Cheers
Author:  tex [ Tue Jul 08, 2014 4:18 pm ]
Post subject:  Trend Trading EA with Automated Loss Recovery

Hello Spider,

Thanks for your work, looking very good so far !!
Would it be possible to code a semi automatic Mod of the EA without a trading logic attached? E.G. : The EA opens a trade long or short at the very next candle and then gets active only when the ALR Zone is reached and starts to manage the loss. This way we could test the ALR logic of the EA with our individual strategies and compare it to the automatic versions.

Thanks,
tex
Author:  SpiderX [ Wed Jul 09, 2014 12:42 am ]
Post subject:  Trend Trading EA with Automated Loss Recovery

tex » Wed Jul 09, 2014 12:18 am wrote:Hello Spider,

Thanks for your work, looking very good so far !!
Would it be possible to code a semi automatic Mod of the EA without a trading logic attached? E.G. : The EA opens a trade long or short at the very next candle and then gets active only when the ALR Zone is reached and starts to manage the loss. This way we could test the ALR logic of the EA with our individual strategies and compare it to the automatic versions.

Thanks,
tex

Hi tex,

Once it is confirmed that things are fine with the main EA, that is something that can be considered.
However, if you want a semi-auto mode, it means the main EA has to give up control of the trades after it is made.
Any form of trailing stop loss or closing logic have to be completely shut off, as these will mess with the ALR progression.

Cheers
Author:  Dewey McG [ Wed Jul 09, 2014 2:21 am ]
Post subject:  Trend Trading EA with Automated Loss Recovery

SpiderX » Tue Jul 08, 2014 11:46 am wrote:Hi,

Have added some comments to post 1 and uploaded v1.02

v1.02
-Add trade comments to make trades more traceable
-Some code clean up and minor efficiency enhancements

Dewey can you confirm that the trade rules are correct ?
Also, any ideas on how to calculate the initial lot size based on the total risk of the whole basket ?
It seems complicated upon closer study.

Cheers
I will have a look as soon as I can but am working crazy hours for a couple days. It might be Friday before I get a chance to go through it
Author:  Eamonn [ Wed Jul 09, 2014 1:11 pm ]
Post subject:  Trend Trading EA with Automated Loss Recovery

[quote="tex » Tue Jul 08, 2014 5:18 pm"]Hello Spider,

Thanks for your work, looking very good so far !!
Would it be possible to code a semi automatic Mod of the EA without a trading logic attached? E.G. : The EA opens a trade long or short at the very next candle and then gets active only when the ALR Zone is reached and starts to manage the loss. This way we could test the ALR logic of the EA with our individual strategies and c

Hey Tex,

try using your usual strategy then place the ea on chart as normal change the magic no to zero when you have a trade running and the EA will look after the trade.

Empty4 treats any random trade as if the magic no is zero, of course only try on demo just in case I'm wrong.

Eamonn.
Author:  SpiderX [ Wed Jul 09, 2014 1:33 pm ]
Post subject:  Trend Trading EA with Automated Loss Recovery

hmmm...think that could be done.
Just set TradeLong and TradeShort to false and the main EA logic cant trigger a trade.
At the same time, set the magic number to the same as what your EA is using.
No promises on functionality since this was not what the EA was designed with in mind. :smile:

EDIT : Only problem will be that exit logic might be active with the original Ea and mess things up for you.

Cheers
Author:  Dewey McG [ Wed Jul 09, 2014 1:37 pm ]
Post subject:  Trend Trading EA with Automated Loss Recovery

Wealthmaster just posted a stand alone trade manager version here: http://www.stevehopwoodforex.com/phpBB3 ... &start=180

Might be easier to try that for your own trading strategies
Author:  tex [ Wed Jul 09, 2014 2:41 pm ]
Post subject:  Trend Trading EA with Automated Loss Recovery

Eamonn » Today, 15:11 wrote:
tex » Tue Jul 08, 2014 5:18 pm wrote:Hello Spider,

Thanks for your work, looking very good so far !!
Would it be possible to code a semi automatic Mod of the EA without a trading logic attached? E.G. : The EA opens a trade long or short at the very next candle and then gets active only when the ALR Zone is reached and starts to manage the loss. This way we could test the ALR logic of the EA with our individual strategies and c

Hey Tex,

try using your usual strategy then place the ea on chart as normal change the magic no to zero when you have a trade running and the EA will look after the trade.

Empty4 treats any random trade as if the magic no is zero, of course only try on demo just in case I'm wrong.

Eamonn.
Thanks for the headsup Eamonn, i will have a look at the EA posted by Wealthmaster first :good:
Author:  Stefan61200 [ Wed Jul 09, 2014 4:42 pm ]
Post subject:  Trend Trading EA with Automated Loss Recovery

Hi guys,

I receive the following error message using Version 1.02 just for UCH. All other 10 pairs are running perfectly. I use a TF of 5M and the rest is OOTB.

Does anybody has an idea what is wrong (I googled the error code - invalid lots amount).

Thank you
Stefan
Author:  SpiderX [ Thu Jul 10, 2014 12:19 am ]
Post subject:  Trend Trading EA with Automated Loss Recovery

Stefan61200 » Thu Jul 10, 2014 12:42 am wrote:Hi guys,

I receive the following error message using Version 1.02 just for UCH. All other 10 pairs are running perfectly. I use a TF of 5M and the rest is OOTB.

Does anybody has an idea what is wrong (I googled the error code - invalid lots amount).

Thank you
Stefan
Hi Stefan

I mentioned in first post this is for tf of 4h.
If you intend to use it for M5...you need to edit all the settings for M5.
Can you share you setfile here ?
Not sure why it seems there was a calculation error for you.
Will check it out.

Cheers
All times are UTC Page 2 of 14