我所用的一个最简单的买卖指标(源码)
比率=((最高价-开盘价)+(收盘价-最低))/(2*范围)Ratio=((High-Open)+(Close-Low))/(2*Range)
Rules for selling: a ratio of 64% or higher
卖出的法则: 当比率高于64% 卖出
Rules for buying: a ratio of 37% or lower
买入的法则: 当比率低于37% 买进
#define OB_RATIO 0.64 //sell signal, overbought
#define OS_RATIO 0.37 //buysignal, oversold
#define NORMAL_RATIO 0.5 //normal ratio
double dGetRatio(int iTimeFrame, int iShift)
{
double dOpen, dHigh, dLow, dClose, dRatio=NORMAL_RATIO, dRange;
//Ratio=((High-Open)+(Close-Low))/(2*Range)
//Rules for selling: a ratio of 64% or higher
//Rules for buying: a ratio of 37% or lower
dOpen= iOpen(NULL,iTimeFrame,iShift);
dHigh= iHigh(NULL,iTimeFrame,iShift);
dLow = iLow(NULL,iTimeFrame,iShift);
dClose = iClose(NULL,iTimeFrame,iShift);
dRange = dHigh - dLow;
if( dRange > 0 )
dRatio = ((dHigh-dOpen)+(dClose- dLow))/(2*dRange);
if( (dRatio < 0.00001) || (dRatio > 0.9999) ) dRatio = NORMAL_RATIO;
return (dRatio);
} 谢谢分享 感謝樓主 顶你一下,好贴要顶! 我帮你 喝喝 唉,悲催的外汇。。 哪里可以下载到好的EA哦 人气还要再提高 原来是这样 xiexiefenxiang