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.
Request: modify EA to work on all open trades
- pathenry
- Trader
- Posts: 57
- Joined: Tue Nov 13, 2012 2:53 pm
- Location: Wellington, New Zealand
Request: modify EA to work on all open trades
You do not have the required permissions to view the files attached to this post.
You won't really understand GRACE until you fully realise you've been GRACED.
-
Radar
- Trader
- Posts: 437
- Joined: Fri Mar 23, 2012 5:39 pm
- Location: Round the bend ;)
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^)
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^)
You do not have the required permissions to view the files attached to this post.
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
StackManV2
- pathenry
- Trader
- Posts: 57
- Joined: Tue Nov 13, 2012 2:53 pm
- Location: Wellington, New Zealand
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.
Thank you.
Pat.
You won't really understand GRACE until you fully realise you've been GRACED.
-
Radar
- Trader
- Posts: 437
- Joined: Fri Mar 23, 2012 5:39 pm
- Location: Round the bend ;)
Re: Request: modify EA to work on all open trades
Hey Pathenry,

Have fun!
Radar =8^)
Backtest first, it's a hell of a lot cheaperpathenry wrote:Radar, I am so grateful for your help. Will forward test during the coming week.
Thank you.
Pat.
Have fun!
Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
StackManV2
- pathenry
- Trader
- Posts: 57
- Joined: Tue Nov 13, 2012 2:53 pm
- Location: Wellington, New Zealand
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
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
You won't really understand GRACE until you fully realise you've been GRACED.
-
Radar
- Trader
- Posts: 437
- Joined: Fri Mar 23, 2012 5:39 pm
- Location: Round the bend ;)
Re: Request: modify EA to work on all open trades
Hey pathenry,

Hopefully, someone else will pop in with the right changes... I'd grab a copy for the coding lesson inside
Have fun!
Radar =8^)
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 EApathenry 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
Hopefully, someone else will pop in with the right changes... I'd grab a copy for the coding lesson inside
Have fun!
Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
StackManV2
- pathenry
- Trader
- Posts: 57
- Joined: Tue Nov 13, 2012 2:53 pm
- Location: Wellington, New Zealand
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
Anyone out there to help with this
Pat
You won't really understand GRACE until you fully realise you've been GRACED.
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Re: Request: modify EA to work on all open trades
Hi Pat,pathenry wrote:No problem but thank you for what you have done anyway.![]()
Anyone out there to help with this:
:
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..
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
- pathenry
- Trader
- Posts: 57
- Joined: Tue Nov 13, 2012 2:53 pm
- Location: Wellington, New Zealand
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
Pat
You won't really understand GRACE until you fully realise you've been GRACED.
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Re: Request: modify EA to work on all open trades
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..pathenry wrote:Your a good man. Thank you Tommaso, I will give it a test run.
Pat
Cheers
Tommaso
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality