Forum

Close half script - not working

I have a script, which is supposed to close half the position, every time is executed or double clicked. But the script not working as per expected. The script only close 's half position only sometimes (but should be always), also sometimes it does not always close half position. Can someone please

Newbie coding help

Hi All, I need helping with fixing a coding bug. The EA is not doing what it is desired as losing trades are not closing at specified times with certain percent. Any help?? Attached is a time based stop loss EA. EA's purpose is to close % of a position after specified time has elapsed of a losing