副图公式源码支持 手机/电脑
N4:=34;
中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA
((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
支撑:=LLV(持股,3);
中期线:=MA(持股,12);
CHP1:=1;
CHP2:=LLV(LOW,10);
CHP3:=HHV(HIGH,25);
短期线:=EMA((CLOSE-CHP2)/(CHP3-CHP2)*4,4)*CHP1*30;
CHAA:=(3*C+L+O+H)/6;
C2:=EMA(CHAA,6);
C3:=EMA(CHAA,5);
SHORT:=12;LONG:=26;MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);D:=SMA(K,M2,1);J:=3*K-2*D;
六彩牛1:REF(中期,1)<1 AND 中期>1,COLORWHITE;
六彩牛2:EXIST(CROSS(C2,C3),2),COLORGREEN;
六彩牛3:支撑>中期线 AND 持股=支撑 AND REF(支撑,2)
六彩牛4:JDEA AND REF(J,1)>REF(D,1),COLORYELLOW;
六彩牛5:MACD<0 AND REF(MACD>0,1),COLORRED;
六彩牛6:CROSS(中期线,短期线),COLORGRAY;
STICKLINE(六彩牛1,0,20,3,0),COLORWHITE;
STICKLINE(六彩牛2,20,40,3,0),COLORGREEN;
STICKLINE(六彩牛3,40,60,3,0),COLORFF00FF;
STICKLINE(六彩牛4,60,80,3,0),COLORYELLOW;
STICKLINE(六彩牛5,80,100,3,0),COLORRED;
STICKLINE(六彩牛6,100,120,3,0),COLORGRAY;
STICKLINE(1,0,1,3,0),COLORBLACK;
DRAWTEXT_FIX(1,0.03,0.01,0,'六彩牛1:下降反弹'),COLORWHITE;
DRAWTEXT_FIX(1,0.03,0.14,0,'六彩牛2:二次探底'),COLORGREEN;
DRAWTEXT_FIX(1,0.03,0.27,0,'六彩牛3:强势回调'),COLORFF00FF;
DRAWTEXT_FIX(1,0.03,0.40,0,'六彩牛4:通道回调'),COLORYELLOW;
DRAWTEXT_FIX(1,0.03,0.53,0,'六彩牛5:横盘转强'),COLORRED;
DRAWTEXT_FIX(1,0.03,0.66,0,'六彩牛6:打压转升'),COLORGRAY;
选股公式源码
{选股公式一:六彩牛1}
N4:=34;
中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
六彩牛1:REF(中期,1)<1 AND 中期>1,COLORWHITE;
{选股公式二:六彩牛2}
CHAA:=(3*C+L+O+H)/6;
C2:=EMA(CHAA,6);
C3:=EMA(CHAA,5);
六彩牛2:EXIST(CROSS(C2,C3),2),COLORGREEN;
{选股公式三:六彩牛3}
持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA
((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
支撑:=LLV(持股,3);
中期线:=MA(持股,12);
六彩牛3:支撑>中期线 AND 持股=支撑 AND REF(支撑,2)
{选股公式四:六彩牛4}
SHORT:=12;LONG:=26;MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);D:=SMA(K,M2,1);J:=3*K-2*D;
六彩牛4:JDEA AND REF(J,1)>REF(D,1),COLORYELLOW;
{选股公式五:六彩牛5}
SHORT:=12;LONG:=26;MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
六彩牛5:MACD<0 AND REF(MACD>0,1),COLORRED;
{选股公式六:六彩牛6}
持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA
((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
中期线:=MA(持股,12);
CHP1:=1;
CHP2:=LLV(LOW,10);
CHP3:=HHV(HIGH,25);
短期线:=EMA((CLOSE-CHP2)/(CHP3-CHP2)*4,4)*CHP1*30;
六彩牛6:CROSS(中期线,短期线),COLORGRAY; |