多方能量:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
,3,1),2,1),;
空方能量:=EMA(MA(多方能量,5),7);
{STICKLINE(空方能量<=多方能量,空方能量,多方能量,2,1),COLOR000099;
STICKLINE(空方能量>多方能量,空方能量,多方能量,2,1),COLORGREEN;
STICKLINE(多方能量>80 AND 多方能量>=空方能量,多方能量,80,1,0),COLORYELLOW;
STICKLINE(空方能量<15 AND 空方能量<=多方能量,空方能量,15,1,0),COLORBLUE;}
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*50;
AA:= (EMA(VAR1,3))*2;
BB:=MA(AA,3);
VAR2:=8,;
{淘金牛妖}
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),;
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),;
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),;
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),;
牛量:=中期=100 OR 中长期=100 OR 长期=100;
能量:=短期=100 OR 中期=100 OR 中长期=100 OR 长期=100;
能量走势:=(多方能量-空方能量)+50;
强势1:=CROSS(能量走势,80) AND REF(能量走势,1)<80;
强势2:=CROSS(AA,80) AND REF(AA,1)<80;
强势:=强势1 OR 强势2;
牛量 AND 强势 ;