SJ:=WMA(((2*C+H+L)/4-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);
ENTERLONG:crOSS(SJ,ZJ) AND SJ<30,COLORRED;
EXITLONG:CROSS(ZJ,SJ) AND SJ>70,COLORGREEN;
SJ:=WMA(((2*C+H+L)/4-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);
ENTERLONG:crOSS(SJ,ZJ) AND SJ<30,COLORRED;
EXITLONG:CROSS(ZJ,SJ) AND SJ>70,COLORGREEN;