本帖最后由 frlin2003 于 2016-5-27 15:43 编辑
- int start()
- {
- double lot=0;
- if(IsDemo())
- {
- lot=0.01 ;//可修改
- }
- else
- {
- lot=0.01;//可修改。
- }
-
- int ticket=OrderSend(Symbol(),OP_BUY,lot,Ask,3,0,0,"Buy",1234,0,Red);
- int ticket1=OrderSend(Symbol(),OP_BUY,lot,Ask,3,0,0,"Buy",1234,0,Red);
- int ticket2=OrderSend(Symbol(),OP_BUY,lot,Ask,3,0,0,"Buy",1234,0,Red);
- int ticket3=OrderSend(Symbol(),OP_BUY,lot,Ask,3,0,0,"Buy",1234,0,Red);
- int ticket4=OrderSend(Symbol(),OP_BUY,lot,Ask,3,0,0,"Buy",1234,0,Red);
- int ticket5=OrderSend(Symbol(),OP_BUY,lot,Ask,3,0,0,"Buy",1234,0,Red);
- int ticket6=OrderSend(Symbol(),OP_BUY,lot,Ask,3,0,0,"Buy",1234,0,Red);
- int ticket7=OrderSend(Symbol(),OP_BUY,lot,Ask,3,0,0,"Buy",1234,0,Red);
- int ticket8=OrderSend(Symbol(),OP_BUY,lot,Ask,3,0,0,"Buy",1234,0,Red);
- int ticket9=OrderSend(Symbol(),OP_BUY,lot,Ask,3,0,0,"Buy",1234,0,Red);
- if(ticket<0)
- {
- Print("OrderSend 失败错误 #",GetLastError());
- return(0);
- }
- return(0);
- }
复制代码
点一下开10单 |