当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:白猫黑猫(同花顺公式 副图 源码 测试图)
软件名称:[B]白猫黑猫(同花顺公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:10.0 KB
官方主页:Home Page
更新时间:2023-02-02 00:02:57
软件简介:
白猫黑猫
个人测试用,有未来函数,可能存在风险,请勿乱套用!
金线:EMA(CLOSE,5)-EMA(CLOSE,10),LINETHICK1;
银线:EMA(金线,6),COLOrffaa00,LINETHICK2;
决策 : 2*(金线-银线),colorgreen,LINETHICK2;
STICKLINE(决策>=0,决策,0,4,1),COLORF00FF0;
STICKLINE(决策<0,决策,0,4,1),colorwhite;
STICKLINE(决策<REF(决策,1)AND 决策>0,0,决策,4,0 ),COLOR00aaff;
STICKLINE(决策>0 AND 决策>=REF(决策,1),0,决策,6,0),color0000ff;
STICKLINE(决策>0 AND 决策<REF(决策,1),0,决策,6,1),colorwhite;
STICKLINE(决策<0 AND 决策>=REF(决策,1),0,决策,6,0),colorff00ff;
STICKLINE(决策<0 AND 决策<REF(决策,1),0,决策,6,1),colorgray;
低位金叉:=CROSS(金线,银线) AND 金线<-0.1;
STICKLINE(低位金叉,银线*0.86,银线*0.66,6,0),coloryellow;
DRAWTEXT(低位金叉,银线*0.86,' 低位金叉'),coloryellow;
JCCOUNT:=COUNT(CROSS(金线,银线),BARSLAST(银线>=0));
二次金叉:=CROSS(金线,银线) AND 银线<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,银线*0.96,银线*0.76,6,0),ColorFF00FF;
DRAWICON(二次金叉,银线*1.1,'BUY') ;
DRAWTEXT(二次金叉,银线*0.96,' 二次金叉'),ColorFF00FF;
A1:=BARSLAST(REF(CROSS(金线,银线),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND 金线>REF(金线,A1+1) AND CROSS(金线,银线);
STICKLINE(底背离,银线*1.09,银线*0.86,6,0),Color00FF00;
DRAWLINE(A1=0,银线,底背离,银线,0),colorred,linethick1;
DRAWTEXT(底背离,银线*1.09,' 底背离'),Color6600FF;
A2:=BARSLAST(REF(CROSS(银线,金线),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(金线,A2+1)>金线 AND CROSS(银线,金线);
DRAWLINE(A2=0,银线,顶背离,银线,0),colorgreen,linethick1;
DRAWTEXT(顶背离,银线*1.2,' 顶背离'),Color00FF00;
强:IF(金线>=银线,金线,DRAWNULL),colorred,LINETHICK3;
弱:IF(银线>=金线,银线,DRAWNULL),COLORFF9900,LINETHICK3;
MA1:=MA(CLOSE,1),ColorCCCCCC;
MA3:=MA(CLOSE,3),Color00BBBB;
持股指数 :(MA1-MA3)*9.85,LINETHICK1,colorblue;
量能:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),NODRAW;
VAEC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)<=REF(ZIG(3,5),3));
VAED:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)>=REF(ZIG(3,5),3));
STICKLINE((VAEC=1),0,0.2,3,0),COLOR0000FF;
DRAWTEXT((VAEC=1),0.2,'买'),COLOR0000FF;
STICKLINE((VAED=1),0,-0.2,3,0),COLOR00FF00;
DRAWTEXT((VAED=1),-0.2,'卖'),COLOR00FF00;
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF (ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF (ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF (ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF (ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF (ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF (ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
买入:(VAR11+VAR13+VAR15+VAR17)*10*0.01,colorgreen,LINETHICK2;
卖出:-(VAR12+VAR14+VAR16+VAR18)*10*0.01,colorblue,LINETHICK2;
主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),colorff00ff,linethick2;
主筹:WINNER(C)*100 ,colorred,linethick2;
散筹:(WINNER(C*1.1)-WINNER(C*0.9))*100,colorgreen,LINETHICK0;
VAR1x:=SMA(AMOUNT/10,10,1)/10000/100000;
VAR2x:=REF(VAR1x,2);
资金运转:STICKLINE(VAR1x>VAR2x,VAR1x-0.55,VAR2x-0.45,3,0),coloryellow;
资金流失:STICKLINE(VAR1x<VAR2x,VAR1x-0.55,VAR2x-0.45,3,0),colorblue;
顺1:=AMOUNT/100/VOL;
顺2:=EMA(顺1,6);
顺3:=EMA(顺2,5);
顺4:=EMA(顺3,12);
顺5:=EMA(顺4,5);
顺势15:=EMA(C,15)/100,colorgreen,LINETHICK2;
顺6:=EMA(顺势15,1);
顺7:=EMA(顺6,2);
顺8:=EMA(顺7,10);
顺9:=EMA(顺8,8);
顺势2:=MA(C,3)/100;
STICKLINE(顺2>=顺3,顺势2-0.65,顺势15-0.6,3,0),LINETHICK1,colorred;
STICKLINE(顺2<=顺3,顺势2-0.65,顺势15-0.6,3,0),LINETHICK1,colorligreen;
STICKLINE(顺4>=顺5,顺8-0.65,顺9-0.60,4,0),LINETHICK1,colorff00ff;
STICKLINE(顺4<=顺5,顺8-0.65,顺9-0.60,6,0),LINETHICK1,colorgreen;
IF(顺势15<REF (顺势15,1),顺势15,DRAWNULL),LINETHICK3,COLOR666600;
IF(顺势15>=REF(顺势15,1),顺势15,DRAWNULL),colormagenta,LINETHICK3;
势2:=EMA(C,3)/100,colorwhite,LINETHICK2;
资金顺量:(EMA(C,3)-EMA(C,15))*0.5,colorwhite,LINETHICK1;
F:=ZIG(3,15);
方向:IF((F> REF(F,1)),-0.4,0.4),coloryellow,LINETHICK3;
STICKLINE(方向>0,0.3,0.4,10,0),colorgreen;
STICKLINE(方向<0.4,-0.4,-0.3,10,0),colorred;
F1:=ZIG(3,5);
方向1:=IF((F1> REF(F1,1)),-100,100);
STICKLINE(方向1>0,0.2,0.27,10,0),colorgreen;
STICKLINE(方向1<90,-0.27,-0.2,10,0),colorred;
[url=http://www.70822.com/soft/sort013/sort036/down-166119.html]白猫黑猫(同花顺公式 副图 源码 测试图)[/url]