通达信公式漂亮彩K主图
VAR9Q:=C=HHV(C,4)AND (REF(C,1)>=REF(C,2)OR REF(C,1)>=REF(C,3))
OR REF(C,1)=HHV(C,4)AND CLOSE>=REF(C,2)OR REF(C,2)=HHV(C,4)
AND REF(C,3)=LLV(C,4)AND C>=REF(C,1)OR REF(C,3)=HHV(C,4)AND C>=REF(C,1)
AND C>=REF(C,2);
红持:=VAR9Q;
STICKLINE(VAR9Q,C,(O+C)/2,3,0),COLOR000088;
STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR0000AA;
STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000BB;
STICKLINE(VAR9Q,C,(O+C)/2,0.1,0),COLOR0000FF;
VARAQ:=C=HHV(C,4)AND REF(C,1)=LLV(C,4);
粉变:=VARAQ;
STICKLINE(VARAQ,C,(O+C)/2,3,0),COLOR981198;
STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORCC55CC;
STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFF99FF;
STICKLINE(VARAQ,C,(O+C)/2,0.1,0),COLORFFDDFF;
VARBQ:=C=LLV(C,4)AND(REF(C,1)<REF(C,2)OR REF(C,1)<REF(C,3))
OR REF(C,1)=LLV(C,4)AND C<REF(C,2)OR REF(C,2)=LLV(C,4)
AND REF(C,1)!=HHV(C,4)AND C<REF(C,1)OR REF(C,3)=LLV(C,4)AND C<REF(C,1)
AND C<REF(C,2);
灰跌:=VARBQ;
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,3,0),COLOR888888;
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,2,0),COLORAAAAAA;
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,1,0),COLORCCCCCC;
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,0.1,0),COLORFFFFFF;
STICKLINE(VARBQ AND C<O,C,O-(O-C)/2,3,0),COLOR888888;
STICKLINE(VARBQ AND C<O,C,O-(O-C)/2,2,0),COLORAAAAAA;
STICKLINE(VARBQ AND C<O,C,O-(O-C)/2,1,0),COLORCCCCCC;
STICKLINE(VARBQ AND C<O,C,O-(O-C)/2,0.1,0),COLORFFFFFF;
VARCQ:=REF(C,1)=LLV(C,4)AND C>=REF(C,2)OR REF(C,2)=LLV(C,4)
AND REF(C,1)<=REF(C,3)AND REF(C,2)<REF(C,4)AND C>=REF(C,1); 绿买:=VARCQ;
STICKLINE(VARCQ,O,(O+C)/2,3,0),COLOR008800;
STICKLINE(VARCQ,O,(O+C)/2,2,0),COLOR00AA00;
STICKLINE(VARCQ,O,(O+C)/2,1,0),COLOR00CC00;
STICKLINE(VARCQ,O,(O+C)/2,0.1,0),COLOR00FF00;
VARDQ:=REF(C,1)=HHV(C,4)AND C<REF(C,2)OR(REF(C,2)=HHV(C,4)
AND REF(C,1)>REF(C,3)OR REF(C,3)=HHV(C,4)AND REF(C,1)>REF(C,2))
AND REF(C,2)>=REF(C,4)AND C<REF(C,1);
蓝抛:=VARDQ;
STICKLINE(VARDQ,O,(O+C)/2,3,0),COLORFF5500;
STICKLINE(VARDQ,O,(O+C)/2,2,0),COLORFF8800;
STICKLINE(VARDQ,O,(O+C)/2,1,0),COLORFFAA00;
STICKLINE(VARDQ,O,(O+C)/2,0.1,0),COLORFFCC00;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR9Q赋值:C=4日内C最高值AND (1日前的C>=2日前的COR 1日前的C>=3日前的C)
OR 1日前的C=4日内C最高值AND 收盘价>=2日前的COR 2日前的C=4日内C最高值
AND 3日前的C=4日内C最低值AND C>=1日前的COR 3日前的C=4日内C最高值AND C>=1日前的C
AND C>=2日前的C
红持赋值:VAR9Q
STICKLINE(VAR9Q,C,(O+C)/2,3,0),COLOR000088
STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR0000AA
STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000BB
STICKLINE(VAR9Q,C,(O+C)/2,0.1,0),COLOR0000FF
VARAQ赋值:C=4日内C最高值AND 1日前的C=4日内C最低值
粉变赋值:VARAQ
STICKLINE(VARAQ,C,(O+C)/2,3,0),COLOR981198
STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORCC55CC
STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFF99FF
STICKLINE(VARAQ,C,(O+C)/2,0.1,0),COLORFFDDFF
VARBQ赋值:C=4日内C最低值AND(1日前的C<2日前的COR 1日前的C<3日前的C)
OR 1日前的C=4日内C最低值AND C<2日前的COR 2日前的C=4日内C最低值
AND 1日前的C!=4日内C最高值AND C<1日前的COR 3日前的C=4日内C最低值AND C<1日前的C
AND C<2日前的C
灰跌赋值:VARBQ
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,3,0),COLOR888888
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,2,0),COLORAAAAAA
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,1,0),COLORCCCCCC
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,0.1,0),COLORFFFFFF
STICKLINE(VARBQ AND C
STICKLINE(VARBQ AND C
STICKLINE(VARBQ AND C
STICKLINE(VARBQ AND C
VARCQ赋值:1日前的C=4日内C最低值AND C>=2日前的COR 2日前的C=4日内C最低值
AND 1日前的C<=3日前的CAND 2日前的C<4日前的CAND C>=1日前的C
绿买赋值:VARCQ
STICKLINE(VARCQ,O,(O+C)/2,3,0),COLOR008800
STICKLINE(VARCQ,O,(O+C)/2,2,0),COLOR00AA00
STICKLINE(VARCQ,O,(O+C)/2,1,0),COLOR00CC00
STICKLINE(VARCQ,O,(O+C)/2,0.1,0),COLOR00FF00
VARDQ赋值:1日前的C=4日内C最高值AND C<2日前的COR(2日前的C=4日内C最高值
AND 1日前的C>3日前的COR 3日前的C=4日内C最高值AND 1日前的C>2日前的C)
AND 2日前的C>=4日前的CAND C<1日前的C
蓝抛赋值:VARDQ
STICKLINE(VARDQ,O,(O+C)/2,3,0),COLORFF5500
STICKLINE(VARDQ,O,(O+C)/2,2,0),COLORFF8800
STICKLINE(VARDQ,O,(O+C)/2,1,0),COLORFFAA00
STICKLINE(VARDQ,O,(O+C)/2,0.1,0),COLORFFCC00