这个是主图 手机上也可以用的
M1:=7;
M2:=30;
EXP1:EMA(CLOSE,M1);
EXP2:EMA(CLOSE,M2);
AAE:= (CLOSE+CLOSE*15/100)*100;
BBE:= (CLOSE+CLOSE*0/100)*100;
CCE:= AAE-BBE;
DDE:= ((CLOSE-CLOSE*0.1/100)-(CLOSE-CLOSE*15/100))*100;
EEE:= CCE<3 AND DDE<0.5 AND OPEN>LOW;
AE1:= (6);
AE2:= IF(LOW>AE1,0,IF(HIGH<AE1,1,(AE1-LOW+0.01)/(HIGH-LOW+0.01)));
AE3:= VOL/(LOW);
AE4:= REF(HHV(CLOSE,120),1);
AE5:= REF(LLV(CLOSE,120),1);
AE6:= 100*(CLOSE-AE5)/(AE4-AE5);
AE7:= AE2>0 OR AE2=1;
AE8:= AE7 AND AE3/REF(AE3,3)>=3 AND AE6<80;
AE9:= REF(AE8,1) OR REF(AE8,2) OR REF(AE8,3) OR REF(AE8,4);
AE10:= AE8 AND AE9;
AE11:= IF(FILTER(AE8,3),5,0);
AE12:= FILTER(IF(FILTER(AE10,3) OR EEE,10,0),3);
DRAWTEXT(AE12,L*0.99,'买'),COLORLIRED;{红底绿顶}
低:=REF(LLV(L,150),3);
近期底:=REFDATE(低,DATE);
最底:=REFDATE(近期底,DATE);
入:=最底=L AND ((C+L)<(O+C) OR (O+L)<(C+O));
STICKLINE(入,O,(C+O)/2,3,0),COLORRED;
STICKLINE(入,H,L,0.2,0),COLORRED;
DRAWTEXT(入,L*1.0021,'红底'),COLORLIMAGENTA;
高:=REF(HHV(H,150),3);
近期顶:=REFDATE(高,DATE);
最顶:=REFDATE(近期顶,DATE),NODRAW;
出:=最顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW;
STICKLINE(出,O,(C+O)/2,3,0),COLORBLUE;
STICKLINE(出,H,L,0.2,0),COLORBLUE;
DRAWTEXT(出,H*0.998,'绿顶'),COLORGREEN;
A2:=REF(MA(C,20),1);
J1:=(MA(C,20)-A2)/A2*100;
MJ1:=MA(J1,3);
乖离2:=(MA(C,20)-MA(C,30))/MA(C,30)*100;
VAC1:=IF(BETWEEN(乖离2,-2,5),2,0);
XL1:=((LLV(LOW,3) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) >= 1.04));
XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);
XL3:=CROSS(XL2,(0 - 20));DRAWTEXT(FILTER(((XL1 > 0) AND LOW),5),(LOW*0.996),'买');
DRAWICON(XL3 > 0 ,LOW*0.99,1);{绝对底部}
X6:=REF(CLOSE,1);
X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);DRAWTEXT(X9,(HIGH * 0.9989),'卖'),COLORGREEN;
VAW1:=EMA(EMA(CLOSE,13),13);
YY:=(REF(H,4)-REF(L,1))/C*100>10;{4天前的最高到昨天最低跌幅为10个点}
YY1:=(REF(L,1)-L)/C*100>=0;{昨天的最低价跟今天最低价相平或收下影线}
YY2:=REF(C<O,1) AND C>O;{昨天收阴,今天收阳线}
YY3:= CLOSE>REF(CLOSE,1)*1.03 ;{股价3个点预警}
YY4:=(H-C)/C*100<1.5;{上影线少于1.5个点}
YY5:=V<=LLV(V,5) OR V>=HHV(V,5);{成交量是五天最低或五天最高}DRAWTEXT(YY AND YY1 AND YY2 AND YY3 AND YY4 AND YY5,L*0.988,'进'),COLORRED;
AHC1:=CLOSE*VOL;
AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
VAR19B:=EMA(CLOSE,2)-EMA(CLOSE,150);
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,7),LOW-0.15,'买'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2.5,0),COLORYELLOW;
VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
DRAWTEXT(CROSS(84,VARC),H*1.01,'卖'),COLORYELLOW ;
XXS:=MA(LOW,5)*(1-5/100);
XXS1:=MA(HIGH,5)*(1+5/100);
DRAWTEXT(CROSS(XXS1,C),L*0.98,'高抛'),COLORYELLOW;
DDDD:=CROSS(C,XXS1);
DRAWTEXT(DDDD,L*0.975,'明走'),COLORMAGENTA;
K:=(C+H+L)/3;
D:=MA(K,4);
DRAWTEXT(REF(C,1)>D AND C<D AND D>REF(D,1),H*1.02,'卖');
DRAWTEXT(REF(C,1)<D AND C>D AND D<REF(D,1),L*0.98, '买'),COLORMAGENTA;
{手机版去掉下面这些代码即可使用}
DRAWTEXT_FIX(1,0.05,0,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.16,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.27,0.00,0,EXTERNSTR(0,1)),COLORYELLOW;
DRAWTEXT_FIX(1,0.05,0.04,0,EXTERNSTR(0,2)),COLORWHITE;
DRAWTEXT_FIX(1,0.05,0.08,0,EXTERNSTR(0,3)),COLORYELLOW;
DRAWTEXT_FIX(1,0.05,0.12,0,EXTERNSTR(0,4)),COLORWHITE;
|