Now the symbol-" USDJPY " price is as below:
bid: 95.82
ask: 95.84
I execute the below codes in my EA:
1. OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,0,0,0,Red); succeed
2. Ordersend(Symbol(),OP_BUY,Lots,Close[0],3,0,0,0,0,0,Red); fail
3. OrderSend(Symbol(),OP_BUY,Lots,Ask+2*Point,3,0,0,0,0,0,Red); fail
my questions are below:
1. I don;t know why "1" can succed but "3" failed? and how / what shall I modify to make "2" succeed, the slippage can work a little?
2. Close[0] is always equal to bid, why?
3. bid / ask spread sometime is 2 points, sometime is 1 point / 3 points, why?
bid: 95.82
ask: 95.84
I execute the below codes in my EA:
1. OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,0,0,0,Red); succeed
2. Ordersend(Symbol(),OP_BUY,Lots,Close[0],3,0,0,0,0,0,Red); fail
3. OrderSend(Symbol(),OP_BUY,Lots,Ask+2*Point,3,0,0,0,0,0,Red); fail
my questions are below:
1. I don;t know why "1" can succed but "3" failed? and how / what shall I modify to make "2" succeed, the slippage can work a little?
2. Close[0] is always equal to bid, why?
3. bid / ask spread sometime is 2 points, sometime is 1 point / 3 points, why?