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

Request: modify EA to work on all open trades
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3315
Page 1 of 1
Author:  pathenry [ Fri Dec 06, 2013 8:28 pm ]
Post subject:  Request: modify EA to work on all open trades

I was hoping someone may be kind enough to modify this fractal trailing stop so that it will trail all trades by magic number rather than by ticket number. Is this possible?
Kind regards Pat.
Author:  Radar [ Sat Dec 07, 2013 9:50 pm ]
Post subject:  Re: Request: modify EA to work on all open trades

Hey pathenry,

Here you go... It was a quick edit, and hasn't been tested, so play with it in the backtester before using it live.

Have fun!

Radar =8^)
Author:  pathenry [ Sun Dec 08, 2013 1:08 am ]
Post subject:  Re: Request: modify EA to work on all open trades

Radar, I am so grateful for your help. Will forward test during the coming week.
Thank you.
Pat.
Author:  Radar [ Sun Dec 08, 2013 1:14 am ]
Post subject:  Re: Request: modify EA to work on all open trades

Hey Pathenry,
pathenry wrote:Radar, I am so grateful for your help. Will forward test during the coming week.
Thank you.
Pat.
Backtest first, it's a hell of a lot cheaper ;)

Have fun!

Radar =8^)
Author:  pathenry [ Mon Dec 09, 2013 5:37 am ]
Post subject:  Re: Request: modify EA to work on all open trades

Sorry Radar but I have made a mistake in trying to describe what I needed.
When I said "All trades" I should have said I would like to place the EA on any currency pair and have it trail all open trades regardless of currency pair. Just so long as that pair had the correct Magic number.
Is this a big ask? Regards Pat
Author:  Radar [ Mon Dec 09, 2013 7:40 am ]
Post subject:  Re: Request: modify EA to work on all open trades

Hey pathenry,
pathenry wrote:Sorry Radar but I have made a mistake in trying to describe what I needed.
When I said "All trades" I should have said I would like to place the EA on any currency pair and have it trail all open trades regardless of currency pair. Just so long as that pair had the correct Magic number.
Is this a big ask? Regards Pat
Ahh... I was hoping you wasn't gong to ask for that... I'm still in the early stages of learning coding, so have no idea how to do a multi-symbol EA :(

Hopefully, someone else will pop in with the right changes... I'd grab a copy for the coding lesson inside ;)

Have fun!

Radar =8^)
Author:  pathenry [ Mon Dec 09, 2013 8:12 am ]
Post subject:  Re: Request: modify EA to work on all open trades

No problem but thank you for what you have done anyway. ;)

Anyone out there to help with this :?: :?:

Pat
Author:  milanese [ Mon Dec 09, 2013 11:38 am ]
Post subject:  Re: Request: modify EA to work on all open trades

pathenry wrote:No problem but thank you for what you have done anyway. ;)

Anyone out there to help with this :?: :?:

Pat
Hi Pat,

I programmed this from the scratch, please try it first on demo as I have it only short tested...

The inputs are:
SLMinDistancePrice set here min distance that sl must have from actual price
MagicNumber
FractalsTimeFrame the fractal TF you wish to use
FractalBar

it is a multipair manager so set it only to one chart and it will manage all open tradess with the magicnumber you set..

Cheers :)

Tommaso

Edit:You will find the EA in later post as I modified it..
Author:  pathenry [ Mon Dec 09, 2013 12:52 pm ]
Post subject:  Re: Request: modify EA to work on all open trades

Your a good man. Thank you Tommaso, I will give it a test run.

Pat
Author:  milanese [ Mon Dec 09, 2013 3:43 pm ]
Post subject:  Re: Request: modify EA to work on all open trades

pathenry wrote:Your a good man. Thank you Tommaso, I will give it a test run.

Pat
I modified it somewhat, as I think you will only move the SL if the order will be in profit, as always please test it on demo..

Cheers :)

Tommaso
All times are UTC Page 1 of 1