MT4常用函数变量说明.docVIP

  • 87
  • 0
  • 约3.59万字
  • 约 36页
  • 2017-12-17 发布于河南
  • 举报
MT4常用函数变量说明

预定义变量 [Pre-defined Variables] double Ask 通货的买入价 示例: if(iRSI(NULL,0,14,PRICE_CLOSE,0)25) { OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point, My order #2,3,D2005.10.10 12:30,Red); return; } int Bars 返回图表中的柱数 示例: int counter=1; for(int i=1;i=Bars;i++) { Print(Close[i-1]); } double Bid 通货的卖价 示例: if(iRSI(NULL,0,14,PRICE_CLOSE,0)75) { OrderSend(EURUSD,OP_SELL,Lots,Bid,3,Bid+StopLoss*Point,Bid-TakeProfit*Point, My order #2,3,D2005.10.10 12:30,Red); return(0); } double Close[] 返回指定索引位置的收盘价格 示例: int handle, bars=Bars; handle=FileOpen(file.csv,FILE_CSV|FILE_WRITE,;); if(h

文档评论(0)

1亿VIP精品文档

相关文档