XM.com Problem with Trading Cash Indices

 

My EA is trading metals and currency pairs without any problems.

However, it is not trading cash indices correct. It immediately closes any SHORT position as soon as profit turns positive.

Is there something different in trading indices I am not aware of?  Thanks in advance for any help.

 
We cannot see your code, fix you code.
 
Shengjie Mao:
We cannot see your code, fix you code.

How can it be my code when metals, stocks and forex trading is working fine? There must be something different with cash indices?

Also, the problem does not exist in the Strategy Tester!