I wanted to know what I am doing wrong, I do not get the ticket number, all I get is 0;
int ticket = OrderSend(symbol, OP_BUY, 0.5, Ask, 0, Ask -0.020, Ask +0.100, "BUY ORDER", 0, 0, Green);
Print("TICKET NUMBER: ", ticket);
Do some Debugging.
Follow the Documentation.
Next time just use ...
Don't use that . . . unless you want . . .
(Ask - ( Bid/Point) )
. . . which doesn't make much sense. Precedence
What was meant was . . .
( ( Ask - Bid ) / Point)
. . . but I'm not sure how this helps.
Yeah, that one. I was in a bit hurry when I wrote it. LOL ...
Its a quick & dirty way to get the market orders gap though.
There is a fancier way, but we let people look (search) into it.