EA weird behavior on DEMO account

 

Hi everyone!
I'm fine tuning my EA (code attached) focusing just on placing SELL orders. When I run it on backtesting it executes EXACTLY has coded but when I run it on my demo account then it performs in a very weird way. To highlight this wrong behavior I'm also attaching  a file to clarify.
Appreciate any hints on what I might be doing wrong!
Cheers.

 
Mosamba:

Do not double post!

I have deleted your duplicated topic.