副图公式源码 :支持手机/电脑
BIAS1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
BIAS2:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
BIAS3:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100;
BIASA:=(BIAS1+BIAS2+BIAS3)/3;
DIF1:=(EMA(BIASA,5)-EMA(BIASA,34));
DEA1:=EMA(DIF1,9);
MACD1:3*(DIF1-DEA1);
STICKLINE(MACD1>0 AND MACD1>REF(MACD1,1),MACD1,0,3,0),COLOR0000AA;
STICKLINE(MACD1>0 AND MACD1>REF(MACD1,1),MACD1,0,2.7,0),COLOR0000BB;
STICKLINE(MACD1>0 AND MACD1>REF(MACD1,1),MACD1,0,2.3,0),COLOR0000CC;
STICKLINE(MACD1>0 AND MACD1>REF(MACD1,1),MACD1,0,2,0),COLOR0000CC;
STICKLINE(MACD1>0 AND MACD1>REF(MACD1,1),MACD1,0,1.6,0),COLOR0000DD;
STICKLINE(MACD1>0 AND MACD1>REF(MACD1,1),MACD1,0,1.2,0),COLOR0000EE;
STICKLINE(MACD1>0 AND MACD1>REF(MACD1,1),MACD1,0,0.8,0),COLOR0000FF;
STICKLINE(MACD1>0 AND MACD1>REF(MACD1,1),MACD1,0,0.5,0),COLORRED;
STICKLINE(MACD1>0 AND MACD1<REF(MACD1,1),MACD1,0,3,0),COLOR0090FF;
STICKLINE(MACD1>0 AND MACD1<REF(MACD1,1),MACD1,0,2.7,0),COLOR009FFF;
STICKLINE(MACD1>0 AND MACD1<REF(MACD1,1),MACD1,0,2.3,0),COLOR00A6FF;
STICKLINE(MACD1>0 AND MACD1<REF(MACD1,1),MACD1,0,2,0),COLOR00B5FF;
STICKLINE(MACD1>0 AND MACD1<REF(MACD1,1),MACD1,0,1.6,0),COLOR00C4FF;
STICKLINE(MACD1>0 AND MACD1<REF(MACD1,1),MACD1,0,1.2,0),COLOR00D3FF;
STICKLINE(MACD1>0 AND MACD1<REF(MACD1,1),MACD1,0,0.8,0),COLOR00E2FF;
STICKLINE(MACD1>0 AND MACD1<REF(MACD1,1),MACD1,0,0.5,0),COLOR00FFFF;
STICKLINE(MACD1<0 AND MACD1<REF(MACD1,1),MACD1,0,3,0),COLORFF0000;
STICKLINE(MACD1<0 AND MACD1<REF(MACD1,1),MACD1,0,2.7,0),COLORFF3300;
STICKLINE(MACD1<0 AND MACD1<REF(MACD1,1),MACD1,0,2.3,0),COLORFF5500;
STICKLINE(MACD1<0 AND MACD1<REF(MACD1,1),MACD1,0,2,0),COLORFF7700;
STICKLINE(MACD1<0 AND MACD1<REF(MACD1,1),MACD1,0,1.6,0),COLORFF9900;
STICKLINE(MACD1<0 AND MACD1<REF(MACD1,1),MACD1,0,1.2,0),COLORFFBB00;
STICKLINE(MACD1<0 AND MACD1<REF(MACD1,1),MACD1,0,0.8,0),COLORFFDD00;
STICKLINE(MACD1<0 AND MACD1<REF(MACD1,1),MACD1,0,0.5,0),COLORFFFF00;
STICKLINE(MACD1<0 AND MACD1>REF(MACD1,1),MACD1,0,3,0),COLORFF00A9;
STICKLINE(MACD1<0 AND MACD1>REF(MACD1,1),MACD1,0,2.7,0),COLORFF00A1;
STICKLINE(MACD1<0 AND MACD1>REF(MACD1,1),MACD1,0,2.3,0),COLORFF00AA;
STICKLINE(MACD1<0 AND MACD1>REF(MACD1,1),MACD1,0,2,0),COLORFF00BB;
STICKLINE(MACD1<0 AND MACD1>REF(MACD1,1),MACD1,0,1.6,0),COLORFF00CC;
STICKLINE(MACD1<0 AND MACD1>REF(MACD1,1),MACD1,0,1.2,0),COLORFF00DD;
STICKLINE(MACD1<0 AND MACD1>REF(MACD1,1),MACD1,0,0.8,0),COLORFF00EE;
STICKLINE(MACD1<0 AND MACD1>REF(MACD1,1),MACD1,0,0.5,0),COLORFF00FF;
GUB5:=SMA(BIAS1,2,1),COLORGREEN,LINETHICK1;
GUB13:=SMA(BIAS2,2,1),LINETHICK0,COLORRED;
GUB34:=SMA(BIAS3,5,1),COLORWHITE,LINETHICK1;
GUM13_5:EMA(GUB13,5),COLORWHITE,LINETHICK1;
GUM13_10:EMA(GUB13,10),COLORCYAN,LINETHICK1;
GUM34_5:=EMA(GUB34,5),COLORGREEN;
GUM34_10:=EMA(GUB34,10),COLORMAGENTA;
CYSM13:GUB13,LINETHICK0,COLORBROWN;
财:GUM34_5,COLORGREEN;
富:GUM34_10,COLORMAGENTA;
DRAWICON(CROSS(GUB13,GUM13_5),GUM13_5,8);
DRAWICON(CROSS(GUM13_5,GUB13),GUM13_5,7);
DRAWICON(CROSS(GUM13_5,GUM13_10) AND GUB13>REF(GUB13,1),0,2);
DRAWICON(CROSS(GUM34_5,GUM13_10) AND GUB13>REF(GUB13,1),0,1);
GUA:=REF(CLOSE,1);
GUB:=SMA(MAX(CLOSE-GUA,0),5,1)/SMA(ABS(CLOSE-GUA),5,1)*1000;
GUH:=GUB-LLV(GUB,10);
SS:=(MA(GUH,2)*3+GUH*13)/16;
短买:=IF(SS>13,MA(SS,2),SS)/6;
短线暴击:IF(CROSS(短买,1) AND (短买<30),10,0),COLORWHITE,LINETHICK2;
选股公式源码
{选股公式一:短线暴击}
GUA:=REF(CLOSE,1);
GUB:=SMA(MAX(CLOSE-GUA,0),5,1)/SMA(ABS(CLOSE-GUA),5,1)*1000;
GUH:=GUB-LLV(GUB,10);
SS:=(MA(GUH,2)*3+GUH*13)/16;
短买:=IF(SS>13,MA(SS,2),SS)/6;
短线暴击:IF(CROSS(短买,1) AND (短买<30),10,0),COLORWHITE,LINETHICK2;
{选股公式二:B}
BIAS1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
BIAS2:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
BIAS3:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100;
BIASA:=(BIAS1+BIAS2+BIAS3)/3;
GUB13:=SMA(BIAS2,2,1),LINETHICK0,COLORRED;
GUM13_5:=EMA(GUB13,5),COLORWHITE,LINETHICK1;
B:CROSS(GUM13_5,GUB13);
{选股公式三:红箭头}
BIAS1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
BIAS2:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
BIAS3:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100;
BIASA:=(BIAS1+BIAS2+BIAS3)/3;
GUB5:=SMA(BIAS1,2,1),COLORGREEN,LINETHICK1;
GUB13:=SMA(BIAS2,2,1),LINETHICK0,COLORRED;
GUB34:=SMA(BIAS3,5,1),COLORWHITE,LINETHICK1;
GUM13_5:=EMA(GUB13,5),COLORWHITE,LINETHICK1;
GUM13_10:=EMA(GUB13,10),COLORCYAN,LINETHICK1;
GUM34_5:=EMA(GUB34,5),COLORGREEN;
GUM34_10:=EMA(GUB34,10),COLORMAGENTA;
红箭头:CROSS(GUM34_5,GUM13_10) AND GUB13>REF(GUB13,1); |