EA is with my bug

 
My EA is with some bugs will be someone who could solve for me, is going the Next.

SL is getting 0
Orders are pending with value that does not exist
TP sometimes changes the value to 0.

The next file attached





Files:
expert.mq4  7 kb
 

"Your" EA seems to have been decompiled from an EX4 file.

 
Yes, remember that I had spoken that I had lost the original file when my computer has problem? Then my friend descompilou for me, but was left with bug
 
please help me!
 
please help me!..
Reason: