A1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
A2:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
A3:=SMA(A1,13,8);
A4:=SMA(A2,13,8);
{强弱分界:45,CIRCLEDOT;}
多方能量:=SMA(A3,13,8),COLORRED;
空方能量:=SMA(A4,21,8),COLORGREEN;
死叉:=CROSS(空方能量,多方能量);
买点:=BARSLAST(死叉>0)>20;
A5:=空方能量-多方能量;
A6:=HHV(A5,BARSLAST(死叉>0));
金叉:CROSS(多方能量,空方能量) AND 买点=1 AND A6>60 AND CLOSE>OPEN;