| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Can anybody help pretty please? https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3061 |
Page 1 of 2 |
| Author: | wingate [ Sun Aug 18, 2013 10:27 am ] |
| Post subject: | Can anybody help pretty please? |
Hi, I have been tearing my hair out trying to find some simple scripts to do the following tasks. I have searched high and low on the net to find something that works but to no avail. I have tried to modify a couple myself (below) but they still do not work If some kind soul could help me out I would be eternally grateful The Four scripts I am after are as follows:- 1. Close all 'OPEN SELL' trades (must not close pending sells at the same time though) 2. Close all 'OPEN BUY' trades (again must not close pending buys at the same time though) 3. This one may be harder to code, I have no idea but It would be useful to have a script that could place a series of pending orders of either buy/sell limit/stop orders at predefined distances apart (user selectable). P.s I do not need any options for TP, stops or trailing stops as I do not use them. 4. Close all pending orders (if there was a user definable option to 'close all' or close just the buys or sells then that would be brill but not essential) I have attached below scripts that I did manage to find but for some reason they do not appear to work as they should or work slightly differently to required. Thank you so much for anybody who thinks they could possibly help. Regards, Baz. |
|
| Author: | bourgenot [ Sun Aug 18, 2013 10:36 am ] |
| Post subject: | Re: Can anybody help pretty please? |
I, check this. Maybe help you; take look here : http://www.forexfactory.com/showthread. ... ht=scripts |
|
| Author: | wingate [ Sun Aug 18, 2013 11:39 am ] |
| Post subject: | Re: Can anybody help pretty please? |
Hi bourgenot, Thank you for trying to help out Thanks though. Baz Edit: Sorry I didn't notice the link you posted, I will have to investigate that one further thank you. |
|
| Author: | MrLong [ Sun Aug 18, 2013 12:03 pm ] |
| Post subject: | Re: Can anybody help pretty please? |
Close all Buy trades. Code: Select all CloseAliBuys(7, MagicNumber); Close All Sells. Code: Select all CloseAllSells(7, MagicNumber); Delete Pendings. Code: Select all DeletePendingTrades(); |
|
| Author: | wingate [ Sun Aug 18, 2013 12:06 pm ] |
| Post subject: | Re: Can anybody help pretty please? |
Hi again bourgenot, Just to let you know I have just had a quick breeze through the link you provided. This looks like more than I need but may well do the trick! I will experiment with the scripts tomorrow to see if they work as described. Thanks again for your help. Kind regards, Baz. |
|
| Author: | wingate [ Sun Aug 18, 2013 12:11 pm ] |
| Post subject: | Re: Can anybody help pretty please? |
Hi Mr Long, Again thank you for chiming in with help. Being just a cut and paister am I right in assuming I should cut and past your code into the files I uploaded? Sorry if this is a dumb question. Regards, baz |
|
| Author: | MrLong [ Sun Aug 18, 2013 4:11 pm ] |
| Post subject: | Re: Can anybody help pretty please? |
Yes then call the function from start, as described. |
|
| Author: | wingate [ Sun Aug 18, 2013 7:24 pm ] |
| Post subject: | Re: Can anybody help pretty please? |
Hi Mr Long, Sorry but I do not understand what you mean by "call the function from start, as described" Thanks and sorry if I am being a dumb ass |
|
| Author: | wingate [ Sun Aug 18, 2013 7:30 pm ] |
| Post subject: | Re: Can anybody help pretty please? |
Hi again, When you say 'call' do you mean 'rename' the file? Also you mention magic number (7) should I be pasting a number into the code between the brackets? Sorry I really am starting to feel and sound like a dumb ass now |
|
| Author: | MrLong [ Mon Aug 19, 2013 5:41 am ] |
| Post subject: | Re: Can anybody help pretty please? |
These are finished scripts, save them to your Experts\scripts folder, restart Empty4, then just drop one on a chart and any sell/buy trades will be closed |
|
| All times are UTC | Page 1 of 2 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|