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.