A little help coding

 
I have an expert advisor which is not working right. Adding and changing some features.
Reason: