ddock:
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 ?
ddock:
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.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
can anybody tell me why this code doesnt work ? as i can see i followed all the rules to create an ea.