- #property strict
- extern int 止赢 = 5; //止赢点数
- extern double 止损 = 20;
- extern double 交易量=0.02;
- #property show_inputs
-
- void OnStart()
- {
- //---
- int res;
- res= OrderSend(Symbol(),OP_BUY,交易量,Bid,10,Ask-止损 * Point, Ask+止赢 * Point,"",999,0,Red);
- if(res>0)
- Alert("下单成功");
- return;
- }
复制代码
|