SMA(LOW,21,2)*1.01,COLORYELLOW;
k1:=backset(MA(CLOSE,4) SMA(LOW,21,2)*1.01,2);
弱:DRAWLINE(k1,SMA(LOW,21,2)*1.01,MA(CLOSE,4) SMA(LOW,21,2)*1.01,SMA(LOW,21,2)*1.01,0),colorCCCC33;
k2:=backset(SMA(LOW,21,2)*1.01 =REF(SMA(LOW,21,2)*1.01,1),2);
强:DRAWLINE(k2,SMA(LOW,21,2)*1.01,SMA(LOW,21,2)*1.01 =REF(SMA(LOW,21,2)*1.01,1),SMA(LOW,21,2)*1.01,0),colorFF00FF;
DRAWTEXT(CROSS(C,IF(MA(CLOSE,4) SMA(LOW,21,2)*1.01,SMA(LOW,21,2)*1.01,SMA(LOW,21,2)*1.01)),LOW,'△'),COLORYELLOW;
DRAWTEXT(CROSS(C,生命线),LOW,'△'),COLORGREEN;
DRAWTEXT(FILTER(EMA(EMA(C,5),5) REF(EMA(EMA(C,5),5),1)AND HHV(MA(H,13),13) REF(HHV(MA(H,13),13),1)AND C REF(C,1),11),L*0.98,'追涨'),COLORGREEN;
DRAWTEXT(CROSS(84,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100),H*1.03,'逃顶'),COLORYELLOW ;
阻力: PEAK(1,5,1),COLOR66CC00;
支撑: TROUGH(2,5,1),COLORFFB97A;
{魔K短线(副图) 大智慧 }
{n1: 1.00 100.00 6.00}
n1:=6;
LC:=REF(C,1);
LO:=REF(O,1);
LH:=REF(H,1);
LL:=REF(L,1);
D1:=SMA(MAX(C-LC,0),N1,1)/SMA(ABS(C-LC),N1,1)*100;
D2:=SMA(MAX(O-LO,0),N1,1)/SMA(ABS(O-LO),N1,1)*100;
D3:=SMA(MAX(H-LH,0),N1,1)/SMA(ABS(H-LH),N1,1)*100;
D4:=SMA(MAX(L-LL,0),N1,1)/SMA(ABS(L-LL),N1,1)*100;
STICKLINE(D1 =D2,D1,D2,3,0),COLOR0055AA;
STICKLINE(D1 =D2,D1,D2,3,0),COLOR006600;
STICKLINE(D1 =D2,D1,D2,2,0),COLOR0077CC;
STICKLINE(D1 =D2,D1,D2,1,0),COLOR0099DD;
STICKLINE(D1 =D2,D3,D4,0,0),COLOR00BBFF;
STICKLINE(D1 =D2,D1,D2,2,0),COLOR009900;
STICKLINE(D1 =D2,D1,D2,1,0),COLOR00BB00;
STICKLINE(D1 =D2,D3,D4,0,0),COLOR00EE00;
DRAWTEXT(CROSS(D1,25),15,'《'),colorred;
DRAWTEXT(CROSS(75,D1),97,'】'),colorgreen;
DRAWTEXT(CROSS(80,D1),97,'】'),colorgreen;
VAR10:=CROSS(D1,25) AND EMA(EMA((((2*C+H+L)/4)-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8),5)
低买:IF(VAR10,10,1),COLORYELLOW;
VAR12:=CROSS(EMA((((2*C+H+L)/4)-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8),15) AND EMA(EMA((((2*C+H+L)/4)-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8),5)
追涨:IF(VAR12,50,1),colorFF00FF;
抄底:IF(CROSS(D3,EMA((((2*C+H+L)/4)-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8)) AND SMA(MAX(H-LH,0),N1,1)/SMA(ABS(H-LH),N1,1)*100 53,20,1),COLORFFB97A;
逃顶:IF(CROSS(EMA((((2*C+H+L)/4)-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8),78) AND EMA((((2*C+H+L)/4)-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8) 60,70,100),COLORBLUE;
VAR13:=ZIG(3,5) REF(ZIG(3,5),1) AND REF(ZIG(3,5),1) =REF(ZIG(3,5),2) AND REF(ZIG(3,5),2) =REF(ZIG(3,5),3);
STICKLINE(VAR13=1,0,-5,10,0),COLORRED;