DislikedI have had a look at the code; the half-close function is only called if the trade is in profit.
It looks as though I did not actually upload the fixed version into post 1.
It is there now, so sing out next week if it is still not working. It should be fine; it is the same code as the 5 min momo, which appears to be correct.
Ignored
whip