通达信短线狙击手之轻松买点指标

VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,20);
VAR4:=MA(CLOSE,30);
VAR5:=MA(CLOSE,60);
F1:=VAR1>REF(VAR1,1);
F2:=VAR2>REF(VAR2,1);
F3:=VAR2>REF(VAR2,1);
F4:=VAR2>REF(VAR2,1);
F5:=VAR2>REF(VAR2,1);
x1:=EMA(C,7);
drawtext(filter(var3 and var2 and count(x1<ref(x1,1),5)>2 and x1>ref(x1,1),3),l-0.01,'短↑多'),ColorFFFFFF;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(75,RSI) , HIGH*1.035,' '),Color00FF00;
B1:=REF(CLOSE,1);B2:=REF(CLOSE,2);B3:=REF(CLOSE,3);B4:=REF(CLOSE,4);
CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);
STICKLINE(CLOSE=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND CLOSE>=B2 OR
B2=CMAX AND B3=CMIN AND CLOSE>=B1 OR B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2,B1,CLOSE,8,0),COLOR000099;
STICKLINE(CLOSE=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND CLOSE>=B2 OR
B2=CMAX AND B3=CMIN AND CLOSE>=B1 OR B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2,B1,CLOSE,5,0),COLOR0000BB;
STICKLINE(CLOSE=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND CLOSE>=B2 OR
B2=CMAX AND B3=CMIN AND CLOSE>=B1 OR B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2,B1,CLOSE,3,0),COLOR0000FF;
STICKLINE(CLOSE=CMAX AND B1=CMIN,B2,CLOSE,8,0),COLOR000099;
STICKLINE(CLOSE=CMAX AND B1=CMIN,B2,CLOSE,5,0),COLOR0000BB;
STICKLINE(CLOSE=CMAX AND B1=CMIN,B2,CLOSE,3,0),COLOR0000FF;
STICKLINE(CLOSE=CMIN AND (B1<B2 OR B1<B3) OR B1=CMIN AND (B2=CMAX OR B3=CMAX) AND CLOSE<B2 OR
B2=CMIN AND B3=CMAX AND CLOSE<B1 OR B3=CMIN AND CLOSE<B1 AND CLOSE<B2,B1,CLOSE,8,0),COLOR009900;
STICKLINE(CLOSE=CMIN AND (B1<B2 OR B1<B3) OR B1=CMIN AND (B2=CMAX OR B3=CMAX) AND CLOSE<B2 OR
B2=CMIN AND B3=CMAX AND CLOSE<B1 OR B3=CMIN AND CLOSE<B1 AND CLOSE<B2,B1,CLOSE,5,0),COLOR00BB00;
STICKLINE(CLOSE=CMIN AND (B1<B2 OR B1<B3) OR B1=CMIN AND (B2=CMAX OR B3=CMAX) AND CLOSE<B2 OR
B2=CMIN AND B3=CMAX AND CLOSE<B1 OR B3=CMIN AND CLOSE<B1 AND CLOSE<B2,B1,CLOSE,3,0),COLOR00FF00;
STICKLINE(B1=CMAX AND CLOSE=CMIN,B2,CLOSE,8,0),COLOR009900;
STICKLINE(B1=CMAX AND CLOSE=CMIN,B2,CLOSE,5,0),COLOR00BB00;
STICKLINE(B1=CMAX AND CLOSE=CMIN,B2,CLOSE,3,0),COLOR00FF00;
STICKLINE(B1=CMIN AND CLOSE>=B2 OR (B2=CMIN AND B1<=B3 OR
B3=CMIN AND B1<=B2) AND B2<B4 AND CLOSE>=B1,B1,B2,8,0),COLORFF9900;
STICKLINE(B1=CMIN AND CLOSE>=B2 OR (B2=CMIN AND B1<=B3 OR
B3=CMIN AND B1<=B2) AND B2<B4 AND CLOSE>=B1,B1,B2,5,0),COLORFFBB00;
STICKLINE(B1=CMIN AND CLOSE>=B2 OR (B2=CMIN AND B1<=B3 OR
B3=CMIN AND B1<=B2) AND B2<B4 AND CLOSE>=B1,B1,B2,3,0),COLORFFFF00;
STICKLINE(B1=CMAX AND CLOSE<B2 OR (B2=CMAX AND B1>B3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND CLOSE<B1,B1,B2,8,0),COLOR000099;
STICKLINE(B1=CMAX AND CLOSE<B2 OR (B2=CMAX AND B1>B3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND CLOSE<B1,B1,B2,5,0),COLOR0000BB;
STICKLINE(B1=CMAX AND CLOSE<B2 OR (B2=CMAX AND B1>B3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND CLOSE<B1,B1,B2,3,0),COLOR0000FF;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); vB1:=FILTER(A1,10); C1:=BACKSET(vB1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); vB2:=FILTER(A2,10); C2:=BACKSET(vB2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));
t1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
t2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波峰:IF(t1,A,A) ,POINTDOT ,Color00FFFF;
STICKLINE(t1,A,A,5,0),ColorFF00FF;
波谷:IF(t2,B,B),POINTDOT,Color80FF00;
STICKLINE(t2,B,B,5,0),Color80FF00;
 



未来函数检测结果如下:
该公式包含未来函数:BACKSET

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

VAR1赋值:收盘价的5日简单移动平均

VAR2赋值:收盘价的10日简单移动平均

VAR3赋值:收盘价的20日简单移动平均

VAR4赋值:收盘价的30日简单移动平均

VAR5赋值:收盘价的60日简单移动平均

F1赋值:VAR1>1日前的VAR1

F2赋值:VAR2>1日前的VAR2

F3赋值:VAR2>1日前的VAR2

F4赋值:VAR2>1日前的VAR2

F5赋值:VAR2>1日前的VAR2

X1赋值:C的7日指数移动平均

DRAWTEXT(FILTER(VAR3 AND VAR2 AND COUNT(X1<1日前的X1,5)>2 AND X1>1日前的X1,3),L-0.01,'短↑多'),COLORFFFFFF

LC赋值:1日前的收盘价

RSI赋值:SMA(收盘价-LC和0较大值,6,1)/SMA(收盘价-LC的绝对值,6,1)*100

DRAWTEXT(75上穿RSI , 最高价*1.035,' '),COLOR00FF00

B1赋值:1日前的收盘价
B2赋值:2日前的收盘价
B3赋值:3日前的收盘价
B4赋值:4日前的收盘价

CMAX赋值:收盘价和B1较大值,B2),B3)
CMIN赋值:收盘价和B1的较小值,B2),B3)

STICKLINE(收盘价=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND 收盘价>=B2 OR
B2=CMAX AND B3=CMIN AND 收盘价>=B1 OR B3=CMAX AND 收盘价>=B1 AND 收盘价>=B2,B1,收盘价,8,0),COLOR000099

STICKLINE(收盘价=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND 收盘价>=B2 OR
B2=CMAX AND B3=CMIN AND 收盘价>=B1 OR B3=CMAX AND 收盘价>=B1 AND 收盘价>=B2,B1,收盘价,5,0),COLOR0000BB

STICKLINE(收盘价=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND 收盘价>=B2 OR
B2=CMAX AND B3=CMIN AND 收盘价>=B1 OR B3=CMAX AND 收盘价>=B1 AND 收盘价>=B2,B1,收盘价,3,0),COLOR0000FF
当满足条件收盘价=CMAX AND B1=CMIN时,在B2和收盘价之间画柱状线
当满足条件收盘价=CMAX AND B1=CMIN时,在B2和收盘价之间画柱状线
当满足条件收盘价=CMAX AND B1=CMIN时,在B2和收盘价之间画柱状线

STICKLINE(收盘价=CMIN AND (B1 B2=CMIN AND B3=CMAX AND 收盘价
STICKLINE(收盘价=CMIN AND (B1 B2=CMIN AND B3=CMAX AND 收盘价
STICKLINE(收盘价=CMIN AND (B1 B2=CMIN AND B3=CMAX AND 收盘价当满足条件B1=CMAX AND 收盘价=CMIN时,在B2和收盘价之间画柱状线
当满足条件B1=CMAX AND 收盘价=CMIN时,在B2和收盘价之间画柱状线
当满足条件B1=CMAX AND 收盘价=CMIN时,在B2和收盘价之间画柱状线

STICKLINE(B1=CMIN AND 收盘价>=B2 OR (B2=CMIN AND B1<=B3 OR
B3=CMIN AND B1<=B2) AND B2=B1,B1,B2,8,0),COLORFF9900

STICKLINE(B1=CMIN AND 收盘价>=B2 OR (B2=CMIN AND B1<=B3 OR
B3=CMIN AND B1<=B2) AND B2=B1,B1,B2,5,0),COLORFFBB00

STICKLINE(B1=CMIN AND 收盘价>=B2 OR (B2=CMIN AND B1<=B3 OR
B3=CMIN AND B1<=B2) AND B2=B1,B1,B2,3,0),COLORFFFF00

STICKLINE(B1=CMAX AND 收盘价B3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND 收盘价
STICKLINE(B1=CMAX AND 收盘价B3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND 收盘价
STICKLINE(B1=CMAX AND 收盘价B3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND 收盘价
TY赋值:C

A1赋值:10日前的TY=2*10+1日内TY最高值
VB1赋值:A1的10过滤
C1赋值:BACKSET(VB1,10+1)
HD赋值:C1的10过滤

A2赋值:10日前的TY=2*10+1日内TY最低值
VB2赋值:A2的10过滤
C2赋值:BACKSET(VB2,10+1)
LD赋值:C2的10过滤

A赋值:REF(C,上次HD距今天数)
B赋值:REF(C,上次LD距今天数)

T1:=上次HD距今天数
T2:=上次HD距今天数>BARSLAST(LD) AND NOT(LD)
如果T1返回A否则返回A
当满足条件T1时,在A和A之间画柱状线
如果T2返回B否则返回B
当满足条件T2时,在B和B之间画柱状线

 

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图