当前位置:→ 公式网 > 通达信公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是带布林线的波段买卖主图(无源码的请下载附件导入)
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- J0:=(HIGH+LOW+CLOSE)/3;
- J1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
- J2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-J0);
- J3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
- J4:=IF(HIGH=LOW,1,J0-MIN(CLOSE,OPEN));
- J5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));
- J6:="MACD.DIF">"MACD.DEA" AND "MACD.DEA"<0;
- J7:="KDJ.K">"KDJ.D" AND "KDJ.D"<30;
- J8:="MACD.DIF"<"MACD.DEA";
- J9:="KDJ.K"<"KDJ.D" AND "KDJ.K">80;
- 成交量特大单:J4*J5/10000,NODRAW,COLORRED,;
- 大单:J3*J5/10000,NODRAW;
- 中单:J1*J5/10000,NODRAW;
- 小单:J2*J5/10000,NODRAW;
- MA9:=MA(C,9),LINETHICK2,COLORYELLOW;
- MA21:=MA(C,21),LINETHICK2,COLORMAGENTA;
- MA09:=IF(MA(C,9)<REF(MA(C,9),1),MA(C,9),DRAWNULL),LINETHICK2,COLORBLUE;
- MA021:=IF(MA(C,21)<REF(MA(C,21),1),MA(C,21),DRAWNULL),LINETHICK2,COLORGREEN;
- VARQ1:=((((HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),4)<0) AND ((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2)>REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1))) AND (REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1)<REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2))) AND (REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)<REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),3)));
- DRAWTEXT(VARQ1,L-0.25,'入'),COLORYELLOW;
- DRAWTEXT(CROSS(MA(C,3),MA(C,9)) AND C>=REF(C,1) AND C>O,L-0.08,'↖加仓'),COLORMAGENTA;
- MA5:(MA(CLOSE,5)+MA(CLOSE,3))/2;
- MA20:=(MA(CLOSE,21)+MA(CLOSE,14))/2,COLOR4080FF;
- MA13:(MA(CLOSE,13)+MA(CLOSE,8))/2;
- MA34:=(MA(CLOSE,34)+MA(CLOSE,21))/2;
- A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
- A4:=SMA(A3,3,1);
- A5:=SMA(A4,3,1);
- A6:=3*A4-2*A5;
- A7:=C-REF(C,1);
- A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
- 买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
- DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;
- STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
- QLC:=REF(CLOSE,1);
- QRSI:=((SMA(MAX((CLOSE - QLC),0),3,1) / SMA(ABS((CLOSE - QLC)),3,1)) * 100);
- DRAWTEXT(CROSS(88,QRSI),HIGH * 1.02,'顶'),COLOR00FFFF;
- Z1:=MA(C,13);
- ZX:=REF(Z1,13/2+1);
- DRAWICON(CROSS(ZX,C),H*1.01,2);
- 强弱分界:= MA(CLOSE,27),LINETHICK2,COLOR0000FF;
- 上极限: 强弱分界+3*STD(CLOSE,21),COLORFF0080;
- 下极限:强弱分界-2.9*STD(CLOSE,21),COLOR4080FF;
- 风标:=EMA((EMA(CLOSE,3)+EMA(CLOSE,5)+EMA(CLOSE,8)+EMA(CLOSE,13))/4,2),COLOR00FF00;
- VAR1:=(2*CLOSE+HIGH+LOW)/4;
- VAR2:=LLV(LOW,34);
- VAR3:=HHV(HIGH,34);
- VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13);
- VAR5:=REF(CLOSE,1);
- VAR6:=SMA(MAX(CLOSE-VAR5,0),7,1)/SMA(ABS(CLOSE-VAR5),7,1)*100;
- VAR7:=EMA((CLOSE-LLV(CLOSE,55))/(HHV(CLOSE,55)-LLV(LOW,55))*100,7);
- VAR8:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,5);
- VAR9:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,20);
- VAR10:=FILTER(CROSS(VAR8,VAR9) AND VAR9<30 ,5)AND VAR7>REF(VAR7,1)AND C<强弱分界 AND C>O AND VAR4>REF(VAR4,1);
- DRAWICON(REF(L,1)<下极限 AND L>下极限 AND C>O OR VAR10,下极限 ,10);
- DRAWTEXT(VAR10,下极限,'下买');
- DRAWICON(FILTER(REF(H,1)<风标 AND CROSS(C,风标) AND 风标>REF(风标,1) AND 风标<强弱分界,3)AND C>O,L,1);
- DRAWICON(REF(H,1)>上极限 AND H<上极限 AND L<风标 AND C>0,H,1) ;
- DRAWICON( CROSS(80,VAR6)AND L<风标,H*1.03,5);
- DRAWTEXT(CROSS(H,上极限)AND L>风标 AND C/REF(C,10)>1.2 AND VAR8>80,H+0.12,'上卖'),COLOR00FFFF;
- MB1:=EMA(CLOSE,13),COLORBLUE,LINETHICK2;
- MB2:=EMA(MB1,3),COLORBROWN;
- MB3:=EMA(MB2,3),COLORCYAN;
- MB4:=EMA(MB3,3),COLORGREEN;
- MB5:=EMA(MB4,3),COLORMAGENTA;
- AA4:=MA(CLOSE,20);
- AA5:=(CLOSE>MA(CLOSE,5));
- AA6:=(MA(CLOSE,5)>MA(CLOSE,10));
- AA7:=(CLOSE>MA(CLOSE,10));
- AA8:=(MA(CLOSE,5)>MA(CLOSE,20));
- AA9:=(CLOSE>MA(CLOSE,20));
- AA10:=REF(A4,1);
- AA11:=(A4 > AA10);
- AVX:=(((((IF(AA5,10,(0 - 10)) + IF(AA6,10,(0 - 10))) + IF(AA7,10,(0 - 10))) + IF(AA8,10,(0 - 10))) + IF(AA9,10,(0 - 10))) + IF(AA11,10,(0 - 10)));
- DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
- DEA:=EMA(DIF,9);
- 买8:=CROSS(C,MB1) AND CROSS(C,MB2) AND CROSS(C,MB3)
- AND CROSS(C,MB4) AND CROSS(C,MB5) AND CROSS(MB1,MB5);
- 买9:=CROSS(AVX, 0);
- 买10:=CROSS(DIF,DEA);
- 三级警:=买8 AND 买9 AND 买10;
- DRAWICON(三级警, H+0.6,7);
- CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
- YJD:=(EMA(CS,3)-50)*2;
- DRAWICON(CROSS(YJD, -60), L-0.4,11);
- DRAWICON(CROSS(YJD, -80), L-0.6,16);
- 涨家数:INDEXADV,COLOR0000DD,NODRAW;
- 跌家数:INDEXDEC,COLOR00DD00,NODRAW;
上一篇:整合的成交量和地量选股公式 下一篇:AAA量线选股