【股票指标公式下载】-【通达信】长征解盘(促进指数)

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

【通达信】长征解盘(促进指数)-指标公式源码MA1:MA(CLOSE,5),COLORRED;MA2:MA(CLOSE,10),COLORRED;MA3:MA(CLOSE,20),COLORRED;MA4:MA(CLOSE,60),COLORRED;MA5:MA(CLOSE,120),COLORRED;IF(MA1REF(MA1,1),MA1,DRAWNULL),COLORGREEN;IF(MA2REF(MA2,1),MA2,DRAWNULL),COLORGREEN;IF(MA3REF(MA3,1),MA3,DRAWNULL),COLORGREEN;IF(MA4REF(MA4,1),MA4,DRAWNULL),COLORGREEN;IF(MA5REF(MA5,1),MA5,DRAWNULL),COLORGREEN;TT:=240/FROMOPEN;比:=TT;促进指数MFL:=(HIGH-LOW)*1000000/(VOL*比),COLORRED;ZGD:=HHV(H,80)*0.99;ZGD2:=CONST(ZGD);YYA4:=MA(CLOSE,20);YYA5:=(CLOSEMA(CLOSE,5));YYA6:=(MA(CLOSE,5)MA(CLOSE,10));YYA7:=(CLOSEMA(CLOSE,10));YYA8:=(MA(CLOSE,5)MA(CLOSE,20));YYA9:=(CLOSEMA(CLOSE,20));YYA10:=REF(YYA4,1);YYA11:=(YYA4YYA10);YYAVX:=(((((IF(YYA5,10,(0-10))+IF(YYA6,10,(0-10)))+IF(YYA7,10,(0-10)))+IF(YYA8,10,(0-10)))+IF(YYA9,10,(0-10)))+IF(YYA11,10,(0-10)));DSLX:=(CLOSE/INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);YYV1:=MA(VOL,5);YYV2:=MA(VOL,10);情况1:=CONST(IF(((CROSS(YYAVX,1)AND(YYV1=YYV2))AND(DSLX=DSLX1)),1,0));情况2:=CONST(IF(((CROSS(YYAVX,1)AND(YYV1YYV2))AND(DSLX=DSLX1)),1,0));情况3:=CONST(IF(((CROSS(YYAVX,1)AND(YYV1YYV2))AND(DSLXDSLX1)),1,0));情况4:=CONST(IF(((CROSS(YYAVX,1)AND(YYV1=YYV2))AND(DSLXDSLX1)),1,0));情况5:=CONST(IF(((CROSS(1,YYAVX)AND(YYV1=YYV2))AND(DSLX=DSLX1)),1,0));情况6:=CONST(IF(((CROSS(1,YYAVX)AND(YYV1YYV2))AND(DSLX=DSLX1)),1,0));情况7:=CONST(IF(((CROSS(1,YYAVX)AND(YYV1=YYV2))AND(DSLXDSLX1)),1,0));情况8:=CONST(IF(((CROSS(1,YYAVX)AND(YYV1YYV2))AND(DSLXDSLX1)),1,0));情况9:=CONST(IF(((((YYAVX=1)AND(REF(YYAVX,1)0))AND(YYV1=YYV2))AND(DSLX=DSLX1)),1,0));情况10:=CONST(IF(((((YYAVX=1)AND(REF(YYAVX,1)0))AND(YYV1YYV2))AND(DSLX=DSLX1)),1,0));情况11:CONST(IF(((((YYAVX=1)AND(REF(YYAVX,1)0))AND(YYV1=YYV2))AND(DSLXDSLX1)),1,0)),NODRAW;情况12:=CONST(IF(((((YYAVX=1)AND(REF(YYAVX,1)0))AND(YYV1YYV2))AND(DSLXDSLX1)),1,0));情况13:=CONST(IF(((((YYAVX1)AND(REF(YYAVX,1)0))AND(YYV1=YYV2))AND(DSLX=DSLX1)),1,0));情况14:=CONST(IF(((((YYAVX1)AND(REF(YYAVX,1)0))AND(YYV1YYV2))AND(DSLX=DSLX1)),1,0));情况15:=CONST(IF(((((YYAVX1)AND(REF(YYAVX,1)0))AND(YYV1=YYV2))AND(DSLXDSLX1)),1,0));情况16:=CONST(IF(((((YYAVX1)AND(REF(YYAVX,1)0))AND(YYV1YYV2))AND(DSLXDSLX1)),1,0));大盘1:=CONST(IF((CROSS(YYAVX,1)AND(YYV1=YYV2)),1,0));大盘2:=CONST(IF((CROSS(YYAVX,1)AND(YYV1YYV2)),1,0));大盘3:=CONST(IF((CROSS(1,YYAVX)AND(YYV1=YYV2)),1,0));大盘4:=CONST(IF((CROSS(1,YYAVX)AND(YYV1YYV2)),1,0));大盘5:=CONST(IF((((YYAVX=1)AND(REF(YYAVX,1)0))AND(YYV1=YYV2)),1,0));大盘6:=CONST(IF((((YYAVX=1)AND(REF(YYAVX,1)0))AND(YYV1YYV2)),1,0));大盘7:=CONST(IF((((YYAVX1)AND(REF(YYAVX,1)0))AND(YYV1=YYV2)),1,0));大盘8:=CONST(IF((((YYAVX1)AND(REF(YYAVX,1)0))AND(YYV1YYV2)),1,0));MFI:=(HIGH-LOW)*1000000/(VOL*比);绿灯:=MFI=REF(MFI,1)ANDVOL*比=REF(VOL,1);M1:=CONST(绿灯);衰退:=MFIREF(MFI,1)ANDVOL*比REF(VOL,1);M2:=CONST(衰退);伪装:=MFI=REF(MFI,1)ANDVOL*比REF(VOL,1);M3:=CONST(伪装);蛰伏:=MFIREF(MFI,1)ANDVOL*比=REF(VOL,1);M4:=CONST(蛰伏);TS1:=IF(M1=1,0.03+0.03,0.03);TS2:=IF(M2=1,TS1+0.03,TS1);TS3:=IF(M3=1,TS2+0.03,TS2);TS4:=IF(M4=1,TS3+0.03,TS3);DRAWTEXT(情况1=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF;DRAWTEXT(情况2=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'走势趋强量能不足,短线进场,仓位在1/2左右'),COLORFF00FF;DRAWTEXT(情况3=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'量价良好,并没有明显走强,短线进场,仓位1/2左右。'),COLORFF00FF;DRAWTEXT(情况4=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右。'),COLORFF00FF;DRAWTEXT(情况5=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'形态变坏,走势尚可,重仓减大半,清仓者观望。'),COLORFF0000;DRAWTEXT(情况6=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'随大盘一起下跌,明显缩量走势,考虑大盘风险,减持或清仓。'),COLORFF0000;DRAWTEXT(情况7=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'该股放量下跌,走势明显偏弱,离场观望。'),COLORFF0000;DRAWTEXT(情况8=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'该股缩量下跌,走势偏弱,离场观望。'),COLORFFFF00;DRAWTEXT(情况9=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'该股形态良好,强势明显,量能充足,可以继续持有。'),COLOR00FFFF;DRAWTEXT(情况10=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'该股上行趋势不变,强势依然,但量能开始转弱,注意风险'),COLOR00FFFF;DRAWTEXT(情况11=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。'),COLORFFFFFF;DRAWTEXT(情况12=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'该股走势趋弱,量能不足,减持大部分筹码'),COLORFFFF00;DRAWTEXT(情况13=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'该股形态不佳,注意成交量的变化,但目前不适合参与。'),COLORFFFF00;DRAWTEXT(情况14=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。'),COLORFFFF00;DRAWTEXT(情况15=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'有走强迹象,但量能不足,趋势不明,不适合操作'),COLORFFFF00;DRAWTEXT(情况16=1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'该股走势太弱,没有参与价值。'),COLORFFFFFF;DRAWTEXT(大盘1AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'量能理想,2/3仓位,前一轮下跌,最佳买点,否则谨慎介入。'),COLOR00FF00;DRAWTEXT(大盘2AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'趋强,量能不足,若前一轮下跌,短线进场1/2,量能放大加仓。'),COLORFF00FF;DRAWTEXT(大盘3AND(CLOSE200)ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.03),'大盘形态走坏,重仓者可以减去大部分仓位。'),COLORAAAAAA;DRAWTEXT(大盘4AND(CLOSE200)ANDCURRBAR

1 / 6
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功