由大智慧改通达信的精品分时预警
我改了一下可用于通达信的分时预警,选出的票很少,有待明天验证。源码如下:
分时预警
T:=BARSCOUNT(C);
分钟数:=IF(MINUTE/60-570<=130,MINUTE/60-570,MINUTE/60-660);
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主卖:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2));
量:=VOL;
额:=AMOUNT/100000000;
流入额:MA(主买,4)/100000;
流出额:MA((0-主卖),4)/100000;
净流入:SUM(流入额-流出额,0);
价新高:COUNT(H=HHV(H,分钟数),30);
量新高:COUNT(V=HHV(V,分钟数) ,30);
量价新高:价新高=量新高 AND 价新高>0 AND 价新高>REF(价新高,1) AND 量新高>REF(量新高,1) AND 净流入>0;
748222173.jpg
|