潜龙冲天通达信公式 副图 源码附图
N1:=5;
N2:=62;
LA:=(C+O)/2;
LB:=(LA+L)/2;
LC:=(LA+H)/2;
LD:=REF((C+O+H+L)/4,1);
LE:=(H+L)/2;
RSI1:=SMA(MAX(LA-LD,0),N1,2)/SMA(ABS(LA-LD),N1,2)*100;
RSI3:=SMA(MAX(L-LD,0),N2,1)/SMA(ABS(L-LD),N2,1)*100;
RSI4:=SMA(MAX(LB-LD,0),N2,1)/SMA(ABS(LB-LD),N2,1)*100;
V3:=SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),2,1)*100;
V5:=SMA(V3,2,1);{股票指标网}
LCC:=REF(CLOSE,1);
RSI111:=SMA(MAX(CLOSE-LCC,0),N1,2)/SMA(ABS(CLOSE-LCC),N1,2)*100,COLORBLACK;
抄底:IF(V3>V5 AND RSI111>REF(RSI111,1) AND V3>REF(V3,1)
AND CROSS(RSI111,V3) AND RSI4>V3 AND V3<28.888 AND V3>3.888 AND V5>REF(V5,1)
,100,0);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N1赋值:5
N2赋值:62
LA赋值:(C+O)/2
LB赋值:(LA+L)/2
LC赋值:(LA+H)/2
LD赋值:REF((C+O+H+L)/4,1)
LE赋值:(H+L)/2
RSI1赋值:SMA(LA-LD和0较大值,N1,2)/SMA(LA-LD的绝对值,N1,2)*100
RSI3赋值:SMA(L-LD和0较大值,N2,1)/SMA(L-LD的绝对值,N2,1)*100
RSI4赋值:SMA(LB-LD和0较大值,N2,1)/SMA(LB-LD的绝对值,N2,1)*100
V3赋值:SMA((收盘价-8日内最低价最低值)/(8日内最高价最高值-8日内最低价最低值),2,1)*100
V3的2日[1日权重]移动平均
{股票指标网}
LCC:=1日前的收盘价
RSI111:=SMA(收盘价-LCC和0较大值,N1,2)/SMA(收盘价-LCC的绝对值,N1,2)*100,COLORBLACK
输出抄底:IF(V3>V5 AND RSI111>1日前的RSI111 AND V3>1日前的V3
AND RSI111上穿V3 AND RSI4>V3 AND V3<28.888 AND V3>3.888 AND V5>1日前的V5
,100,0)