Help To Modify Existiing Scripts

 

I have some scripts built by a colleague who is unwell that need some changes.


The Scripts

1. BUY/SELL - places 2 orders adding in missing stops, take profits, and include a jumping stop. The first order is closed at "x" pips and the second lot the stop moved to BE

2. SWAP - essentially this script reverses the current open trade BUY to SELL and vice versa

3. BREAKEVEN - moves stop to BE

4. BUY/SELL (SINGLE) - places one order/s2 lots, adding,missing stop/take profits.

5. CLOSE ALL - closes all open trades ( 5 and 6 below)


What I would like to do

Currently by default a comment is entered into the trade as it is excecuted by the BUY/SELL scripts. This means all following scripts look for this before executing their commands so i would like to remove from all scripts.

1. remove string/comment function entered by script on execution

2. remove the command that looks for the string in 1. above

3. as in 2 above

4. as per 1. ie remove the function that adds the comment. In addition commands that allow a jumping stop, and reduce position by a set %. So this would allow user to say right when price reaches +30 pips jump stop and reduce position by 50%. The jump stop and reduce position settings would have on/off switches.

5. CLOSE CHART as per 2 remove the comment function. This would close all orders for specific chart. This would allow user to drag onto current chart and close at market price.

6. The CLOSE ALL would close all open positions (not pending) for all charts. This would help where several orders hit a daily pip target for example. Again remove the look up for the string/comment.


As i am new here what is the best way of achieving this.

Regards

Speed

 
speedtrip:

As i am new here what is the best way of achieving this.

Either learn: https://book.mql4.com// & https://docs.mql4.com// or pay: https://www.mql5.com/en/job

 
files added