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

通达信源码:资金进场,抓住黑马,金山钻石底

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

1、资金进场

资金进场 非原创,自己感觉不错。

 
{DRAWGBK((CLOSE > 0),COLORRGB(0,130,100),COLORRGB(0,0,30),1);}
Z_X0:=SMA(AMOUNT,10,1)/10000000;  
XL_1:=(Z_X0-LLV(Z_X0,4))/(HHV(Z_X0,4)-LLV(Z_X0,4))*100;          
XL_2:=LLV(Z_X0,4)+SMA(XL_1,4,1)/100*(HHV(Z_X0,4)-LLV(Z_X0,4));     
XL_3:=SMA(XL_2,3,1);
资金:=Z_X0,LINETHICK,COLORFFA9FF;              
分界:=MA(Z_X0,3);
{大盘--转向三角}
Z_X1:=REF(EMA(Z_X0,5),1); 
Z_X2:=(EMA(Z_X0,5)-Z_X1)/Z_X1*100;
Z_X3:=REF(EMA(Z_X0,5),BARSLAST(CROSS(Z_X2,0))+1);
Z_X4:=REF(EMA(Z_X0,5),BARSLAST(CROSS(0,Z_X2))+1);
资金离场:STICKLINE(Z_X0<REF(Z_X0,1)AND (AMOUNT/REF(AMOUNT,1)<0.97),Z_X0,REF(Z_X0,1),2,0),COLORWHITE;{//资金离场}
资金进场:STICKLINE(Z_X0>=REF(Z_X0,1),Z_X0,REF(Z_X0,1),2,0),COLORRED;{//资金进场}
空仓:STICKLINE(Z_X0<分界,Z_X0,REF(Z_X0,1),2,1),,COLORFFA900;{//空仓}
IF(Z_X2>=0 AND Z_X3=REF(Z_X3,1),Z_X3,DRAWNULL),COLORFF6FFF;                    {//粉红--直线}
IF(Z_X2<0 AND Z_X4=REF(Z_X4,1),Z_X4,DRAWNULL),COLORGREEN;                     { //绿--直线};



2、抓住黑马,底部突破

A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:EMA(A1,5),LINETHICK2,COLOR6600FF;
 A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;
 A3:=EMA(C,5);
 A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,coloryellow;
 A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
 DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A2<0,7),黑马线,'跑'),COLOR00FF00;
 DRAWTEXT(CROSS(A1,黑马线)AND 黑马线<A5,黑马线,'黑马');
DRAWTEXT(CROSS(黑马线,A5)AND 趋势线<80,黑马线,'追涨');
DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大黑马');
底部:(A2<-10 AND A2>REF(A2,1))*25,colorred;
 DRAWICON(底部 AND A3>REF(A3,1),25,4);
机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0;
大势已去:IF(CROSS(黑马线,A1)AND 黑马线>70 AND 趋势线>80,90,100),COLORFF0000;



3、金山钻石底

公式特别准,源码分享,无未来函数,有副图和预警指标( 顶尖财经 股票学院: http://www.58188.com )

 {公式名称: 金山钻石底}

 
VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR2:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR10:=REF(VAR9,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR14:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VAR15:=REF(VAR14,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR16:=REF(VAR15,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR17:=REF(VAR16,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR18:=REF(VAR17,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR19:=REF(VAR18,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR20:=REF(VAR19,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR21:=REF(VAR20,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR22:=REF(VAR21,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR23:=REF(VAR22,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR24:=REF(VAR23,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR25:=REF(VAR24,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR26:=REF(VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18 OR VAR19 OR VAR20 OR VAR21 OR VAR22 OR VAR23 OR VAR24 OR VAR25,1) AND VAR2;
VAR27:=REF(LOW,1);
VAR28:=SMA(ABS(LOW-VAR27),3,1)/SMA(MAX(LOW-VAR27,0),3,1)*100;
VAR29:=EMA(IF(CLOSE*1.3,VAR28*10,VAR28/10),3);
VAR30:=LLV(LOW,13);
VAR31:=HHV(VAR29,13);
VAR32:=IF(MA(CLOSE,34),1,0);
VAR33:=EMA(IF(LOW<=VAR30,(VAR29+VAR31*2)/2,0),3)/618*VAR32;
VAR34:=IF(VAR33>100,100,VAR33);
VAR35:=MA(CLOSE,30);
VAR36:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
VAR37:=(EMA(VAR36,3)-50)*2;
VAR38:=VAR37>REF(VAR37,1) AND REF(VAR37,1)<REF(VAR37,2) AND REF(VAR37,1)<(-60);
钻石:VAR38 AND (VAR26 OR REF(VAR26,1)) AND CLOSE>REF(CLOSE,1) AND CLOSE>OPEN AND CLOSE/REF(CLOSE,1)<1.05 AND REF(CLOSE,1)/REF(CLOSE,2)<1.05 AND CLOSE<1.07*VAR35 AND VAR1<(-0.2) AND VAR34>1;

上一篇:通达信源码:庄家骗线吸筹,分型顶底,股海淘金

下一篇:通达信源码:波段点睛王,优化版CCI,博尔量化