- 1、本文档共25页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
预定义变量 [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(handle0)
{
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.
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
物件属性枚举
Constant Value
OBJPROP_TIME1 0
OBJPROP_PRICE11
OBJPROP_TIME2 2
OBJPROP_PRICE23
OBJPROP_TIME3 4
OBJPROP_PRICE35
OBJPROP_COLOR6
OBJPROP_STYLE 7
OBJPROP_WIDTH 8
OBJPROP_BACK 9
Series array identifier
系列数组标识符
Constant Value
MODE_OPEN 0
MODE_LOW 1
Description
Datetime value to set/get first coordinate time part.
Double value to set/get first coordinate price part.
Datetime value to set/get second coordinate time part.
Double value to set/get second coordinate price part.
Datetime value to set/get third coordinate time part.
Double value to set/get third coordinate price part.
Color value to set/get object color.
Value is one of S
文档评论(0)