Request: modify EA to work on all open trades

MPTM's new home
Post Reply
User avatar
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

Post by pathenry »

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.
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

Post by Radar »

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^)
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
User avatar
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

Post by pathenry »

Radar, I am so grateful for your help. Will forward test during the coming week.
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

Post by Radar »

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^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
User avatar
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

Post by pathenry »

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
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

Post by Radar »

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^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
User avatar
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

Post by pathenry »

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

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

Pat
You won't really understand GRACE until you fully realise you've been GRACED.
User avatar
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

Post by milanese »

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..
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
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

Post by pathenry »

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

Pat
You won't really understand GRACE until you fully realise you've been GRACED.
User avatar
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

Post by milanese »

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
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Post Reply

Return to “Utilities Indicators and Scripts”