副图公式源码:支持手机/电脑
GUP1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
GUP2:=REF(EMA(GUP1,3),1);
GUP3:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
GUP4:=(IF((CLOSE > OPEN),(GUP3 * (HIGH - LOW)),IF((CLOSE < OPEN),(GUP3 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (GUP3 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (GUP3 * (HIGH - LOW))),(0 - (VOL / 2)))));
GUP7:=((GUP4 / 20) / 1.15);
GUPA:=(((GUP7 * 0.55) + (REF(GUP7,1) * 0.33)) + (REF(GUP7,2) * 0.22));
GUP8:=EMA(GUPA,8);
GUP9:=EMA(GUPA,3);
STICKLINE(((GUP7 * 0.4) >= 0),((GUP7 * 0.4) +GUP9),0,6,0),COLOR00FFFF;
STICKLINE(((GUP7 * 0.4) < 0),((GUP7 * 0.4) +GUP9),0,6,0),COLOR00FF00;
资金流入:=IF((GUP7*0.4+GUP9)>0,(GUP7*0.4+GUP9),DRAWNULL),COLORRED;
资金流出:=IF((GUP7*0.4+GUP9)<0,(GUP7*0.4+GUP9),DRAWNULL),COLOR00FF00;
资金进出:=(GUP7*0.4+GUP9),LINETHICK0;
万:=AMOUNT/10000,VOLSTICK,COLORFF00FF;
资金净进出:IF((GUP7*0.4+GUP9)>0,资金流入,资金流出),COLORWHITE,POINTDOT;
进出比例:IF((GUP7*0.4+GUP9)>0,资金流入/万*100,资金流出/万*100),COLORYELLOW;
资金3日:SUM(资金进出,3),COLORWHITE,NODRAW;
资金5日:SUM(资金进出,5),COLORFF00FF,NODRAW;
资金10日:SUM(资金进出,10),COLOR0000FF,NODRAW;
GUPB:=GUP9,LINETHICK0,COLOR0000FF;
STICKLINE((GUPB > 0),GUPB,0,6,0),COLOR0000FF;
STICKLINE((GUPB < 0),GUPB,0,6,0),COLORFF3300;
黄初出蓝:=REF(资金流出,1)<0 AND 资金流入>30 AND C>O AND C>REF(C,1) AND C>MA(C,3);
X:=(3*C+2*L+O+H)/7;
多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210;
长黄:= 资金流入>300 AND CROSS(C,多空线);
DRAWTEXT(黄初出蓝,-30,'买1'),COLORFF00FF;
DRAWTEXT(长黄,((GUP7 * 0.4) * 1.5)*1.4,'买2'),COLORRED;
连红天:BARSLASTCOUNT(资金净进出>0),,COLORA20FFD,NODRAW;
选股公式源码
{选股公式一:买1}
GUP3:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
GUP4:=(IF((CLOSE > OPEN),(GUP3 * (HIGH - LOW)),IF((CLOSE < OPEN),(GUP3 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (GUP3 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (GUP3 * (HIGH - LOW))),(0 - (VOL / 2)))));
GUP7:=((GUP4 / 20) / 1.15);
GUPA:=(((GUP7 * 0.55) + (REF(GUP7,1) * 0.33)) + (REF(GUP7,2) * 0.22));
GUP9:=EMA(GUPA,3);
资金流入:=IF((GUP7*0.4+GUP9)>0,(GUP7*0.4+GUP9),DRAWNULL),COLORRED;
资金流出:=IF((GUP7*0.4+GUP9)<0,(GUP7*0.4+GUP9),DRAWNULL),COLOR00FF00;
黄初出蓝:=REF(资金流出,1)<0 AND 资金流入>30 AND C>O AND C>REF(C,1) AND C>MA(C,3);
买1:黄初出蓝;
{选股公式二:买2}
GUP3:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
GUP4:=(IF((CLOSE > OPEN),(GUP3 * (HIGH - LOW)),IF((CLOSE < OPEN),(GUP3 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (GUP3 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (GUP3 * (HIGH - LOW))),(0 - (VOL / 2)))));
GUP7:=((GUP4 / 20) / 1.15);
GUPA:=(((GUP7 * 0.55) + (REF(GUP7,1) * 0.33)) + (REF(GUP7,2) * 0.22));
GUP9:=EMA(GUPA,3);
资金流入:=IF((GUP7*0.4+GUP9)>0,(GUP7*0.4+GUP9),DRAWNULL),COLORRED;
X:=(3*C+2*L+O+H)/7;
多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210;
长黄:= 资金流入>300 AND CROSS(C,多空线);
买2:长黄;
|