通达信指标公式源码资金主图-源码
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
MA5:EXPMA(CLOSE,5) LINETHICK2;
MA10:EXPMA(CLOSE,14) LINETHICK2;
MA20:=EXPMA(CLOSE,20)NODRAW;
MA60:=EXPMA(CLOSE,60);
MA90:=EXPMA(CLOSE,90)NODRAW;
角
度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,COLORMAGENTA,NODRA W;
IF(角度>=-10,MA5,DRAWNULL),COLORRED LINETHICK2;
STICKLINE(CROSS(MA5,MA10),L,L-0.05,2,0),COLORWHITE; DRAWTEXT(CROSS(MA5,MA10),L-0.13,'牛') ,COLORWHITE;
STICKLINE(CROSS(MA5,MA20),L,L-0.05,2,0),COLOR00FFFF; DRAWTEXT(CROSS(MA5,MA20),L-0.13,'大牛') ,COLOR00FFFF; STICKLINE(CROSS(MA10,MA5),H,H+0.05,2,0),COLORBLUE; DRAWTEXT(CROSS(MA10,MA5),H+0.13,'走人') ,COLORGREEN;
超B:=L2_AMO(0,0)/10000.0;
大B:=L2_AMO(1,0)/10000.0;
中B:=L2_AMO(2,0)/10000.0;
:=L2_AMO(3,0)/10000.0;
超S:=-L2_AMO(0,1)/10000.0;
大S:=-L2_AMO(1,1)/10000.0;
中S:=-L2_AMO(2,1)/10000.0;
小S:=-L2_AMO(3,1)/10000.0;
中单:=(中B)+(中S);
小单:=(小B)+(小S);
主力净流入:"Z02.主力净流入#DAY" LINETHICK2,COLORYELLOW CIRCLEDOT NODRAW;
超大单:"Z02.超大单#DAY" LINETHICK2,COLORYELLOW CIRCLEDOT NODRAW; 大单:"Z02.大单#DAY" LINETHICK2,COLORYELLOW CIRCLEDOT NODRAW;
V5:=SUM(主力净流入,5) NODRAW;
V10:=SUM(主力净流入,10) NODRAW;
阳:=IF(主力净流入>0 ,CLOSE>OPEN,0)NODRAW;
阴:=IF(主力净流入<0 ,CLOSE STICKLINE(阳,CLOSE,OPEN,2,0) ,COLORRED; STICKLINE(阴,C,O,2,0),COLORGREEN; 阳1:=IF(主力净流入<0 ,CLOSE>OPEN,0)NODRAW; 阴1:=IF(主力净流入>0,CLOSE STICKLINE(阳1,CLOSE,OPEN,1.5,0) ,COLORYELLOW ; STICKLINE(阴1,C,O,1.5,0),COLORFF00FF; V20:=SUM(主力净流入,20) NODRAW; STICKLINE((CROSS(主力净流入,V5) AND 主力净流 入>0),L,L-0.09,3,0),COLORD9D919; DRAWTEXT((CROSS(主力净流入,V5) AND 主力净流入>0),L-0.13,'突破 ') ,COLORD9D919; 资金异动:=主力净流入>0 AND (主力净流入 /CAPITAL)*100>=0.05,COLORYELLOW,NODRAW; DRAWTEXT(C>REF(C,1) AND 资金异动,L-0.15,'异动'),COLORYELLOW; 主买A:="Z02.主买A#DAY" LINETHICK2,COLORYELLOW CIRCLEDOT NODRAW; 主卖A:="Z02.主卖A#DAY" LINETHICK2,COLORYELLOW CIRCLEDOT NODRAW; 主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED; 主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN; SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20)); 【量能饱和】:=IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW; 主力净买 量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW; 大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW; 主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW; 主力资金 差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLO RCYAN,NODRAW; DRAWRECTREL(100,0,90+CONST(主买*300/100),40,RGB(230,65,0)); DRAWRECTREL(100,60,90+CONST(主卖*300/100),100,RGB(0,104,0)); { DRAWRECTREL(100,120,390,160,RGB(0,0,100)); DRAWRECTREL(100,120,90+CONST(【量能饱和】 *300/100),160,RGB(250,104,0));}