zj=ZJLR-ZJLC;
s=SUM(zj,0)/100000000;
shang=MA(s,1);
shangmin:=LLV(shang,0);
jiyu:=(shang>REF(shang,1)AND REF(shang,1)<REF(shang,2)) OR
((shang<REF(shang,1) AND REF(shang,1)>REF(shang,2))OR
(shang==LLV(shang,0)AND REF(shang,1)>LLV(shang,0) AND REF(shang,1)>REF(shangmin,1)));
jiyuqian=REF(jiyu,1);
flag:=0;
变盘:jiyuqian;
熵:shang;
最小熵:shangmin;
零信号:flag;
IF(shang>REF(shang,1)AND REF(shang,1)<REF(shang,2) )
BUY;
IF((shang<REF(shang,1) AND REF(shang,1)>REF(shang,2))OR
(shang==LLV(shang,0)AND REF(shang,1)>LLV(shang,0) AND REF(shang,1)>REF(shangmin,1)))
SELL;