change open price
how would I change the open price of my buy order to lets say +10 from current price or something? I went to the part next to ask, and changed the 50 but it did not do anything. I went and read an article on this site and still could not figure it out
if(TestBuy) ord=OrderSend(Symbol(),OP_BUY,0.1,Ask,50,Ask-TestOrderSLpips*pip,Ask+TestOrderTPpips*pip,"",MagicNumber,0,CLR_NONE);
Buy order only can work at Ask Price
Sell order only can work at Bid Price
Buy order only can work at Ask Price
Sell order only can work at Bid Price
is the +10 mean 10 pips above the current market price in the backtester?
Yes
how would I change the open price of my buy order to lets say +10 from current price or something? I went to the part next to ask, and changed the 50 but it did not do anything. I went and read an article on this site and still could not figure it out
if(TestBuy) ord=OrderSend(Symbol(),OP_BUY,0.1,Ask,50,Ask-TestOrderSLpips*pip,Ask+TestOrderTPpips*pip,"",MagicNumber,0,CLR_NONE);