趋势线:=EMA(KS/10+EMA(CLOSE,10),3);
AA:= -100*(趋势线-CLOSE)/趋势线;
AC:=EMA(AA,5);
SSL:=EMA(CLOSE,3);
MMV:=EMA(SLOPE(CLOSE,22)*20+CLOSE,55);
MM:=1;
SA:=0.985;
SS1:=MA(CLOSE,5);
DD:=MA(CLOSE,13);
GG:=MA(CLOSE,21);
空方:IF(SSL MM,MA(MMV,8),SA),LINETHICK1,COLORFFFFFF;
多方:IF(SSL MM,MA(MMV,16),SA),LINETHICK2,COLORFF00FF;
B1:=REF(C,1);B2:=REF(C,2);
SS:=IF(C REF(C,1) AND REF(C,1) =REF(C,2),1,IF(C REF(C,1) AND REF(C,1) =REF(C,2),-1,IF(C REF(C,2) AND REF(C,2) REF(C,1),2,IF(C REF(C,2) AND REF(C,2) REF(C,1),-2,0))));
SM:=IF(REF(SS,1) 0 OR REF(SS,1) 0,REF(SS,1),IF(REF(SS,2) 0 OR REF(SS,2) 0,REF(SS,2),IF(REF(SS,3) 0 OR REF(SS,3) 0,REF(SS,3),IF(REF(SS,4) 0 OR REF(SS,4) 0,REF(SS,4),IF(REF(SS,5) 0 OR REF(SS,5) 0,REF(SS,5),IF(REF(SS,6) 0 OR REF(SS,6) 0,REF(SS,6),IF(REF(SS,7) 0 OR REF(SS,7) 0,REF(SS,7),0)))))));
宝塔线:IF(REF(SS,1) 0 OR REF(SS,1) 0,B2,IF(SM 0,MIN(B1,B2),MAX(B1,B2))),COLORGREEN,LINETHICK1;
STICKLINE(C O,HIGH,LOW,0,0),COLORRED;
STICKLINE(C O,HIGH,LOW,0,0),COLOR00BB00;
STICKLINE(C 宝塔线,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(C 宝塔线,CLOSE,OPEN,2,1),COLOR00BB00;
VAR51:=(HIGH+LOW+OPEN+CLOSE)/4;
VAR53:=2*EMA(LLV(VAR51,7),10)-VAR51;
乾坤线:3*VAR53-2*SMA(VAR53,10,1),COLORRED;