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

同花顺源码:战略家副图,抄底出现买入,MACD连红连绿

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

1、战略家副图

多:=IF(C>REF(C,1),V,0)/100;

空:=IF(C<REF(C,1),V,0)/100;
正:EMA(MA(多,3),3),colorwhite,LINETHICK2;
负:EMA(MA(空,3),10),colorgreen,LINETHICK2;
STICKLINE(正,正,0,10,0),colorred;
STICKLINE(正>0 AND 正>REF(正,1),正*4/5,0,10,0),COLOR10D3FF;
STICKLINE(正>0 AND 正>REF(正,1),正*2/5,0,10,0),COLOR10FFFF;
STICKLINE(正>0 AND 正<REF(正,1),正,0,10,0),colorbrown;
STICKLINE(正>0 AND 正<REF(正,1),正*4/5,0,10,0),COLORCA3DB5;
STICKLINE(正>0 AND 正<REF(正,1),正*2/5,0,10,0),COLORFF99CC;
STICKLINE(负,负*(-1),0,10,0),COLOR66FF00;
STICKLINE(负,负*(-0.85),0,10,0),COLOR66DD00;
STICKLINE(负,负*(-0.75),0,10,0),COLOR66BB00;
STICKLINE(负,负*(-0.65),0,10,0),COLOR669900;
STICKLINE(负,负*(-0.55),0,10,0),COLOR667700;
STICKLINE(负,负*(-0.45),0,10,0),COLOR665500;
STICKLINE(负,负*(-0.35),0,10,0),COLOR663300;
DRAWTEXT_FIX(1,0.01,0.82,0,'顶尖财经网,做股要做强势,金叉或主力线上,散线下,呈分道扬镳状,买入·下叉卖·'),coloryellow;



2、抄底出现买入,波段类公式

//抄底出现买入

短趋势:((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)-50)*1.032+50),colorred;
VAR2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR3:=LLV(LOW,34);
VAR4:=HHV(HIGH,34);
长趋势:EMA((VAR2-VAR3)/(VAR4-VAR3)*100,13),COLOR00FF00;
判断底:SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5;
VAR5:=CROSS(短趋势,长趋势)AND 长趋势<25;
底部:STICKLINE(短趋势<10 AND 判断底>0,0,30,6,1);
STICKLINE(VAR5,0,50,8,0),colorred;
DRAWICON(VAR5 AND 判断底>0,60,1);
DRAWTEXT(COUNT(短趋势<10 AND 判断底>0,8) AND VAR5,50,'抄底');
DRAWTEXT(CROSS(短趋势,长趋势)AND 长趋势>25 AND 长趋势>REF(长趋势,1),50,'快拉或短顶');
VAR6:=CROSS(短趋势,长趋势)AND 长趋势<50;
DRAWTEXT(COUNT(短趋势<30 AND 判断底>0,5) AND VAR6,30,'短线买');



3、MACD连红连绿( 股 民 学 院 : http://www.58188.net )

DIFF : (EMA(CLOSE,SHORT) - EMA(CLOSE,LONG))*100,LINETHICK1,colorred;

DEA  : EMA(DIFF,M);
MACD : 2*(DIFF-DEA);
CDIFF:=(EMA(CLOSE,60) - EMA(CLOSE,130))*100;
CDEA:=EMA(CDIFF,45);
CMACD:2*(CDIFF-CDEA);
连红:BARSLAST(MACD <0),COLOR0030FF;
连绿:BARSLAST(MACD > 0),COLOR00FF30;
连高:BARSLAST(MACD<REF(MACD,1)),COLOR0030FF;
连低:BARSLAST(MACD>REF(MACD,1)),COLOR00FF30;
STICKLINE(MACD>REF(MACD,1),MACD,0,2,0),COLOR0030FF;
STICKLINE(MACD<=REF(MACD,1),MACD,0,2,0),COLOR00FF30;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,2,0),coloryellow;

上一篇:同花顺源码:可以赚三点,吃鸡,多空线

下一篇:同花顺源码:抄底专用指,主散筹码斜率,无极DMI