第一部分 副图公式 手机/电脑
M5:=MA(CLOSE,5);M10:=MA(CLOSE,10);M20:=MA(CLOSE,20);
中线买:=COUNT(CLOSE1.004 AND CROSS(CLOSE,M20) AND M20>=REF(M20,1),LINETHICK,COLORRED;
DRAWTEXT(中线买,LOW*0.95,'中线买'),COLORRED;
VL:=REF(LOW,1);
CAIH112:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
CAIH114:=MA(CAIH112,13);
CAIH115:=LLV(LOW,34);
CAIH118:=EMA(IF(LOW<=CAIH115,CAIH114,0),3);
CAIH110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
CAIH111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-CAIH110*10.9;
XPJS:=FILTER(IF(CAIH111REF(CAIH118,1),CAIH118*8,0),20);
DRAWTEXT(XPJS,LOW-0.5,'←洗盘结束'),COLORFF00FF;
CAIH21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
CAIH22:=SMA(CAIH21,3,1);
CAIH23:=SMA(CAIH22,3,1);
CAIH24:=SMA(CAIH23,3,1);
CAIH25:=CROSS(CAIH23,CAIH24) AND CAIH2380;
DRAWTEXT(FILTER(CAIH29,5)=1,HIGH+0.5,'←逃'),COLORGREEN;
JG:=CROSS(M5,M10);
VOLUME:=VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,10);
NL:=CROSS(MAVOL1,MAVOL2);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
NA:=CROSS(DIF,DEA);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,9,1);
J:=3*K-2*D;
KD:=CROSS(K,D) AND CROSS(J,D);
买牛:DRAWTEXT((JG AND NL AND NA) OR (JG AND NL AND KD) OR
(JG AND NA AND KD) OR (NL AND NA AND KD),L*0.95,'←买牛'),COLORYELLOW;
X:=LLV(J,2)=LLV(J,8);
Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,30,0);
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND JREF(均衡,1)AND 中轨REF(C,1),11);
DRAWTEXT(CAIH5,L*0.98,'←追涨'),COLORRED;
CAIHC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
DRAWTEXT(CROSS(84,CAIHC),H*1.01,'逃'),COLORYELLOW ;
AAA:=CONST(HHV(H,90));
R1:=MA(CLOSE,1);
R2:=MA(CLOSE,3);
R3:=(MA(R2,1)*1);
R4:=(MA(R2,3)*1);
DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'买入'),COLORYELLOW;
A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'出'),COLORGREEN;
CAIHE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
CAIH12:=(HIGH+LOW+CLOSE)/3;
CAIH13:=(CAIH12-MA(CAIH12,14))/(0.015*AVEDEV(CAIH12,14));
CAIH14:=(CAIH12-MA(CAIH12,70))/(0.015*AVEDEV(CAIH12,70));
CAIH15:=IF(CAIH13>=150 AND CAIH13=150 AND CAIH14<200,10,0);
CAIH16:=IF(CAIH13-200 AND CAIH14-200,-10,CAIH15);
CAIH17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
CAIH18:=100-ABS(CAIH17);
CAIH19:=IF(CAIH180,CAIHE,0);
CAIH1B:=IF(CAIH14>=200 AND CAIH13>=150,15,IF(CAIH14<=-200 AND CAIH1348 AND CAIH1B>60 AND CAIH19=REF(M20,1),LINETHICK,COLORRED;
{选股公式二:洗盘结束}
VL:=REF(LOW,1);
CAIH112:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
CAIH114:=MA(CAIH112,13);
CAIH115:=LLV(LOW,34);
CAIH118:=EMA(IF(LOW<=CAIH115,CAIH114,0),3);
CAIH110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
CAIH111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-CAIH110*10.9;
XPJS:=FILTER(IF(CAIH111REF(CAIH118,1),CAIH118*8,0),20);
洗盘结束:XPJS;
{选股公式三:抄底}
CAIH21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
CAIH22:=SMA(CAIH21,3,1);
CAIH23:=SMA(CAIH22,3,1);
CAIH24:=SMA(CAIH23,3,1);
CAIH25:=CROSS(CAIH23,CAIH24) AND CAIH23<20;
抄底:FILTER(CAIH25,10)=1;
{选股公式四:买牛}
M5:=MA(CLOSE,5);M10:=MA(CLOSE,10);M20:=MA(CLOSE,20);
JG:=CROSS(M5,M10);
VOLUME:=VOL;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,10);
NL:=CROSS(MAVOL1,MAVOL2);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
NA:=CROSS(DIF,DEA);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,9,1);
J:=3*K-2*D;
KD:=CROSS(K,D) AND CROSS(J,D);
买牛:(JG AND NL AND NA) OR (JG AND NL AND KD) OR
(JG AND NA AND KD) OR (NL AND NA AND KD);
{选股公式五:短进}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,9,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
短进:CROSS(J,REF(J+0.01,1)) AND X AND JREF(均衡,1)AND 中轨REF(C,1),11);
追涨:CAIH5;
{选股公式七:买入}
AAA:=CONST(HHV(H,90));
R1:=MA(CLOSE,1);
R2:=MA(CLOSE,3);
R3:=(MA(R2,1)*1);
R4:=(MA(R2,3)*1);
买入:CROSS(R3,R4);
|