VAR1:=(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100;
做空能量线:SMA(VAR1,2,1);
VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
做多能量线:SMA(VAR2,5,1)-8;
STICKLINE(做多能量线-REF(做多能量线,1)>4,做多能量线,做多能量线+8,8,1),COLORRED;
STICKLINE(REF(做多能量线,1)-做多能量线>4,做多能量线,做多能量线-8,8,2),COLORGREEN;
DRAWICON(CROSS(80,做空能量线),做多能量线-8,4),COLORRED;
DRAWICON(REF(做空能量线,1)-做空能量线>3.4 AND CROSS(20,做空能量线) AND 做多能量线<REF(做多能量线,1),做多能量线+8,5),COLORGREEN;
HH:80;
LL:20;