副图公式源码 :支持手机/电脑
GUP2:=(HIGH+LOW+CLOSE)/3;
GUP3:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
主买:=(GUP3*(GUP2-MIN(CLOSE,OPEN)));
主卖:=(GUP3*(MIN(OPEN,CLOSE)-LOW));
TMP:=主买-主卖;
主力活跃:(主买+主卖)*10000/(2*FINANCE(7)),NODRAW;
STICKLINE(TMP>0,0,主力活跃,2,0),COLORRED;
STICKLINE(TMP<0,0,主力活跃,2,0),COLORGREEN;
GUPA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,GUPA*(HIGH-LOW),IF(CLOSE<OPEN,GUPA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;
卖量:=IF(CLOSE>OPEN,0-GUPA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-GUPA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;
EXP1:=EMA(CLOSE,5),COLORFF00FF,LINETHICK1;
EXP2:=EMA(CLOSE,10),COLORGREEN,LINETHICK1;
GUPV:=EMA(EXP1,3),COLORFFCC00,LINETHICK1;
EXP5:=EMA(CLOSE,3),COLORFF00FF,LINETHICK1;
GUPK:=EMA(EXP5,3);
日:=150;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
GUPH:=高1-(高1-低1)*0.85;
底:=REFDATE(GUPH,DATE)*2;
底部起飞:底>EXP5 AND CROSS(EXP5,GUPK);
选股公式源码
{选股公式:底部起飞}
EXP1:=EMA(CLOSE,5),COLORFF00FF,LINETHICK1;
EXP2:=EMA(CLOSE,10),COLORGREEN,LINETHICK1;
GUPV:=EMA(EXP1,3),COLORFFCC00,LINETHICK1;
EXP5:=EMA(CLOSE,3),COLORFF00FF,LINETHICK1;
GUPK:=EMA(EXP5,3);
日:=150;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
GUPH:=高1-(高1-低1)*0.85;
底:=REFDATE(GUPH,DATE)*2;
底部起飞:底>EXP5 AND CROSS(EXP5,GUPK); |