狂人控盘通达信版本通达信指标 副图 源码附图
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
J1:=REVERSE(J);
AA:=REF(MA(C,1),10)>REF(MA(C,60),10);
买点:=CROSS(J,J1) AND AA;
STICKLINE(买点,0,20,10,0),colorblue;
STICKLINE(买点,20,35,7,0),colorwhite;
STICKLINE(买点,35,79,2,0),coloryellow;
DRAWICON(买点,80,18);
VAR21:=REF((L+O+C+H)/4,1);
VAR22:=SMA(ABS(VAR21-H),13,1)/SMA(MAX(VAR21-H,0),10,1);
VAR23:=EMA(VAR22,10);
VAR24:=HHV(H,33);
VAR25:=EMA(IF(H>=VAR24,VAR23,0),3)*-1;
主力退场:IF(VAR25>REF(VAR25,1),VAR25,0),NODRAW;
主力诱多:IF(VAR25<REF(VAR25,1),VAR25,0),NODRAW;
B1:=(HHV(H,12)-C)/(HHV(H,12)-LLV(LOW,12))*100-38;
B2:=SMA(B1,12,1)+100;
B3:=(C-LLV(L,12))/(HHV(H,12)- LLV(L,12))*100;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:B5-B2;
控盘程度:=(IF(B6>1,B6-1,0)),coloryellow;
STICKLINE( 控盘程度,0,控盘程度 ,5,0 ),COLOR00FFFF;
STICKLINE( 控盘程度 AND 控盘程度>50,50,控盘程度 ,5,0 ),colorred;
STICKLINE( 控盘程度<REF(控盘程度,1) AND 控盘程度>50,控盘程度,50,5,0 ),colorblue;
STICKLINE( 控盘程度<REF(控盘程度,1) AND 控盘程度>50,控盘程度,0,0.5,0 ),colorgreen;
STICKLINE( 控盘程度<REF(控盘程度,1) AND 控盘程度<50,控盘程度,0,5,0 ),colorcyan;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
主力建仓:IF(VAR5>REF(VAR5,1),VAR5,0),colorred,NODRAW;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,5,0 ),colorred;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR000055;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;
洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),colorgreen,NODRAW;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,5,0),colorgreen;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR005500;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0),COLOR007700;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0),COLOR009900;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
RSV赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
J赋值:3*K-2*D
J1:=J的相反数
AA赋值:REF(C的1日简单移动平均,10)>REF(C的60日简单移动平均,10)
买点赋值:J上穿J1 AND AA
当满足条件买点时,在0和20之间画柱状线
当满足条件买点时,在20和35之间画柱状线
当满足条件买点时,在35和79之间画柱状线
当满足条件买点时,在80和18之间画图标
VAR21赋值:REF((L+O+C+H)/4,1)
VAR22赋值:SMA(VAR21-H的绝对值,13,1)/SMA(VAR21-H和0较大值,10,1)
VAR23赋值:VAR22的10日指数移动平均
VAR24赋值:33日内H最高值
如果H>=VAR24返回VAR23否则返回0
输出主力退场:IF(VAR25>1日前的VAR25,VAR25,0),NODRAW
输出主力诱多:IF(VAR25<1日前的VAR25,VAR25,0),NODRAW
B1赋值:(12日内H最高值-C)/(12日内H最高值-12日内最低价最低值)*100-38
B1的12日[1日权重]移动平均
B3赋值:(C-12日内L最低值)/(12日内H最高值- 12日内L最低值)*100
B3的3日[1日权重]移动平均
B4的3日[1日权重]移动平均
输出B6:B5-B2
如果B6>1返回B6-1否则返回0
当满足条件 控盘程度时,在0和控盘程度 之间画柱状线
当满足条件 控盘程度 AND 控盘程度>50时,在50和控盘程度 之间画柱状线
STICKLINE( 控盘程度<1日前的控盘程度 AND 控盘程度>50,控盘程度,50,5,0 ), 画蓝色
STICKLINE( 控盘程度<1日前的控盘程度 AND 控盘程度>50,控盘程度,0,0.5,0 ),画绿色
STICKLINE( 控盘程度<1日前的控盘程度 AND 控盘程度<50,控盘程度,0,5,0 ),画青色
VAR1赋值:REF((最低价+开盘价+收盘价+最高价)/4,1)
VAR2赋值:SMA(最低价-VAR1的绝对值,13,1)/SMA(最低价-VAR1和0较大值,10,1)
VAR3赋值:VAR2的10日指数移动平均
VAR4赋值:33日内最低价最低值
如果最低价<=VAR4返回VAR3否则返回0
输出主力建仓:IF(VAR5>1日前的VAR5,VAR5,0),COLORRED,NODRAW
STICKLINE(VAR5>1日前的VAR5,0,VAR5,5,0 ),COLORRED
STICKLINE(VAR5>1日前的VAR5,0,VAR5,3,0 ),COLOR000055
STICKLINE(VAR5>1日前的VAR5,0,VAR5,2.6,0 ),COLOR000077
STICKLINE(VAR5>1日前的VAR5,0,VAR5,2.1,0 ),COLOR000099
STICKLINE(VAR5>1日前的VAR5,0,VAR5,1.5,0 ),COLOR0000BB
STICKLINE(VAR5>1日前的VAR5,0,VAR5,0.9,0 ),COLOR0000DD
STICKLINE(VAR5>1日前的VAR5,0,VAR5,0.3,0 ),COLOR0000FF
输出洗盘:IF(VAR5<1日前的VAR5,VAR5,0),画绿色,NODRAW
STICKLINE(VAR5<1日前的VAR5,0,VAR5,5,0),画绿色
STICKLINE(VAR5<1日前的VAR5,0,VAR5,3,0),COLOR005500
STICKLINE(VAR5<1日前的VAR5,0,VAR5,2.6,0),COLOR007700
STICKLINE(VAR5<1日前的VAR5,0,VAR5,2.1,0),COLOR009900
STICKLINE(VAR5<1日前的VAR5,0,VAR5,1.5,0),COLOR00BB00
STICKLINE(VAR5<1日前的VAR5,0,VAR5,0.9,0),COLOR00DD00
STICKLINE(VAR5<1日前的VAR5,0,VAR5,0.3,0),COLOR00FF00