simple ea but not working
can anybody tell me why this code doesnt work ? as i can see i followed all the rules to create an ea.
Replace:
ticket=OrderSend(Symbol(),OP_BUY,lot,Bid,3,0,0);
To:
ticket=OrderSend(Symbol(),OP_BUY,lot,Ask,3,0,0);Cheers
Replace:
ticket=OrderSend(Symbol(),OP_BUY,lot,Bid,3,0,0);
To:
ticket=OrderSend(Symbol(),OP_BUY,lot,Ask,3,0,0);Cheers
if i replace bid to ask then there only 1 trade open for the last 3 years which is impossible, also if i didnt read it wrong bid is the price to buy and ask is the price to sell ?
if i replace bid to ask then there only 1 trade open for the last 3 years which is impossible, also if i didnt read it wrong bid is the price to buy and ask is the price to sell ?
You can BUY at ASK price, and SELL at BID price.
I think that it is not a syntax problem if there is only 1 trade.
can anybody tell me why this code doesnt work ? as i can see i followed all the rules to create an ea.