当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:智能MACD,新一脚临门 ,绝对底部

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

1、智能MACD手机版,电脑版

该指标在红色柱子最高点出现小人逃跑的图形说明指标顶背离了,下方出现红色箭头,或者是出现钱袋的图形可以参考买入。( 顶尖 财经 股票学院: http://www.58188.com )

{DRAWGBK(C>0, RGB(0,108,108),RGB(88,0,0),0,'11',0);}
SHORT:=12;
LONG:=26;
MID:=9;DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWICON(REF(DIF,1)<REF(DIF,2) AND DIF>REF(DIF,1) AND DIF<0 AND DIF<DEA,DIF*1.1,1),COLORRED;
HJ_2:=BARSLAST(REF(MACD,1)<0 AND MACD>0);
HJ_3:=LLVBARS(MACD,HJ_2+20);
HJ_4:=IF(HJ_3>HJ_2,REF(MACD,HJ_3),0);
HJ_5:=MACD<0 AND MACD>HJ_4 AND LOW=LLV(LOW,HJ_2+20) AND HJ_4<0;
HJ_6:=REF(HJ_5,1)=1 AND MACD>REF(MACD,1) AND REF(DIF,HJ_3)<0 AND MACD<0;
底背:DRAWLINE(HJ_4=HJ_3,MACD,HJ_6,MACD,0),COLORRED,DOTLINE;DRAWICON(HJ_6,MACD*1.2,9);
HJ_7:=HHVBARS(MACD,HJ_2+20);
HJ_8:=IF(HJ_7>HJ_2,REF(MACD,HJ_7),0);
HJ_9:=MACD>0 AND MACD<HJ_8 AND HIGH=HHV(HIGH,HJ_2+20) AND HJ_8>0;
HJ_10:=REF(HJ_9,1)=1 AND MACD>REF(MACD,1) AND REF(DIF,HJ_7)>0;
顶背:DRAWLINE(HJ_8=HJ_7,MACD,HJ_10,MACD,0),COLOR1D7300,DOTLINE;
DRAWICON(HJ_10,MACD*1.2,15);
HJ_11:=CLOSE/MA(CLOSE,40)*100<78;
HJ_12:=CLOSE/MA(CLOSE,60)*100<74;
HJ_13:=HIGH>LOW*1.051;
HJ_14:=HJ_13 AND COUNT(HJ_13,5)>1;
HJ_15:=IF(HJ_14 AND (HJ_11 OR HJ_12),2,0);
HJ_16:=CLOSE/REF(CLOSE,25)<=1.1;
HJ_17:=SMA(MAX(CLOSE-REF(CLOSE,2),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,2)),7,1)*100<15;
HJ_18:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
HJ_19:=SMA(HJ_18,2,1);
HJ_20:=SMA(HJ_19,2,1);
HJ_21:=IF(HJ_19>REF(HJ_19,1) AND REF(HJ_19,1)<REF(HJ_19,2) AND HJ_19<23,1.5,0);
HJ_22:=100-100*(HHV(HIGH,5*8)-CLOSE)/(HHV(HIGH,5*8)-LLV(LOW,5*8));
HJ_23:=MA(CLOSE,5);
HJ_24:=IF(CLOSE>SAR(10,2,20),1,0);
HJ_25:=IF(CLOSE<SAR(10,2,20),(-1),0);
HJ_26:=ATAN((HJ_23/REF(HJ_23,1)-1)*100)*180/3.1416;
HJ_27:=IF(HJ_26>30,1,0);
HJ_28:=IF(HJ_26<(-30),(-1),0);
HJ_29:=HJ_24+HJ_27+HJ_25+HJ_28;
IF(HJ_29<(-1) OR HJ_22<25.01,DIF,DRAWNULL),COLOR1D7300;
IF(HJ_22>74.989998 OR HJ_29>0,DIF,DRAWNULL),COLORRED;0,COLORBROWN,POINTDOT;



2、新一脚临门 

{公式名称: 临门一脚
画线方法: 副图
公式版本: 0
显示小数: 固定0位
坐标线位置: 53;58;65;72;80;86
公式源码:}
 
DRAWGBK(CLOSE>0,RGB(1,1,1),RGB(1,1,1),0,0,1);
VAR1:=趋势稳盈.压力#DAY>0;
VAR2:=IF(CLOSE>0,EMA(MAX(CLOSE-REF(CLOSE,1),0),83)/EMA(ABS(CLOSE-REF(CLOSE,1)),83)*101,0);
VAR3:=IF(VAR2>=53 AND VAR2>=REF(VAR2,1),30,0);
VAR4:=VAR3;
VAR5:=VAR2;
临门一脚:53<VAR5 AND VAR5>=REF(VAR5,1) AND VAR1,NODRAW,COLORLIRED;
DRAWBAND(86,RGB(0,118,118),53,RGB(0,0,0));
动力十足:IF(VAR4>0,1,DRAWNULL),NODRAW,COLOR0000CC;
DRAWBAND(86*动力十足,RGB(118,0,0),53*动力十足,RGB(0,0,0));
VAR5,COLORCYAN;
蓄势:53,COLORGREEN;
走强:58,COLORLIRED;
小妖:65,COLORWHITE;
大妖:72,COLORWHITE;
狂妖:80,COLORMAGENTA;
妖魔:86,COLOR0000CC;
IF(蓄势>VAR5,VAR5,DRAWNULL),COLORLIGRAY;
IF(蓄势<VAR5 AND VAR5>=REF(VAR5,1),VAR5,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(走强<VAR5 AND VAR5>=REF(VAR5,1),VAR5,DRAWNULL),COLORRED,LINETHICK2;
IF(妖魔<VAR5 AND VAR5>=REF(VAR5,1),VAR5,DRAWNULL),COLORWHITE,LINETHICK2;
VAR6:=临门一脚;
STICKLINE(PERIOD=5 AND VAR6,53,58,2,0),COLORGREEN;
STICKLINE(PERIOD=5 AND VAR6,58,72,1,0),COLORYELLOW;
STICKLINE(PERIOD=5 AND VAR6,72,86,0.3,0),COLORLIMAGENTA;
股道稳赢:DRAWNULL,COLORCCCCCC;
dingjian:DRAWNULL,COLORCCCCCC;
 
 
{公式名称: 新一脚临门}
 
DRAWGBK(CLOSE>0,RGB(1,1,1),RGB(1,1,1),0,0,1);
VAR1:=Func_0x7613.SubValue_0x0#DAY>0;
VAR2:=FILTER(VAR1,5);
VAR3:=IF(CLOSE>0,EMA(MAX(CLOSE-REF(CLOSE,1),0),21)/EMA(ABS(CLOSE-REF(CLOSE,1)),21)*101,0);
VAR4:=IF(VAR3>=21 AND VAR3>=REF(VAR3,1),20,0);
VAR5:=VAR4;
VAR6:=VAR3;
临门一脚:53<VAR6 AND VAR6>=REF(VAR6,1) AND VAR2,NODRAW,COLORLIRED;
DRAWBAND(86,RGB(0,118,118),21,RGB(0,0,0));
动力十足:IF(VAR5>0,1,DRAWNULL),NODRAW,COLOR0000CC;
DRAWBAND(86*动力十足,RGB(118,0,0),53*动力十足,RGB(0,0,0));
VAR6,COLORCYAN;
蓄势:53,COLORGREEN;
走强:58,COLORLIRED;
小妖:65,COLORWHITE;
大妖:72,COLORWHITE;
狂妖:80,COLORMAGENTA;
妖魔:86,COLOR0000CC;
IF(蓄势>VAR6,VAR6,DRAWNULL),COLORLIGRAY;
IF(蓄势<VAR6 AND VAR6>=REF(VAR6,1),VAR6,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(走强<VAR6 AND VAR6>=REF(VAR6,1),VAR6,DRAWNULL),COLORRED,LINETHICK2;
IF(妖魔<VAR6 AND VAR6>=REF(VAR6,1),VAR6,DRAWNULL),COLORWHITE,LINETHICK2;
VAR7:=临门一脚;
STICKLINE(PERIOD=5 AND VAR7,53,58,2,0),COLORGREEN;
STICKLINE(PERIOD=5 AND VAR7,58,72,1,0),COLORYELLOW;
STICKLINE(PERIOD=5 AND VAR7,72,86,0.3,0),COLORLIMAGENTA;



3、绝对底部

{公式名称: 绝对底部
画线方法: 副图}
VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);
VAR2:=DMA(CLOSE,VOL/MA(VOL,32)/32);
VAR3:=(CLOSE-VAR1)/VAR1*100<(-8);
VAR4:=(VAR1-VAR2)/VAR2*100<(-21);
VAR05:=VAR3 AND VAR4 AND (OPEN>CLOSE OR OPEN<CLOSE) ;
VAR5:=VAR05 AND  (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>(-0.05) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));
VAR6:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<(-23);
VAR7:=(INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100;
VAR8:=SMA(VAR7,50,1);
VAR9:=SMA(VAR8,40,1);
VAR10:=VAR6 AND VAR9<23 AND COUNT(VAR6,2)=1 AND (OPEN>CLOSE OR OPEN<CLOSE) AND OPEN/REF(CLOSE,1)>0.96;
绝对底部:VAR5 OR VAR10,COLORMAGENTA;

上一篇:通达信源码:波段稳健盈利,筹码分析仪,强势买进狙击

下一篇:通达信源码:无敌龙门,擒龙抓妖,三角形和黑马