MT4常用函数变量说明.docxMT4常用函数变量说明
MT4常用函数变量说明
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,D' 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,D' 12:30',Red);
return(0);
}
double Close[]
返回指定索引地址的收盘价格
比方 :
int handle, bars=Bars;
handle=FileOpen("",FILE_CSV|FILE_WRITE,';');
if(handle>0)
{
DRAW_SECTION 1
Drawing sections.
DRAW_HISTOGRAM2
Drawing histogram.
DRAW_ARROW
3
Drawing arrows (symbols).
DRAW_NONE
12
No drawing.
样式:
Constant
Value
Description
STYLE_SOLID
0
The pen is solid.
STYLE_DASH
1
The pen is dashed.
STYLE_DOT
2
The pen is dotted.
STYLE_DASHDOT
3
The pen has alternating dashes and dots.
STYLE_DASHDOTDOT4
The pen has alternating dashes and double dots.
MT4常用函数变量说明
MT4常用函数变量说明
MT4常用函数变量说明
Moving Average method enumeration
搬动平均线模式列举,
iAlligator(), iEnvelopes(), iEnvelopesOnArray, iForce(), iGator(), iMA(),
iMAOnArray(), iStdDev(), iStdDevOnArray(), iStochastic()
这些会调用此列举
Constant
Value
Description
MODE_SMA
0
Simple moving average,
MODE_EMA
1
Exponential moving average,
MODE_SMMA2
Smoothed moving average,
MODE_LWMA3
Linear weighted moving average.
Object properties enumeration
MT4常用函数变量说明
MT4常用函数变量说明
MT4常用函数变量说明
物件属性列举
Constant Value
OBJPROP_TIME1 0
OBJPROP_PRICE11
OBJPROP_TIME2 2
OBJPROP_PRICE23
OBJPROP_TIME3 4
OBJ
MT4常用函数变量说明 来自淘豆网m.daumloan.com转载请标明出处.