SZ, you have received replies from two of the best coders in the business and yet still appear to be unable to make sense of their offerings.
In the face if such assumes uselessness, how long do you expect their interest to last?
Get a grip, fella.
Modifying the SL of multiple orders
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: Modifying the SL of multiple orders
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
-
szfxtrader
- Trader
- Posts: 377
- Joined: Sun Feb 10, 2013 9:36 am
Re: Modifying the SL of multiple orders
mobthehop wrote:SZ,
if you combine the code provided by dietcoke /Phil and the recoursing of orders from the scripts i posted it should work - but you probably want to add a check that the new SL is not in conflict with your brokers min stoplevel or freezelevel (see http://docs.mql4.com/constants/marketinfo) as also pointed out by dietcoke
Cheers
Thank you! I don't need to check the SL level because when the EA will change the SL of the orders 3 and 4 to the same level of the order 2, all those orders will already have SL gain of +5 pips, did you understand me?
Example: BE of +5 pips after the order be +25
- mobthehop
- Trader
- Posts: 362
- Joined: Wed Nov 16, 2011 12:16 am
Re: Modifying the SL of multiple orders
SZ, I / we "think" that we understand you, but not sure....
If we are still talking about error 130 - it checks whether the "new SL" is within the Freezelevel of the broker for ALL orders to be updated to the "new SL", ie. "new SL" relative to the present market price. It does not matter in this regard what previous SL was assigned to any of these orders....
Cheers
If we are still talking about error 130 - it checks whether the "new SL" is within the Freezelevel of the broker for ALL orders to be updated to the "new SL", ie. "new SL" relative to the present market price. It does not matter in this regard what previous SL was assigned to any of these orders....
Cheers
- nanningbob
- Trader
- Posts: 4564
- Joined: Sun Dec 04, 2011 1:23 pm
Re: Modifying the SL of multiple orders
Put these in your scripts folder. There is a move all stops and move all TP in there plus others. They will move all your SL or your TP to one location. There are other scripts there that are also helpful. Just drag it onto the screen where you want the SL set and let it do all the work.
You do not have the required permissions to view the files attached to this post.
I trade http://www.stevehopwoodforex.com/phpBB3 ... =38&t=3964,
I talk about my philosophy of trading here.
http://www.stevehopwoodforex.com/phpBB3 ... =38&t=3627
"The key to converting something useful to others is simplicity. Complexity is the enemy to execution." Tony Robbins
I talk about my philosophy of trading here.
http://www.stevehopwoodforex.com/phpBB3 ... =38&t=3627
"The key to converting something useful to others is simplicity. Complexity is the enemy to execution." Tony Robbins
-
szfxtrader
- Trader
- Posts: 377
- Joined: Sun Feb 10, 2013 9:36 am
Re: Modifying the SL of multiple orders
Thanks.nanningbob wrote:Put these in your scripts folder. There is a move all stops and move all TP in there plus others. They will move all your SL or your TP to one location. There are other scripts there that are also helpful. Just drag it onto the screen where you want the SL set and let it do all the work.