一、指标概述
弘历强弱王指标是一种技术分析指标,其主要用于辨别股票的强弱,以及预测其未来的走势。该指标包含4个短期指标和4个中长期指标,分别计算出强势值和弱势值,通过比较两者的大小来进行判断。公式如下:
HRC:=EMA(CLOSE,22); PRC:=EMA(CLOSE,11); LLVLOW:=LLV(LOW,22); HHVHIGH:=HHV(HIGH,22); VC:=IF((C-LLVLOW)/(HHVHIGH-LLVLOW)*100>=100,100,(C-LLVLOW)/(HHVHIGH-LLVLOW)*100); VL:=EMA(VC,6); LRC:=EMA(VL,18); HRC1:=EMA(CLOSE,45); PRC1:=EMA(CLOSE,22); LLVLOW1:=LLV(LOW,45); HHVHIGH1:=HHV(HIGH,45); VC1:=IF((C-LLVLOW1)/(HHVHIGH1-LLVLOW1)*100>=100,100,(C-LLVLOW1)/(HHVHIGH1-LLVLOW1)*100); VL1:=EMA(VC1,12); LRC1:=EMA(VL1,36); WFC1:(HRC+PRC)/2*LRC; WFC2:LRC; WFC3:(HRC1+PRC1)/2*LRC1; WFC4:LRC1; WRVR:((WFC1+WFC2+WFC3+WFC4)/4)/REF((WFC1+WFC2+WFC3+WFC4)/4,1)*100; WR:IF(WRVR<=30,-1,0); WW:IF(WRVR>=70,1,0); BSIGNAL:IF(CROSS(WWR,WR),1,0); SSIGNAL:IF(CROSS(WR,WWR),1,0); WWR:IF(REF(LOW,1)二、指标使用方法
1、强势值和弱势值的比较操作:通过比较强势值和弱势值的大小,可以得出当前股票的强弱状态。当强势值大于弱势值,表示该股票处于强势状态,可以考虑买入或持有;当强势值小于弱势值,表示该股票处于弱势状态,可以考虑卖出或观望。
2、交易信号的判断:当WRVR指标曲线在30以下的区域形成底部,或在70以上的区域形成顶部,并且当前K线向上穿越WR线时,形成买入信号;当WRVR指标曲线在30以下的区域形成底部,或在70以上的区域形成顶部,并且当前K线向下穿越WR线时,形成卖出信号。
三、代码实现示例
通达信版代码示例:
HRC:=EMA(CLOSE,22); PRC:=EMA(CLOSE,11); LLVLOW:=LLV(LOW,22); HHVHIGH:=HHV(HIGH,22); VC:=IF((C-LLVLOW)/(HHVHIGH-LLVLOW)*100>=100,100,(C-LLVLOW)/(HHVHIGH-LLVLOW)*100); VL:=EMA(VC,6); LRC:=EMA(VL,18); HRC1:=EMA(CLOSE,45); PRC1:=EMA(CLOSE,22); LLVLOW1:=LLV(LOW,45); HHVHIGH1:=HHV(HIGH,45); VC1:=IF((C-LLVLOW1)/(HHVHIGH1-LLVLOW1)*100>=100,100,(C-LLVLOW1)/(HHVHIGH1-LLVLOW1)*100); VL1:=EMA(VC1,12); LRC1:=EMA(VL1,36); WFC1:(HRC+PRC)/2*LRC; WFC2:LRC; WFC3:(HRC1+PRC1)/2*LRC1; WFC4:LRC1; WRVR:((WFC1+WFC2+WFC3+WFC4)/4)/REF((WFC1+WFC2+WFC3+WFC4)/4,1)*100; WR:IF(WRVR<=30,-1,0); WW:IF(WRVR>=70,1,0); BSIGNAL:IF(CROSS(WWR,WR),1,0); SSIGNAL:IF(CROSS(WR,WWR),1,0); WWR:IF(REF(LOW,1)四、总结
弘历强弱王指标公式的计算过程相对较为复杂,但其判断股票强弱和预测股票走势的准确率较高,适合用于短线操作和中长线投资。在实际使用中,应根据个人的投资风格和市场情况进行适当调整,结合其他技术指标和基本面分析,以实现更好的收益。