isTradeAllowed() is always returning false

 
I'm using a demo account on Alpari and I can do manual trades just fine, and I've also enabled the option that allow EAs to trade. So I don't understand why isTradeAllowed() always returns false?
 
Jasus5457:
I'm using a demo account on Alpari and I can do manual trades just fine, and I've also enabled the option that allow EAs to trade. So I don't understand why isTradeAllowed() always returns false?


No, only if you have some setting set that way you not allow to trade

What have you done to allow your EA to trade...

There are two places where you have to allow the EA's to trade

 
deVries:

There are two places where you have to allow the EA's to trade


 
It's working now, I removed the EA and attached it again. Maybe that 2nd option wasn't activated because the last time I attached it the 1st option wasn't still activated, I don't know... Anyway, thanks ;)
Reason: