通达信趋势买卖点指标谁用谁知道
EMA3:=EMA(C,3),COLORWHITE;
EMA5:=EMA(C,5),COLORYELLOW;
EMA10:=EMA(C,10),COLORFF00FF;
EMA20:=MA(C,20),COLORFFCC66;
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);
散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;
DRAWTEXT(CROSS(散户,庄家) AND 散户<3,L-0.05,'←低吸'),COLORLIRED;
DRAWTEXT(CROSS(庄家,散户) AND 散户>5,H+0.05,'←高抛'),COLORGREEN;
DRAWICON(CROSS(散户,庄家) AND 散户<10,L-0.05,1);
DRAWICON(CROSS(庄家,散户) AND 散户>20,H+0.05,2);
VAR9:=CLOSE-REF(CLOSE,5); {WWW.}
VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);
VARC:=EMA(EMA(VAR9,10),10)/EMA(EMA(ABS(VAR9),20),20);
卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);
DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,11)*10+CLOSE,22);
B1:IF(CROSS(买线,卖线),L-0.05,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;
S1:IF(CROSS(20,RSI)*10,H+0.05,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
VC:=((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100+(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.05,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
A0:=(L+H+C*2)/4;{WWW.}
A1:EMA(A0,5)COLORBLUE,LINETHICK2;
A2:=EMA(A0,10)COLORLIBLUE,LINETHICK2;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;
看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};
逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};
买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;
卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;
STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;
STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;
STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;
STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
EMA3赋值:C的3日指数移动平均,画白色
EMA5赋值:C的5日指数移动平均,画黄色
EMA10赋值:C的10日指数移动平均,COLORFF00FF
EMA20赋值:C的20日简单移动平均,COLORFFCC66
VAR2赋值:(2*收盘价+最高价+最低价)/4
如果YEAR>=2099 AND MONTH>2返回0否则返回1
VAR4赋值:5日内最低价最低值
VAR5赋值:4日内最高价最高值
散户赋值:EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3
庄家赋值:E0.667*1日前的散户+0.333*散户的2日简单移动平均*VAR3
DRAWTEXT(散户上穿庄家 AND 散户<3,L-0.05,'←低吸'),COLORLIRED
DRAWTEXT(庄家上穿散户 AND 散户>5,H+0.05,'←高抛'),画绿色
DRAWICON(散户上穿庄家 AND 散户<10,L-0.05,1)
DRAWICON(庄家上穿散户 AND 散户>20,H+0.05,2)
VAR9赋值:收盘价-5日前的收盘价
{WWW.}
VARA赋值:VAR9的5日指数移动平均,5)/EMA(EMA(VAR9的绝对值,5),5)
VARC赋值:VAR9的10日指数移动平均,10)/EMA(EMA(VAR9的绝对值,20),20)
卖出赋值:IF(VARA>0 AND VARC上穿VARA,90,100)
当满足条件卖出<0时,在H+0.05和2之间画图标
买线赋值:收盘价的2日指数移动平均
卖线赋值:EMA(SLOPE(收盘价,11)*10+收盘价,22)
输出B1:IF(买线上穿卖线,L-0.05,DRAWNULL),CROSSDOT, 线宽为3,画洋红色
输出S1:IF(20上穿RSI*10,H+0.05,DRAWNULL),CROSSDOT, 线宽为3,画黄色
VC赋值:((收盘价-收盘价的5日简单移动平均)/收盘价的5日简单移动平均*100+(收盘价-收盘价的20日简单移动平均)/收盘价的20日简单移动平均*100+(收盘价-MA (收盘价,32))/收盘价的32日简单移动平均*100)/3
S2赋值:IF(VC>20 AND FILTER(VC< 1日前的VC,5),H+0.05,DRAWNULL),CIRCLEDOT, 线宽为3,画绿色
A0赋值:(L+H+C*2)/4
输出{WWW.}
A1:A0的5日指数移动平均 画蓝色, 线宽为2
A2赋值:A0的10日指数移动平均COLORLIBLUE, 线宽为2
A1X赋值:(A1-1日前的A1)/1日前的A1*100,NODRAW
A2X:=(A2-1日前的A2)/1日前的A2*100,NODRAW
输出看多:IF(A1X>=0 AND 上次A1X上穿0距今天数>0,REF((C+O)/2,上次A1X上穿0距今天数),DRAWNULL),画洋红色{, 线宽为2}
输出逃顶:IF(A1X<0 AND 上次0上穿A1X距今天数>0,REF((C+O)/2,上次0上穿A1X距今天数),DRAWNULL),画青色,{ 线宽为2}
如果A1X>=0返回A1否则返回DRAWNULL
如果A1X<0 AND A2X<0返回A1否则返回DRAWNULL
STICKLINE(A1X上穿0,H,L,0,0 ),COLOR9933FF
STICKLINE(A1X上穿0,C,O,3,0 ),COLOR0000CC
STICKLINE(A1X上穿0,C,O,1,0 ),COLOR0033FF
STICKLINE(0上穿A1X,L,H,0,0 ),COLOR66CC33