求助挂单源码修改OP_buystop 和 OP_ sellstop 谢谢大虾
49044000
|
7986 人阅读
|
16 人评论
|
2013-03-21
请各位大虾们帮小弟修改以下源码为OP_BUYSTOP 和 OP_SELLSTOP。
小弟不会改,总提示失败。
谢谢哪位有心大虾帮助。。。。。。。。。。。
//+------------------------------------------------------------------+
//| 多单脚本.mq4 |
//| Copyright ?2013, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Waihui"
#property link "waihui8686@163.com"
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
{int SlipPoints=10;
int lots=1;
int StopLoss=190;
int Ticket;
//----
Ticket=OrderSend(Symbol(),OP_BUYLIMIT,1,Ask-80*Point,SlipPoints,Bid-StopLoss*Point,Bid+280*Point,"1",0,0,0);
if (Ticket<0)
{
Alert(Symbol()+"多单开仓失败!");
}
//----
return(0);
}
//+------------------------------------------------------------------+
|
|
|
|
|
币安:http://www.lelev.com 世界领先的区块链资产交易平台 |
|
|
|
|