Expert Advisor picking only long trades

 
Hi, I have built an MT4 whose entry signal is based on moving averages. It's working fine but the problem is it's picking only buy trades. I have tried to look for the bug in my EntrySignal() function but there seems to be none (No mix up in the relational operators). Could there be something i'm missing? Thanks
 
denolator:
Hi, I have built an MT4 whose entry signal is based on moving averages. It's working fine but the problem is it's picking only buy trades. I have tried to look for the bug in my EntrySignal() function but there seems to be none (No mix up in the relational operators). Could there be something i'm missing? Thanks

Attach your code (Alt+S) and post it to get help as nobody can see it yet....

 
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.