第二十节 指标函数.docx
- 文档编号:17141859
- 上传时间:2023-07-22
- 格式:DOCX
- 页数:46
- 大小:24.29KB
第二十节 指标函数.docx
《第二十节 指标函数.docx》由会员分享,可在线阅读,更多相关《第二十节 指标函数.docx(46页珍藏版)》请在冰点文库上搜索。
第二十节指标函数
TechnicalIndicatorcalls
AcceleratorOscillator-iAC()
Accumulation/Distribution-iAD()
Alligator-iAlligator()
AverageDirectionalMovementIndex-iADX()
AverageTrueRange-iATR()
AwesomeOscillator-iAO()
BearsPower-iBearsPower()
BollingerBands-iBands()
BollingerBandsonbuffer-iBandsOnArray()
BullsPower-iBullsPower()
CommodityChannelIndex-iCCI()
CommodityChannelIndexonbuffer-iCCIOnArray()
CustomIndicator-iCustom()
DeMarker-iDeMarker()
Envelopes-iEnvelopes()
Envelopesonbuffer-iEnvOnArray()
ForceIndex-iForce()
Fractals-iFractals()
GatorOscillator-iGator()
IchimokuKinkoHyo-iIchimoku()
MarketFacilitationIndex(BillWilliams)-iBWMFI()
Momentum-iMomentum()
Momentumonbuffer-iMomOnArray()
MoneyFlowIndex-iMFI()
MovingAverage-iMA()
MovingAverageonbuffer-iMAOnArray()
MovingAverageofOscillator-iOsMA()
MovingAveragesConvergence/Divergence-iMACD()
OnBalanceVolume-iOBV()
ParabolicSAR-iSAR()
RelativeStrengthIndex-iRSI()
RelativeStrengthIndexonbuffer-iRSIOnArray()
RelativeVigorIndex-iRVI()
StandardDeviation-iStdDev()
StandardDeviationonbuffer-iStdDevOnArray()
StochasticOscillator-iStochastic()
William'sPercentRange-iWPR()
Highest()
Lowest()
doubleiAC(
string symbol,int timeframe,int shift)
CalculatestheBillWilliams'Accelerator/Deceleratoroscillatorandreturnsit'svalue.
Parameters
symbol
-
Symbolonthatdataneedtocalculateindicator.NULLmeanscurrentsymbol.
timeframe
-
Timeframe,bydefaultusedcurrentchartperiod.ItcanbeanyoneofTimeframeenumerationvalues.
shift
-
Shiftrelativetothecurrentbar(numberofperiodsback),wherethedataistobetakenfrom.
Sample
doubleresult;
result=iAC(NULL,0,1);
doubleiAD(
string symbol,int timeframe,int shift)
CalculatestheAccumulation/Distributionindicatorandreturnsit'svalue.
Parameters
symbol
-
Symbolonthatdataneedtocalculateindicator.NULLmeanscurrentsymbol.
timeframe
-
Timeframe,bydefaultusedcurrentchartperiod.ItcanbeanyoneofTimeframeenumerationvalues.
shift
-
Shiftrelativetothecurrentbar(numberofperiodsback),wherethedataistobetakenfrom.
Sample
doubleresult;
result=iAD(NULL,0,1);
doubleiAlligator(
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)
CalculatestheBillWilliams'Alligatorandreturnsit'svalue.
Parameters
symbol
-
Symbolonthatdataneedtocalculateindicator.NULLmeanscurrentsymbol.
timeframe
-
Timeframe,bydefaultusedcurrentchartperiod.ItcanbeanyoneofTimeframeenumerationvalues.
jaw_period
-
Jawperiod.
jaw_shift
-
Jawlineshift.
teeth_period
-
Teethperiod.
teeth_shift
-
Teethlineshift.
lips_period
-
Lipsperiod.
lips_shift
-
Lipslineshift.
ma_method
-
MAmethod.ItcanbeanyoneoftheMovingAveragemethodenumerationvalue.
applied_price
-
Appliedprice.ItcanbeanyoneofAppliedpriceenumerationvalues.
mode
-
Sourceofdata.Itcanbeanyoneofthefollowingvalues:
MODE_GATORJAW-GatorJaw(blue)balanceline,
MODE_GATORTEETH-GatorTeeth(red)balanceline,
MODE_GATORLIPS-GatorLips(green)balanceline.
shift
-
Shiftrelativetothecurrentbar(numberofperiodsback),wherethedataistobetakenfrom.
Sample
doublejaw_val;
jaw_val=iAlligator(NULl,0,13,8,8,5,5,3,MODE_SMMA,PRICE_MEDIAN,MODE_GATORJAW,1);
doubleiADX(
string symbol,int timeframe,int period,int applied_price,int mode,int shift)
CalculatestheMovementdirectionalindexandreturnsit'svalue.
Parameters
symbol
-
Symbolonthatdataneedtocalculateindicator.NULLmeanscurrentsymbol.
timeframe
-
Timeframe,bydefaultusedcurrentchartperiod.ItcanbeanyoneofTimeframeenumerationvalues.
period
-
Numberofperiodsforcalculation.
applied_price
-
Appliedprice.ItcanbeanyoneofAppliedpriceenumerationvalues.
mode
-
Indicatorlinearrayindex.ItcanbeanyoneoftheIndicatorslineidentifiersenumerationvalue.
shift
-
Shiftrelativetothecurrentbar(numberofperiodsback),wherethedataistobetakenfrom.
Sample
if(iADX(NULL,0,14,PRICE_HIGH,MODE_MAIN,0)>iADX(NULL,0,14,PRICE_HIGH,MODE_PLUSDI,0))return(0);
doubleiATR(
string symbol,int timeframe,int period,int shift)
CalculatestheIndicatoroftheaveragetruerangeandreturnsit'svalue.
Parameters
symbol
-
Symbolonthatdataneedtocalculateindicator.NULLmeanscurrentsymbol.
timeframe
-
Timeframe,bydefaultusedcurrentchartperiod.ItcanbeanyoneofTimeframeenumerationvalues.
period
-
Numberofperiodsforcalculation.
shift
-
Shiftrelativetothecurrentbar(numberofperiodsback),wherethedataistobetakenfrom.
Sample
if(iATR(NULL,0,12,0)>iATR(NULL,0,20,0))return(0);
doubleiAO(
string ,int timeframe,int shift)
CalculatestheBillWilliams'Awesomeoscillatorandreturnsit'svalue.
Parameters
...
-
Symbolonthatdataneedtocalculateindicator.NULLmeanscurrentsymbol.
timeframe
-
Timeframe,bydefaultusedcurrentchartperiod.ItcanbeanyoneofTimeframeenumerationvalues.
shift
-
Shiftrelativetothecurrentbar(numberofperiodsback),wherethedataistobetakenfrom.
Sample
doubleval;
val=iAO(NULL,0,2);
doubleiBearsPower(
string symbol,int timeframe,int period,int applied_price,int shift)
CalculatestheBearsPowerindicatorandreturnsit'svalue.
Parameters
symbol
-
Symbolonthatdataneedtocalculateindicator.NULLmeanscurrentsymbol.
timeframe
-
Timeframe,bydefaultusedcurrentchartperiod.ItcanbeanyoneofTimeframeenumerationvalues.
period
-
Numberofperiodsforcalculation.
applied_price
-
Appliedprice.ItcanbeanyoneofAppliedpriceenumerationvalues.
shift
-
Shiftrelativetothecurrentbar(numberofperiodsback),wherethedataistobetakenfrom.
Sample
doubleval;
val=iBearsPower(NULL,0,13,PRICE_CLOSE,0);
doubleiBands(
string symbol,int timeframe,int period,int deviation,int bands_shift,int applied_price,int mode,int shift)
CalculatestheBollingerbandsindicatorandreturnsit'svalue.
Parameters
symbol
-
Symbolonthatdataneedtocalculateindicator.NULLmeanscurrentsymbol.
timeframe
-
Timeframe,bydefaultusedcurrentchartperiod.ItcanbeanyoneofTimeframeenumerationvalues.
period
-
Numberofperiodsforcalculation.
deviation
-
Deviation.
bands_shift
-
Bandsshift.
applied_price
-
Appliedprice.ItcanbeanyoneofAppliedpriceenumerationvalues.
mode
-
Indicatorlinearrayindex.ItcanbeanyoneoftheIndicatorslineidentifiersenumerationvalue.
shift
-
Shiftrelativetothecurrentbar(numberofperiodsback),wherethedataistobetakenfrom.
Sample
if(iBands(NULL,0,20,2,0,PRICE_LOW,MODE_LOWER,0)>Low[0])return(0);
doubleiBandsOnArray(
double array[],int total,int deviation,int bands_shift,int mode,int shift)
CalculatestheBollingerbandsindicatorandreturnsit'svalue.
Parameters
array[]
-
Arraywithdata.
total
-
Itemsnumbertocounting.
deviation
-
Deviation.
bands_shift
-
Bandsshift.
mode
-
Seriesarrayidentifier.ItcanbeanyoneoftheSeriesarrayidentifierenumerationvalues.
shift
-
Shiftrelativetothecurrentbar(numberofperiodsback),wherethedataistobetakenfrom.
Sample
if(iBands(ExtBuffer,total,2,0,MODE_LOWER,0)>Low[0])return(0);
doubleiBullsPower(
string symbol,int timeframe,int period,int applied_price,int shift)
CalculatestheBullsPowerindicatorandreturnsit'svalue.
Parameters
symbol
-
Symbolonthatdataneedtocalculateindicator.NULLmeanscurrentsymbol.
timeframe
-
Timeframe,bydefaultusedcurrentchartperiod.ItcanbeanyoneofTimeframeenumerationvalues.
period
-
Numberofperiodsforcalculation.
applied_price
-
Appliedprice.ItcanbeanyoneofAppliedpriceenumerationvalues.
shift
-
Shiftrelativetothecurrentbar(numberofperiodsback),wherethedataistobetakenfrom.
Sample
doubleval;
val=iBullsPower(NULL,0,13,PRICE_CLOSE,0);
doubleiCCI(
string symbol,int timeframe,int period,int applied_price,int shift)
CalculatestheCommoditychannelindexandreturnsit'svalue.
Parameters
symbol
-
Symbolonthatdataneedtocalculateindicator.NULLmeanscurrentsymbol.
timeframe
-
Timeframe,bydefaultusedcurrentchartperiod.ItcanbeanyoneofTimeframeenumerationvalues.
period
-
Numberofperiodsforcalculation.
applied_price
-
Appliedprice.ItcanbeanyoneofAppliedpriceenumerationvalues.
shift
-
Shiftrelativetothecurrentbar(numberofperiodsback),wherethedataistobetakenfrom.
Sample
if(iCCI(NULL,0,12,0)>iCCI(NULL,0,20,0))return(0);
doubleiCCIOnArray(
double array[],int total,int period,int shift)
CalculatestheCommoditychannelindexandreturnsit'svalue.
Parameters
array[]
-
Arraywithdata.
total
-
Itemsnumbertocounting.
period
-
Numberofperiodsforcalculation.
shift
-
Shiftrelativetothecurrentbar(numberofperiodsback),wherethedataistobetakenfrom.
Sample
if(iCCIOnArray(ExtBuffer,total,12,0)>iCCI(NULL,0,20,PRICE_OPEN,0))return(0);
doubleiCustom(
string symbol,int timeframe,string name,... ,int
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 第二十节 指标函数 第二十 指标 函数