当前位置: 网站首页 > 股票软件公式 > 同花顺公式 > 文章 当前位置: 同花顺公式 > 文章

同花顺源码:主力强弱,魅影杀机,黄金买点提示

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、主力强弱

CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; 
主力线:(EMA(CS,3)-50)*2; 
极弱:-80; 强势:60; 风险:80; 
弱势:-60; 主力线,COLORSTICK; 
今日保护价:(REF(C,1)+REF(C,2)+O)/3,linethick0; 
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100; 
STICKLINE(CROSS(75.9,VAR2),主力线+5,主力线-5,3,0),coloryellow; 
DRAWTEXT(CROSS(主力线,78),78,'清仓'),colorred;
DRAWTEXT(CROSS(主力线,强势),60,'飙升'),coloryellow;
DRAWTEXT(CROSS(主力线,0),0,'控盘'),colorwhite;
DRAWTEXT(CROSS(主力线,-60),-30,'回补'),colorgreen; 
DRAWTEXT(CROSS(主力线,-80),-80,'吸筹'),colorcyan;
 


2、魅影杀机

获利盘:=WINNER(C)*100;
近邻筹码:=WINNER(C*POW(1.1,0.75))*100-WINNER(C*POW(1.1,-0.75))*100;
魅影:获利盘-近邻筹码,COLORFFFFFF,LINETHICK1;
aa:=IF(魅影>=N,魅影,N);
QSSJ:=BARSLAST(COUNT(魅影>=N,2)=2);
杀机:IF(QSSJ<=3 AND COUNT(魅影<REF(魅影,1),2)=2,-10,N),COLOR00FF00;
STICKLINE(AA>N AND AA>REF(AA,1),N,AA,8,0),COLOR0000FF;
STICKLINE(AA>N AND AA<REF(AA,1),N,AA,8,0),COLORFFFF00;
IF(aa>=REF(aa,1),aa,DRAWNULL),colorred,LINETHICK2;
IF(aa<=REF(aa,1),aa,DRAWNULL),COLORFFFF00,LINETHICK2;
IF(aa=REF(aa,1),aa,DRAWNULL),COLOR00FFFF,LINETHICK2;
MA1:MA(魅影,M);
lx:LAST( 魅影>80);
XG1:(MA1>=X AND 魅影>=MA1 AND REF(魅影,1)<=REF(MA1,1) AND 杀机>REF(杀机,1))*50,coloryellow;
xg55:(COUNT( 魅影>=80, 10)>=5)*(杀机<0)*(REF(杀机,1)<0)*189*(lx<10)*(VOL/CAPITAL*100>5);




3、黄金买点提示

出现黄金坑即提示买点,一般中短线盈利,自己测试,请慎重使用。( 顶尖财经 股票学院: http://www.58188.com )

AA:=(O+H+L+C)/4;

BB:=MA(AA,3);
CC:=SUM(IF(AA>REF(AA,1),AA*VOL,0),4)/SUM(IF(AA<REF(AA,1),AA*VOL,0),4);
DD:=REF(100-(100/(1+CC)),1);
A1:=HHV(AA,15);
A2:=LLV(AA,15);
A3:=A1-A2;
A4:=EMA((AA-A2)/A3,2)*100;
B1:=HHV(AA,60);
B2:=LLV(AA,60);
B3:=B1-B2;
B4:=EMA((AA-B2)/B3,2)*100;
C1:=HHV(AA,240);
C2:=LLV(AA,240);
C3:=C1-C2;
C4:=EMA((AA-C2)/C3,2)*100;
短期:A4,COLOR0000FF;
中期:B4,colorgreen;
长期:C4,COLOR00DEDE,LINETHICK1;
STICKLINE(短期>90 AND 中期>70,86,94,6,0),COLOR00FF00;
STICKLINE(短期<5 AND 中期<30,0,8,6,0);
IF(FILTER(中期<REF(中期,1)AND 中期>90 AND BB<REF(BB,1),5),80,100),colorblue,LINETHICK2;
IF(FILTER(中期>REF(中期,1)AND 中期<5 AND C>REF(C,1),5),20,0),COLORDE00DE,LINETHICK2;
D1:=中期>REF(中期,1)AND 短期>REF(短期,1)AND 长期>REF(长期,1)AND 长期<8 AND 中期<10 AND 短期<15;
D2:=CROSS(短期,中期)AND 中期<8;
D3:=CROSS(短期,长期)AND 长期<8 AND 中期<20;
DRAWICON(FILTER((D1 OR D2 OR D3) AND DD<15 AND C>REF(C,1),5),5,1);
DRAWICON(FILTER((中期<REF(中期,1)AND 短期<REF(短期,1)AND 长期<REF(长期,1)AND 中期>95 AND 短期>85)OR (长期>100 AND 中期>100 AND 短期>100),5),95,2);
强弱分界:50,DOTLINE,COLORAAAAAA;
警戒区:90,LINETHICK1,coloryellow,LINETHICK2;
安全区:20,COLOR00BB00;

上一篇:同花顺源码:超准指标,ZYLB,自用小买卖

下一篇:同花顺源码:准备大赚,鱼网1,鱼网3