Anybody know the reason?

 
I have a trailing stop system that adjust its trailing points as per the current profit. After a position is opened and has got some profit, the trailing system is supposed to work on the position, but it doesn't, not until I remove the EA from the chart and re-attach the EA to the chart. If the EA is freshly attached to charts, everything works fine, but two or three hours later, trailing stop doesn't work, EA begins to take up 100% CPU usage. What is cause of this? Anybody pls help.
 
Show the code.
 

Pls see the code:

 
I looked, but I didn't see.
 
phy:
I looked, but I didn't see.
 
marshall318:
phy:
I looked, but I didn't see.


I can not insert the code here. It says text is too long. So I attached the text file. Pls take a look. thanks.
 

I saw the code as originally posted. I didn't care to try to figure it out. Sorry.

 
phy:

I saw the code as originally posted. I didn't care to try to figure it out. Sorry.



Yes, it is big and hash code.
Reason: