PKY:=1;
PSJ:=1;
AA:=DATATYPE;
VAR1:=REF(CLOSE,2);
VAR2:=((SMA(MAX((CLOSE - VAR1),0),7,1) / SMA(ABS((CLOSE - VAR1)),7,1)) * 100);
EN:=IF(((VAR2 < REF(VAR2,1)) AND (VAR2 > 79)),1,0);
EX:=CROSS(12,VAR2);
BS:=BARSLAST((EN > 0));
MAB:=MA(CLOSE,20);
MP:=STKINDI(STKLABEL,'CDP.CDP',0,(AA + 1));
MB:=STKINDI(STKLABEL,'CDP.Al',0,(AA + 1));
MC:=STKINDI(STKLABEL,'CDP.AH',0,(AA + 1));
MAC:=IF((MAB > REF(MAB,1)),MP,MC);
MAD:=IF((MAB < REF(MAB,1)),MB,MP);
MKD:=IF((MAB > REF(MAB,1)),MAC,MAD);
MKDD:=(MA(MKD,5) * PSJ);
PARTLINE((MKD >= REF(MKD,5)),(MKD * PSJ)),LINETHICK2,colorFFFF;
PARTLINE((MKD < REF(MKD,5)),(MKD * PSJ)),LINETHICK2,color99CC33;
谁:MA(MKDD,10),colorFFFF00;
PARTLINE((谁 >= REF(谁,1)),谁),LINETHICK2,colorFF00FF;
PARTLINE((谁 < REF(谁,1)),谁),LINETHICK2,colorFFFF00;
主:MA(谁,3),POINTDOT,colorFF;
沉:MA(谁,6),POINTDOT,colorFF;
浮:MA(谁,9),POINTDOT,colorFFFF;
PARTLINE((主 >= REF(主,1)),主),LINETHICK1,colorFF;
PARTLINE((沉 >= REF(沉,1)),沉),LINETHICK1,colorFF;
PARTLINE((浮 >= REF(浮,1)),浮),LINETHICK1,colorFFFF;
鹰派:(EMA(CLOSE,150) * PSJ),POINTDOT,LINETHICK3,colorFF0000;
DRAWICON(((BS = 1) * PSJ),(HIGH * 1.005),5);
DRAWICON((EX * PSJ),(LOW * 0.995),4);