I am backtesting.
I was able to create a position in the dollar yen.
However, I couldn't create a position with oil.
Why does this phenomenon occur?
static int count = 0;
double ask = SymbolInfoDouble(NULL, SYMBOL_ASK);
string symbol = Symbol();
if(count < 10 &&
ticket == 0)
{
ticket = trade.PositionOpen(symbol, ORDER_TYPE_BUY, 1, ask, ask-1, 0);
//ticket = trade.Buy(1,symbol,ask,0,0);
Print("err=",GetLastError());
count++;
}
- [WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you.
- Ticket changes after OrderSend
- [Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2.
取引の機会を逃しています。
- 無料取引アプリ
- 8千を超えるシグナルをコピー
- 金融ニュースで金融マーケットを探索