a problem about function -- "ordersend()"

vx0532

Newbie
6 0
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?
 
 
AdBlock Detected

We get it, advertisements are annoying!

But it's thanks to our sponsors that access to Trade2Win remains free for all. By viewing our ads you help us pay our bills, so please support the site and disable your AdBlocker.

I've Disabled AdBlock