I do not know if the output that i receive is what the author was going to code initially, but in case someone needs it, I leave updated files here. they compile under MT4 v1090