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

同花顺源码:稳健洗盘结束买+愚人财神+黄金坑

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

稳健洗盘结束买 没未来函数:
 
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,9);
 
DEA :=EMA(DIFF,6);
 
EMA250:MA(C,250),colorred;
 
EMA6:MA(C,6),colorred,LINETHICK2;
 
EMA18:MA(C,18),coloryellow;
 
EMA55:MA(C,55),COLORFF00FF;
 
EMA144:MA(C,144),colorgreen;
 
EMA288:MA(C,288),colorblue;
 
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
 
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);
 
中线买入:=COUNT(CLOSE<EMA18,5)=4 AND CLOSE/EMA18>1.004
 
AND CROSS(CLOSE,EMA18) AND EMA18>=REF(EMA18,1);
 
DRAWTEXT(中线买入,LOW*0.95,' 中线买入'),colorred;
 
STICKLINE(买进条件,O,C,10,0),colorffffff,LAYER1;
 
STICKLINE(买进条件,O,C,8,0),colorffffff,LAYER1;
 
STICKLINE(买进条件,O,C,4,0),colorffffff,LAYER1;
 
STICKLINE(买进条件,H,L,0.5,0),colorffffff,LAYER1;
 
VL:=REF(LOW,1);
 
VAR12:=(SMA(ABS(LOW-VL),13,
 
1))/(SMA(MAX(LOW-VL,0),13,1))*100;
 
VAR14:=MA(VAR12,13);
 
VAR15:=LLV(LOW,34);
 
VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);
 
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
 
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);
 
VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,
 
54)-LLV(LOW,54))*100,7,1),5,1);
 
VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,
 
54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;
 
T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20);
 
STICKLINE(加码条件,O,C,10,0),color00ffff,LAYER1;
 
STICKLINE(加码条件,O,C,8,0),color00ffff,LAYER1;
 
STICKLINE(加码条件,O,C,4,0),color00ffff,LAYER1;
 
STICKLINE(加码条件,H,L,0.5,0),color00ffff,LAYER1;
 
DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;
 
DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF;
 
VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
 
VAR22:=SMA(VAR21,3,1);
 
VAR23:=SMA(VAR22,3,1);
 
VAR24:=SMA(VAR23,3,1);
 
VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;
 
ZDF:=(C-REF(C,1))/REF(C,1)*100;
 
DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.1,'←抄底'),colorred;
 
DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'|'),colorred;
 
VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;
 
STICKLINE(ZDF>9.8,O,C,10,1),COLOR0000ff,LAYER1;
 
STICKLINE(ZDF>9.8,O,C,8,1),COLOR0000ff,LAYER1;
 
STICKLINE(ZDF>9.8,O,C,4,1),COLOR0000ff,LAYER1;
 
STICKLINE(ZDF<-9.8,O,C,10,1),COLOR00ff00,LAYER1;
 
STICKLINE(ZDF<-9.8,O,C,8,1),COLOR00ff00,LAYER1;
 
STICKLINE(ZDF<-9.8,O,C,4,1),COLOR00ff00,LAYER1;
 
DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶'),colorblue;
 
WWW58188COM:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
 
DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'|'),colorblue;



愚人财神:

迷信要不得,图个吉利还是必须的,弄个财神指标大把搂金,岂不是两全其美。
 

RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;

RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;

J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);

J1:=IF(CLOSE>QJ,VOL,0);

J2:=IF(CLOSE<QJ,VOL,0);

量能:IF(CAPITAL<1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,linethick0;

趋势:IF(CAPITAL<1,EMA(量能,360),EMA(量能,21)),COLOR008800,linethick0;

VAR3:=(量能-趋势);

VAR44:=SMA(RV,3,1);

VAR55:=SMA(VAR44,3,1);

STICKLINE(VAR3>0,100,50,4,0),COLOR990099;

STICKLINE(VAR3<0,0,50,4,0),COLOR008800;

STICKLINE(VAR3>0,20,10,5,1),COLOR0000FF;

STICKLINE(VAR3<0,100,90,10,1),COLOR00FF00;

DRAWICON(CROSS(VAR44,VAR55) AND VAR55<30,2,1);

DRAWICON(CROSS(VAR55,VAR44) AND VAR55>30,97,2);

KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:SMA(KK,3,1),COLOR00FFFF;

DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10,'共振'),COLOR00FFFF;

共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));

STICKLINE(共振点>0,0,100,2,0),COLOR008888;

STICKLINE(共振点>0,0,100,1.5,0),COLOR00AAAA;

STICKLINE(共振点>0,0,100,0.8,0),COLOR00DDDD;

STICKLINE(共振点>0,0,100,0.3,0),COLOR00FFFF;

VAR1:=1;

VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);

低金叉进:20,COLORFF00FF,LINETHICK2;

高死叉出:90,colorblue,LINETHICK2;

VAR4:=LLV(LOW,5);

VAR5:=HHV(HIGH,4);

C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF,LINETHICK2;

C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETHICK2;

条件:=CROSS(C1,C2) AND C1<40;

条件0:=CROSS(C2,C1) AND C1>90;

TJ1:=CROSS(C1,C2);

TJ2:=CROSS(C2,C1);

TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;

TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;

DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))

OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))

OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),85,'止'),colorred;

DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))

OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))

OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),55,'跌'),colorred;

DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2)) OR

(REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))

OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),70,'买'),colorred;

DRAWTEXT(条件,20,'买点'),colorred;

STICKLINE(条件,0,20,2,0),colorred;

DRAWTEXT(条件0,85,'卖'),colorblue;

DRAWTEXT(CROSS(C1,75),70,'险区'),colorgreen;

DRAWTEXT(TJ3,75,'安'),colorred;

DRAWTEXT(TJ3,60,'买'),colorred;

DRAWTEXT(TJ4,85,'逃顶'),colorblue;

STICKLINE(TJ4,100,80,2,0),colorgreen;

VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;

VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;

VAR400:=EMA(VAR300,5);

操盘:=3*VAR300-2*VAR400;

A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;

STICKLINE(A1,30,0,4,0),COLOR770077;

STICKLINE(A1,30,0,3,0),COLOR990099;

STICKLINE(A1,30,0,2,0),COLORBB00BB;

STICKLINE(A1,30,0,1,0),COLORDD00DD;

STICKLINE(A1,30,0,0.3,0),COLORFF00FF;

DRAWTEXT(A1,36,'财神到'),colorred;

★愚人出品★:100,colorred,linethick0;

★财神驾到★:100,colorred,linethick0;

 


黄金坑 副图指标:

 
指标不带未来函数,信号收盘后不漂移,无时间限制,为操盘参考使用,使用时还需多加总结。指标是死的,股市是活的,各种不确定性较大,一切买卖和盈亏与指标无关~风险自负!
请注意:本指标适用于同花顺软件(顶尖财经 股票学院: www.58188.com)
 

RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;
短线:SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR00FF00;
中线:SMA(RSV2,5,1)+2*STD(CLOSE,37),colorred;
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
长线:SMA(RSV3,5,1),coloryellow;
看底:STICKLINE(中线<15,中线,15,6,0),COLORF00FF0;
黄金坑:STICKLINE(短线<20 AND 中线<20 AND 长线<20,MAX(长线,MAX(短线,中线)),20,8,0),COLOR00CCFF;
看顶:STICKLINE(中线>85,85,中线,6,0),COLORFFF000;
DRAWICON(CROSS(长线,15),中线,1);
DRAWTEXT(LONGCROSS(中线,20,15),20,'追涨');
DRAWTEXT(CROSS(短线,长线)AND 长线<18 AND 长线>REF(长线,1)OR CROSS(长线,5),20,'千载难逢');
中线2:=-100*(HHV(HIGH,40)-CLOSE)/(HHV(HIGH,40)-LLV(LOW,40));
底:DRAWTEXT(CROSS(中线2,-90) AND (长线<中线 AND 长线>REF(长线,1)OR 短线<20 AND 中线<20 AND 长线<20),长线,'底'),COLORFF00FF;
IF(COUNT(CROSS(中线2,-90),12)=3,30,5);
IF(COUNT(CROSS(-5,中线2),12)=3 OR COUNT(CROSS(-15,中线2),6)=3,70,100);
粘合星:DRAWTEXT(ABS(短线-中线)<2 AND 短线>REF(短线,1) ,短线,'机会');

上一篇:同花顺源码:散资底预警备钱吸筹操盘+特立独行的乖离强势+新MACD主升浪

下一篇:同花顺源码:预测买点主图+金准出击