自编妖股买入短线主图

[复制链接]
查看64 | 回复0 | 2022-7-24 07:46:47 | 显示全部楼层 |阅读模式

自编妖股买入短线主图

参考坛友的妖股买入指标思路编写一主图指标,喜欢的自取

{N1=2 100 3, N2=2 100 6, N3=2 100 12 ,N4=2 100 24,N5=2 100 25}
AA:((MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4);
BB:MA(CLOSE,N5);
IF(BB>REF(BB,1),BB,DRAWNULL),COLORRED,LINETHICK2;
IF(BB<REF(BB,1),BB,DRAWNULL),COLORGREEN,LINETHICK2;
股妖金叉:CROSS(AA,BB);
股妖死叉:CROSS(BB,AA);
DRAWICON(股妖金叉,LOW*0.98,9);
DRAWICON(股妖死叉,HIGH*1.02,15);
DRAWICON(CROSS(C,AA) AND AA>REF(AA,1),LOW*0.98,1);
DRAWICON(CROSS(AA,C) AND AA<REF(AA,1),HIGH*1.02,2);

MA60:MA(CLOSE,60)LINETHICK2;

TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C02:=BACKSET(B2,10+1); LD:=FILTER(C02,10);
前期高位:REF(H,BARSLAST(HD)), COLORFF00FF,POINTDOT;
前期低位:REF(L,BARSLAST(LD)), COLORGREEN,POINTDOT;
{前期高位:REF(C,BARSLAST(HD)),COLOR8000FF,POINTDOT;}
STICKLINE(C,前期高位,前期高位,8,0),COLOR8000FF;
STICKLINE(C,前期低位,前期低位,8,0), COLORGREEN;

C2:=REF(C,1),NODRAW;
涨停:=REF(C,1)*1.1-C<0.01 AND H=C,NODRAW;
STICKLINE(涨停,OPEN,CLOSE,0001,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORRED;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2) AND L=C,1,0),NODRAW;
STICKLINE(跌停,OPEN,CLOSE,1,0),COLORBLUE;
DRAWTEXT(涨停,L-0.1,'涨停'),COLORRED;
DRAWTEXT(跌停,H+0.3,'跌停'),COLORGREEN;
 

2125411217.jpg

2125411217.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则