Close after pips (EA)

 

i downloaded an EA mentioned in subject. it has 2 issues...

1) it does close a trade at reaching the given pips, either in loss or profit. means it has only 1 option for profit and loss. we can't give let's say i want it to close if reach at 30 pips profit or  20 pips loss. it ask only one number for both profit and loss.

2) it doesn't work more than 1 position, mean if gave it 30 pips to profit and  i open 2 positions, one on 10 pips profit and other on 20, it should close the trades, and if i have one trade in 40 pips profit and 10 pips loss it should close all.

if someone may solve this issue or has already made such EA,  plz let me have. i will be thankful.
 
i forgot to attached the indicator.... here it is
Files:
Reason: