P1:=2;
P2:=2;
P3:=3;
N:=4;
P4:=4;
X_1:=1;
X_2:=LLV(LOW,10);
X_3:=HHV(HIGH,25);
减仓线:P2*X_1;
卖出线:P3*X_1;
地板线:P4*X_1;
动力线:EMA((CLOSE-X_2)/(X_3-X_2)*N,N)*X_1;
DRAWICON(crOSS(动力线,减仓线),3.4,8);
DRAWICON(CROSS(动力线,卖出线),3.9,13);
DRAWICON(CROSS(0.5,动力线),0.5,10);
DRAWICON(CROSS(0.35,动力线),0.15,1);
IF(REF(动力线,1)<0.35 AND CROSS(动力线,REF(动力线,1)),1,0),COLORRED;