VAR1:=LLV(LOW,21); VAR2:=HHV(HIGH,21);
红:EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,6),colorred;
绿:EMA(0.667*REF(红,1)+0.333*红,2),colorgreen;
DRAWICON(LONGCROSS(绿,红,0.1),绿,2),colorred;
DRAWICON(LONGCROSS(红,绿,0.1),红,1),colorgreen;
VAR1:=LLV(LOW,21); VAR2:=HHV(HIGH,21);
红:EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,6),colorred;
绿:EMA(0.667*REF(红,1)+0.333*红,2),colorgreen;
DRAWICON(LONGCROSS(绿,红,0.1),绿,2),colorred;
DRAWICON(LONGCROSS(红,绿,0.1),红,1),colorgreen;