副图公式源码支持: 手机/电脑
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
0,COLORFF00FF;
WGUR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,13) - LLV(LOW,13)));
NEWVOL:=(RSI5 - WGUR10);
阶段底:=(AV + NEWVOL);
趋势线:=LLV(阶段底,1),COLORWHITE,LINETHICK0;
STICKLINE(CROSS(阶段底,0),0,-10,0.1,1),LINETHICK6,COLORRED;
STICKLINE((趋势线 >230 ),100,90,0.1,1),LINETHICK6,COLORGREEN;
Y1:=LLV(L,17);
Y2:=SMA(ABS(L-REF(L,1)),17,1);
Y3:=SMA(MAX(L-REF(L,1),0),17,2);
Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));
STICKLINE(CROSS(Q,0),15,0,4,0), COLORYELLOW;
强势拉:IF(CROSS(Q,0),1,0),COLORYELLOW;
Q1:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00,LINETHICK2;
STICKLINE(CROSS(Q1,-24),20,0,4,0), COLORMAGENTA;
加强拉:IF(CROSS(Q1,-24),1,0),COLORMAGENTA;
GUP1:=EMA(EMA(CLOSE,9),9);
控盘:=(GUP1-REF(GUP1,1))/REF(GUP1,1)*1000;
GUP2:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);
天:=(MA((GUP2-REF(GUP2,1))/REF(GUP2,1)*100,2));
地:=(MA((GUP2-REF(GUP2,1))/REF(GUP2,1)*100,1));
STICKLINE(地>天 AND 地<0,10,0,1,0),COLORRED;
开始拉:STICKLINE(地>天 AND 地<0,10,0,1,0)=1,COLORRED;
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
STICKLINE(K>D , K,D ,1.1,0),COLORRED,LINETHICK2;
STICKLINE(D>K,K,D,1.1,0),COLORGREEN,LINETHICK2;
逃顶线:=90,COLORGREEN;
抄底线:=10,COLORGREEN;
出击:CROSS(阶段底,0),LINETHICK1,COLORRED;
GUR1:=1;
GUR2:=((((2*CLOSE)+HIGH)+LOW) / 4);
GUR4:=LLV(LOW,5);
GUR5:=HHV(HIGH,4);
GUC1:=(EMA((((GUR2-GUR4)/(GUR5-GUR4))*100),4)*GUR1),COLORFF00FF,LINETHICK2;
GUC2:=(EMA(((0.667*REF(GUC1,1))+(0.333*GUC1)),2)*GUR1),COLORFFFFFF,LINETHICK2;
条:=CROSS(GUC1,GUC2) AND GUC1<40;
买入:条>0;
STICKLINE(条,0,-10,2,0),COLORRED;
DRAWTEXT(条,20,'买入'),COLORYELLOW;
A10:=CROSS(控盘,0);
无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;
开始控盘:IF(A10,20,0),LINETHICK1,COLORYELLOW;
GUAZ:=(MIN(O,C)-L)/L*100>1.4;
GUBZ:=L/MA(C,30)<1.03 AND L/MA(C,30)>0.99 AND C<=O;
准备:IF(GUAZ AND GUBZ,20,0);
DRAWTEXT(GUAZ AND GUBZ,20,'准备抓'),COLORLIBLUE;
选股公式源码
{选股公式一:强势拉}
Y1:=LLV(L,17);
Y2:=SMA(ABS(L-REF(L,1)),17,1);
Y3:=SMA(MAX(L-REF(L,1),0),17,2);
Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));
强势拉:CROSS(Q,0);
{选股公式二:加强拉}
Q1:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00,LINETHICK2;
加强拉:CROSS(Q1,-24);
{选股公式三:开始拉}
GUP2:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);
天:=(MA((GUP2-REF(GUP2,1))/REF(GUP2,1)*100,2));
地:=(MA((GUP2-REF(GUP2,1))/REF(GUP2,1)*100,1));
开始拉:STICKLINE(地>天 AND 地<0,10,0,1,0)=1;
{选股公式四:准备抓}
GUAZ:=(MIN(O,C)-L)/L*100>1.4;
GUBZ:=L/MA(C,30)<1.03 AND L/MA(C,30)>0.99 AND C<=O;
准备抓:GUAZ AND GUBZ;
{选股公式五:买入}
GUR1:=1;
GUR2:=((((2*CLOSE)+HIGH)+LOW) / 4);
GUR4:=LLV(LOW,5);
GUR5:=HHV(HIGH,4);
GUC1:=(EMA((((GUR2-GUR4)/(GUR5-GUR4))*100),4)*GUR1),COLORFF00FF,LINETHICK2;
GUC2:=(EMA(((0.667*REF(GUC1,1))+(0.333*GUC1)),2)*GUR1),COLORFFFFFF,LINETHICK2;
条:=CROSS(GUC1,GUC2) AND GUC1<40;
买入:条;
{选股公式六:出击}
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WGUR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,13) - LLV(LOW,13)));
NEWVOL:=(RSI5 - WGUR10);
阶段底:=(AV + NEWVOL);
出击:CROSS(阶段底,0),LINETHICK1,COLORRED;
|