顺水外汇EA交易网MT4

标题: OP_BUY是什么数据类型 [打印本页]

作者: 如乐居士    时间: 2016-5-11 16:51
标题: OP_BUY是什么数据类型
OP_BUY是什么数据类型?比如我想把OrderSend()的cmd参数做成一个外部变量t,那t是什么数据类型?

作者: stvyeap    时间: 2016-5-11 18:41
OP_BUY 就是直接開 buy 單的指令。
你說 t,不明白你指什麼?
作者: tempasdf    时间: 2016-5-11 23:35
int 整型 [C++] 纯文本查看 复制代码int  OrderSend(
   string   symbol,              // symbol
   int      cmd,                 // operation
   double   volume,              // volume
   double   price,               // price
   int      slippage,            // slippage
   double   stoploss,            // stop loss
   double   takeprofit,          // take profit
   string   comment=NULL,        // comment
   int      magic=0,             // magic number
   datetime expiration=0,        // pending order expiration
   color    arrow_color=clrNONE  // color
   );
cmd 写的不是很明白吗?
作者: 重阳_doiT3    时间: 2016-5-24 11:31
不知道  懂的帮忙下

作者: cyshanhu    时间: 2016-6-28 17:53
是一种int类型的数据,其值为0,OP_SELL其值为1
作者: 如乐居士    时间: 2016-6-28 17:53

明白了,谢谢




欢迎光临 顺水外汇EA交易网MT4 (http://www.waterforex.com/) Powered by Discuz! X3.2