Why can't I trade on demo account
Try putting the code in your start() function, instead of init(). If this is a demo account you should not need to check the "allow live trading" box.
You agree to website policy and terms of use
Hi I have recently downloaded a demo version of metatrader 4.0 (the Alpari edition). I've tried to run this simple program:
However the trade never opens, even though i've checked the 'Allow live trading' checkbox.
If I check the 'Ask manual confirmation' however, a box pops up and asks me if I want to trade.
How can I open trades from the code automatically?