关键词不能为空

当前您在: 主页 > 英语 >

MT4常用函数变量说明

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-16 12:09
tags:

-

2021年2月16日发(作者:开槽)


预定义变量


[Pre-defined Variables]




double Ask



通货的买入价



示例


:


if(iRSI(NULL,0,14,PRICE_CLOSE,0)<25)


{


OrderSend(Symbol(),OP_BUY< /p>


,Lots,Ask,3,Ask- StopLoss*Point,Ask+T


akeProfit*Point,



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(


akeProfit*Point,



return(0);


}



double Close[]



返回指定索引位置的收盘价格



示例


:


int handle, bars=Bars;


handle=FileOpen(


if(handle>0)


{


// write table columns headers


FileWrite(handle,


// write data


for(int i=0; i


FileWrite(handle, Time[i], Open[i], High[i], Low[i], Close[i], Volume[i]);


FileClose(handle);


}



int Digits



返回当前通货的汇率小数位



示例


:


Print(DoubleT


oStr(Close[i-1], Digits));



double High[]



返回指定索引位置的最高价格



示例


:


int handle, bars=Bars;


handle=FileOpen(


if(handle>0)


{


// write table columns headers


FileWrite(handle,


// write data


for(int i=0; i


FileWrite(handle, Time[i], Open[i], High[i], Low[i], Close[i], Volume[i]);


FileClose(handle);


}



double Low[]



返回指定索引位置的最低价格



示例


:


int handle, bars=Bars;


handle=FileOpen(


if(handle>0)


{


// write table columns headers


FileWrite(handle,


// write data


for(int i=0; i


FileWrite(handle, Time[i], Open[i], High[i], Low[i], Close[i], Volume[i]);


FileClose(handle);


}



double Open[]



返回指定索引位置的开盘价格



示例


:


int handle, bars=Bars;


handle=FileOpen(


if(handle>0)


{


// write table columns headers


FileWrite(handle,


// write data


for(int i=0; i


FileWrite(handle, Time[i], Open[i], High[i], Low[i], Close[i], Volume[i]);


FileClose(handle);


}



double Point



返回当前图表的点值



示例


:


OrderSend(Sym bol(),OP_BUY


,Lots,Ask,3,0,Ask+T

< br>akeProfit*Point,Red);



datetime Time[]



返回指定索引位置的时间



示例


:


int handle, bars=Bars;


handle=FileOpen(


if(handle>0)


{


// write table columns headers


FileWrite(handle,


// write data


for(int i=0; i


FileWrite(handle, Time[i], Open[i], High[i], Low[i], Close[i], Volume[i]);


FileClose(handle);


}



double Volume[]



返回指定索引位置的成交量



示例


:


int handle, bars=Bars;


handle=FileOpen(


if(handle>0)


{


// write table columns headers


FileWrite(handle,


// erite data


for(int i=0; i


FileWrite(handle, Time[i], Open[i], High[i], Low[i], Close[i], Volume[i]);


FileClose(handle);


)


Applied price enumeration



价格类型枚举



示例


:


Constant


PRICE_CLOSE



PRICE_OPEN



PRICE_HIGH



PRICE_LOW



PRICE_MEDIAN



PRICE_TYPICAL



Value


0



1



2



3



4



5



Description


收盘价



开盘价



最高价



最低价



最高价和最低价的平均价



最高价、最低价和收盘价的平均价



开、收盘价和最高最低价的平均价



PRICE_WEIGHTED


6




Drawing shape style enumeration



画图形状样式枚举,



形状:



Constant


DRAW_LINE



DRAW_SECTION



Value


0



1



Description


Drawing line.



Drawing sections.



Drawing histogram.



Drawing arrows (symbols).



No drawing.



DRAW_HISTOGRAM


2



DRAW_ARROW



DRAW_NONE



样式:



Constant


Value


3



12



Description


STYLE_SOLID



STYLE_DASH



STYLE_DOT



STYLE_DASHDOT



0



1



2



3



The pen is solid.



The pen is dashed.



The pen is dotted.



The pen has alternating dashes and dots.



The pen has alternating dashes and double dots.



STYLE_DASHDOTDOT


4





Moving Average method enumeration



移动平均线模式枚举,


iAlligator(), iEnvelopes(), iEnvelopesOnArray, iForce(), iGator(), iMA(),


iMAOnArray(), iStdDev(), iStdDevOnArray(), iStochastic()


这些会调用此枚举



Constant


Value


Description


Simple moving average,



Exponential moving average,



Smoothed moving average,



Linear weighted moving average.



MODE_SMA



0



MODE_EMA



1



MODE_SMMA


2



MODE_LWMA


3




Object properties enumeration



物件属性枚举



Constant


Value


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


STYLE_SOLID,


STYLE_DASH,


STYLE_DOT


,


OBJPROP_STYLE



7



STYLE_DASHDOT


,


STYLE_DASHDOTDOT


constants


to


set/get


object line style.



OBJPROP_WIDTH


8



OBJPROP_BACK



9



Integer value to set/get object line width. Can be from 1 to 5.



Boolean value to set/get background drawing flag for object.



OBJPROP_TIME1



0



OBJPROP_PRICE1


1



OBJPROP_TIME2



2



OBJPROP_PRICE2


3



OBJPROP_TIME3



4



OBJPROP_PRICE3


5



OBJPROP_COLOR


6



Series array identifier



系列数组标识符



Constant


MODE_OPEN



MODE_LOW



MODE_HIGH



Value


0



1



2



Description


Open price.



Low price.



High price.



Close price.



Volume, used in Lowest() and Highest() functions.



Bar open time, used in ArrayCopySeries() function.



MODE_CLOSE



3



MODE_VOLUME


4



MODE_TIME




5



Time frame enumeration



特殊常量



Constant


Value


Description


1 minute.



5 minutes.



15 minutes.



30 minutes.



1 hour


.



4 hour


.



Daily.



PERIOD_M1



1



PERIOD_M5



5



PERIOD_M15


15



PERIOD_M30


30



PERIOD_H1



60



PERIOD_H4



240



PERIOD_D1



1440



PERIOD_W1



10080



Weekly.



PERIOD_MN1


43200



Monthly.



0 (zero)




Trade operation enumeration



交易类型



Constant


OP_BUY



OP_SELL



Value


0



1



Description


Buying position.



Selling position.



Buy limit pending position.



Sell limit pending position.



0



Time frame used on the chart.



OP_BUYLIMIT



2



OP_SELLLIMIT


3



OP_BUYSTOP



4



OP_SELLSTOP


5



Web colors table



颜色表




Black


Maroon


SeaGreen


LightSeaGreen


Goldenrod


DarkOrange


DeepSkyBlue


LightSlateGray


IndianRed


MediumPurple


DarkSalmon


Plum


PaleGreen


Moccasin


LemonChiffon


Lavender


LavenderBlush


DarkGreen


Indigo


Buy stop pending position.



Sell stop pending position.



DarkSlateGray


MidnightBlue


DarkSlateBlue


FireBrick


LawnGreen


Gold


Magenta


MediumTurquoise


GreenYellow


Coral


HotPink


LightGreen


PowderBlue


Gainsboro


AntiqueWhite


OldLace


Snow


Olive


DarkBlue


Sienna


Green


Teal


Navy


ForestGreen


DarkTurquoise


Crimson


LimeGreen


SpringGreen


Peru


SlateBlue


RosyBrown


Purple


OliveDrab


DimGray


SteelBlue


OrangeRed


Aqua


BlueViolet


DarkKhaki


Orchid


Tan


LightSalmon


LightBlue


NavajoWhite


DarkOliveGreen


SaddleBrown


MediumBlue


Brown


DarkGoldenrod


DarkViolet


MediumSpringGreen


Orange


Blue


DeepPink


MediumOrchid


PaleVioletRed


BurlyWood


Khaki


Thistle


LightPink


Beige


MistyRose


MintCream


MediumVioletRed


MediumSeaGreen


Chocolate


CadetBlue


Yellow


Red


DodgerBlue


DarkOrchid


Chartreuse


Gray


Turquoise


YellowGreen


Lime


SlateGray


RoyalBlue


Tomato


MediumAquamarine


DarkSeaGreen


CornflowerBlue


Salmon


Aquamarine


PaleGoldenrod


PeachPuff


PapayaWhip


WhiteSmoke


White


DarkGray


Violet


Silver


PaleTurquoise


Pink


Cornsilk


Seashell



SandyBrown


MediumSlateBlue


LightCoral


SkyBlue


LightSkyBlue


LightSteelBlue


LightGrey


Bisque


LightYellow


Ivory



Wheat


LightGoldenRod


BlanchedAlmond


LightCyan


Honeydew



Linen


AliceBlue



技术指标调用



[Technical Indicator calls]


double iAC( string symbol, int timeframe, int shift)



计算



Bill Williams' Accelerator/Decelerator oscillator


的值



::


输入参数



symbol -


通货标识



timeframe -


时间线



shift -


位移数




示例


:


double result=iAC(NULL, 0, 1);



double iAD( string symbol, int timeframe, int shift)



计算



Accumulation/Distribution indicator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



shift -


位移数




示例


:


double result=iAD(NULL, 0, 1);



double iAlligator( string symbol, int timeframe, int jaw_period, int jaw_shift, int


teeth_period,


int


teeth_shift,


int


lips_period,


int


lips_shift,


int


ma_method,


int


applied_price, int mode, int shift)



计算



Bill Williams' Alligator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



jaw_period -


颚线周期



jaw_shift -


颚线位移



teeth_period -


齿线周期



teeth_shift -


齿线位移



lips_period -


唇线周期




lips_shift -


唇线位移




ma_method -


移动平均线种类



applied_price -


应用价格类型



mode -


来源模式,


MODE_GATORJAW


,< /p>


MODE_GATORTEETH



MODE_GATORLIPS



shift -


位移数




double jaw_val=iAlligator(NULl, 0, 13, 8, 8, 5, 5, 3, MODE_SMMA, PRICE_MEDIAN,


MODE_GATORJAW


, 1);



double iADX( string symbol, int timeframe, int period, int applied_price, int mode,


int shift)



计算



Movement directional index


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



applied_price -


应用价格类型



mode -


来源模式,参见指标线分类枚举



shift -


位移数




if(iADX(NULL,0,14,PRICE_HIG H,MODE_MAIN,0)>iADX(NULL,0,14,PRICE_HIGH,MOD


E_PLUSDI,0)) return(0);



double iATR( string symbol, int timeframe, int period, int shift)



计算



Indicator of the average true range


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



shift -


位移数




if(iATR(NULL,0,12,0)>iATR(NULL,0,20,0)) return(0);



double iAO( string symbol, int timeframe, int shift)



计算



Bill Williams' Awesome oscillator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



shift -


位移数




double val=iAO(NULL, 0, 2);



double iBearsPower( string symbol, int timeframe, int period, int applied_price, int


shift)



计算



Bears Power indicator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



applied_price -


应用价格类型



shift -


位移数




double val=iBearsPower(NULL, 0, 13,PRICE_CLOSE,0);



double


iBands(


string


symbol,


int


timeframe,


int


period,


int


deviation,


int


bands_shift, int applied_price, int mode, int shift)



计算



Bollinger bands indicator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



deviation -


背离



bands_shift - Bands


位移




applied_price -


应用价格类型



mode -


来源模式,参见指标线分类枚举



shift -


位移数




if(iBands(NULL,0,20,2,0,PRI CE_LOW


,MODE_LOWER,0)>Low[0]) return(0);



double iBandsOnArray( double array[], int total, int period, double deviation, int


bands_shift, int mode, int shift)



从数组中计算



Bollinger bands indicator


的值




::


输入参数



array[] -


数组数据



total -


总数据数量



period -


周期



deviation -


背离



bands_shift - Bands


位移




applied_price -


应用价格类型



mode -


来源模式,参见指标线分类枚举



shift -


位移数




if(iBands(NULL,0,20,2,0,PRI CE_LOW


,MODE_LOWER,0)>Low[0]) return(0);



double iBullsPower( string symbol, int timeframe, int period, int applied_price, int


shift)



计算



Bulls Power indicator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



applied_price -


应用价格类型



shift -


位移数




double val=iBullsPower(NULL, 0, 13,PRICE_CLOSE,0);



double iCCI( string symbol, int timeframe, int period, int applied_price, int shift)



计算



Commodity channel index


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



applied_price -


应用价格类型



shift -


位移数




if(iCCI(NULL,0,12,0)>iCCI(NULL,0,20,0)) return(0);



double iCCIOnArray( double array[], int total, int period, int shift)



从数组中计算



Commodity channel index


的值




::


输入参数



array[] -


数组数据



total -


总数据数量



period -


周期



shift -


位移数




if(iCCIOnArray(ExtBuffer


,total,12,0)>iCCI(NULL,0,20,PRICE_OPEN, 0)) return(0);



double iCustom( string symbol, int timeframe, string name, ... , int mode, int shift)



计算



自定义指标



的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



name -


自定义指标名称



... -


自定义指标参数




mode -


来源模式,参见指标线分类枚举



shift -


位移数




double val=iCustom(NULL, 0,



double iDeMarker( string symbol, int timeframe, int period, int shift)



计算



DeMarker indicator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



shift -


位移数




double val=iDeMarker(NULL, 0, 13, 1);



double iEnvelopes( string symbol, int timeframe, int ma_period, int ma_method,


int ma_shift, int applied_price, double deviation, int mode, int shift)



计算



Envelopes indicator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



ma_period -


移动平均线周期



ma_method -


移动平均线模式



ma_shift -


移动平均线位移



applied_price -


应用价格类型



deviation -


背离



mode -


来源模式,参见指标线分类枚举



shift -


位移数




double


val=iEnvelopes(NULL,


0,


13,MODE_SMA,10,PRICE_CLOSE,0.2,MODE_UPPER,0 );



double iEnvelopesOnArray( double array[], int total, int ma_period, int ma_method,


int ma_shift, double deviation, int mode, int shift)



从数组中计算



Envelopes indicator


的值




::


输入参数



array[] -


数组数据



total -


总数据数量



ma_period -


移动平均线周期



ma_method -


移动平均线模式



ma_shift -


移动平均线位移



deviation -


背离



mode -


来源模式,参见指标线分类枚举



shift -


位移数




double val=iEnvelopesOnArray(ExtBuffer


, 0, 13, MODE_SMA, 0.2, MODE_UPPER,0 );



double


iForce(


string


symbol,


int


timeframe,


int


period,


int


ma_method,


int


applied_price, int shift)



计算



Force index


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



ma_method -


移动平均线模式



applied_price -


应用价格类型



shift -


位移数




double val=iForce(NULL, 0, 13,MODE_SMA,PRICE_CLOSE,0);



double iFractals( string symbol, int timeframe, int mode, int shift)



计算



Fractals


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



mode -


来源模式,参见指标线分类枚举



shift -


位移数




double val=iFractals(NULL, 0, MODE_UPPER,0);



double


iGator(


string


symbol,


int


timeframe,


int


jaw_period,


int


jaw_shift,


int


teeth_period,


int


teeth_shift,


int


lips_period,


int


lips_shift,


int


ma_method,


int


applied_price, int mode, int shift)



计算



Fractals


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



jaw_period -


颚线周期



jaw_shift -


颚线位移



teeth_period -


齿线周期



teeth_shift -


齿线位移



lips_period -


唇线周期




lips_shift -


唇线位移




ma_method -


移动平均线种类



applied_price -


应用价格类型



mode -


来源模式,参见指标线分类枚举



shift -


位移数




double


jaw_val=iGator(NULL,


0,


13,


8,


8,


5,


5,


3,


MODE_SMMA,


PRICE_MEDIAN,


MODE_UPPER, 1);



double iIchimoku( string symbol, int timeframe, int tenkan_sen, int kijun_sen, int


senkou_span_b, int mode, int shift)



计算



Ichimoku Kinko Hyo


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



tenkan_sen -


转换线




jkijun_sen -


基准线




senkou_span_b -


参考范围


b



mode -


来源模式,参见指标线分类枚举



shift -


位移数




double tenkan_sen=iIchimoku(NULL, 0, 9, 26, 52, MODE_TENKANSEN, 1);



double iBWMFI( string symbol, int timeframe, int shift)



计算



Bill Williams Market Facilitation index


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



shift -


位移数




double val=iBWMFI(NULL, 0, 0);



double iMomentum( string symbol, int timeframe, int period, int applied_price, int


shift)



计算



Momentum indicator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



applied_price -


应用价格类型



shift -


位移数




i f(iMomentum(NULL,0,12,PRICE_CLOSE,0)>iMomentum(NUL L,0,20,PRICE_CLOSE,0


)) return(0);



double iMomentumOnArray( double array[], int total, int period, int shift)



从数组中计算



Momentum indicator


的值




::


输入参数



array[] -


数组数据



total -


总数据数量



period -


周期



shift -


位移数




i f(iMomentumOnArray(mybuffer


,100,12,0)>i MomentumOnArray(mubuffer


,100,20,0)

< p>
) return(0);



double iMFI( string symbol, int timeframe, int period, int shift)



计算



Money flow index


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



shift -


位移数




if(iMFI(NULL,0,14,0)>iMFI(NULL,0,14,1)) return(0);



double iMA( string symbol, int timeframe, int period, int ma_shift, int ma_method,


int applied_price, int shift)



计算



Moving average indicator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



ma_shift -


移动平均线位移



ma_method -


移动平均线模式



applied_price -


应用价格类型



shift -


位移数




A lligatorJawsBuffer[i]=iMA(NULL,0,13,8,MODE_SMMA,PR ICE_MEDIAN,i);



double


iMAOnArray(


double


array[],


int


total,


int


period,


int


ma_shift,


int


ma_method, int shift)



从数组中计算



Moving average indicator


的值




::


输入参数



array[] -


数组数据



total -


总数据数量



period -


周期



ma_shift -


移动平均线位移



ma_method -


移动平均线模式



shift -


位移数




double macurrent=iMAOnArray(ExtBuffer


,0,5,0,MODE_LWMA,0);


double ma currentslow=iMAOnArray(ExtBuffer


,0,10,0 ,MODE_LWMA,0);


double maprev=iMAOnArray (ExtBuffer


,0,5,0,MODE_LWMA,1);


double maprevslow=iMAOnArray(ExtBuffer< /p>


,0,10,0,MODE_LWMA,1);


//----


if(maprev=macurrentslow)


Alert(



double


iOsMA(


string


symbol,


int


timeframe,


int


fast_ema_period,


int


slow_ema_period, int signal_period, int applied_price, int shift)



计算



Moving Average of Oscillator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



fast_ema_period -


快均线周期



slow_ema_period -


慢均线周期



signal_period -


信号周期



applied_price -


应用价格类型



shift -


位移数




i f(iOsMA(NULL,0,12,26,9,PRICE_OPEN,1)>iOsMA(NULL,0, 12,26,9,PRICE_OPEN,0))


return(0);



double


iMACD(


string


symbol,


int


timeframe,


int


fast_ema_period,


int


slow_ema_period, int signal_period, int applied_price, int mode, int shift)



计算



Moving averages convergence/divergence


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



fast_ema_period -


快均线周期



slow_ema_period -


慢均线周期



signal_period -


信号周期



applied_price -


应用价格类型



mode -


来源模式,参见指标线分类枚举



shift -


位移数




if(iMACD(NULL,0,12,26,9,PRI CE_CLOSE,MODE_MAIN,0)>iMACD(NULL,0,12,26,9,PRI


CE_CLOSE,MODE_SIGNAL,0)) return(0);



double iOBV( string symbol, int timeframe, int applied_price, int shift)



计算



On Balance Volume indicator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



shift -


位移数




double val=iOBV(NULL, 0, PRICE_CLOSE, 1);



double iSAR( string symbol, int timeframe, double step, double maximum, int shift)



计算



On Balance Volume indicator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



step -


步幅



maximum -


最大值



shift -


位移数




if(iSAR(NULL,0,0.02,0.2,0)>Close[0]) return(0);



double iRSI( string symbol, void timeframe, int period, int applied_price, int shift)



计算



Relative strength index


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



applied_price -


应用价格类型



shift -


位移数




i f(iRSI(NULL,0,14,PRICE_CLOSE,0)>iRSI(NULL,0,14,PRI CE_CLOSE,1)) return(0);



double iRSIOnArray( double array[], int total, int period, int shift)



从数组中计算



Relative strength index


的值




::


输入参数



array[] -


数组数据



total -


总数据数量



period -


周期



shift -


位移数




i f(iRSIOnBuffer(ExtBuffer


,1000,14,0)>iRS I(NULL,0,14,PRICE_CLOSE,1)) return(0);



double iRVI( string symbol, int timeframe, int period, int mode, int shift)



计算



Relative Vigor index


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



mode -


来源模式,参见指标线分类枚举



shift -


位移数




double val=iRVI(NULL, 0, 10,MODE_MAIN,0);



double iStdDev( string symbol, int timeframe, int ma_period, int ma_method, int


ma_shift, int applied_price, int shift)



计算



Standard Deviation indicator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



ma_period -


移动平均线周期



ma_method -


移动平均线模式



ma_shift -


移动平均线位移



applied_price -


应用价格类型



shift -


位移数




double val=iStdDev(NULL,0,10,MODE_EMA,0,PRICE_CLOSE,0);



double iStdDevOnArray( double array[], int total, int ma_period, int ma_method,


int ma_shift, int shift)



从数组中计算



Standard Deviation indicator


的值




::


输入参数



array[] -


数组数据



total -


总数据数量



ma_period -


移动平均线周期



ma_method -


移动平均线模式



ma_shift -


移动平均线位移



shift -


位移数




double val=iStdDevOnArray(ExtBuffer


,100,10,MODE_EMA,0,0);



double iStochastic( string symbol, int timeframe, int %Kperiod, int %Dperiod, int


slowing, int method, int price_field, int mode, int shift)



计算



Stochastic oscillator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



%Kperiod - %K


线周期




%Dperiod - %D


线周期



slowing -


减速量



method -


移动平均线种类



price_field -


价格领域参数


: 0 - Low/High or 1 - Close/Close.



mode -


来源模式,参见指标线分类枚举



shift -


位移数




if(iStochastic(NULL,0,5,3,3 ,MODE_SMA,0,MODE_MAIN,0)>iStochastic(NULL,0,5,3,3,


MODE_SMA,0,MODE_SIGNAL,0))


return(0);



double iWPR( string symbol, int timeframe, int period, int shift)



计算



Larry William's percent range indicator


的值




::


输入参数



symbol -


通货标识



timeframe -


时间线



period -


周期



shift -


位移数




if(iWPR(NULL,0,14,0)>iWPR(NULL,0,14,1)) return(0);



int iBars( string symbol, int timeframe)



返回制定图表的数据数




::


输入参数



symbol -


通货标识



timeframe -


时间线




Print(


count


on


the


'EUROUSD'


symbol


with


PERIOD_H1


is



int iBarShift( string symbol, int timeframe, datetime time, bool exact=false)



在制定图表中搜索数据




::


输入参数



symbol -


通货标识



timeframe -


时间线


-


-


-


-


-


-


-


-



本文更新与2021-02-16 12:09,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/658577.html

MT4常用函数变量说明的相关文章