最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信主图公式指标公式大全

    正文概述    2024-05-04 04:25:54  
    {通道主图} {*主图} {INPUT:N(20),M(30),P1(80),P2(100);} N:=20; M:=30; P11:=80; P22:=100; VAR1:=(C+H+O+L)/4; 卖出:XMA(VAR1,N)*(1+P11/1000),COLORFF00FF,LINETHICK2; 买入:XMA(VAR1,M)*(1-P22/1000),COLOR00FF00,LINETHICK2; 幅度:100*(卖出-买入)/买入,NODRAW; MA1:=MA(VAR1,3); STICKLINE(卖出 LOWAND卖出 HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN; STICKLINE(卖出 MIN(C,O)AND卖出 MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN; STICKLINE(卖出 LOWAND卖出 HIGH,卖出,HIGH,0,0),COLORGREEN; STICKLINE(卖出 LOW,OPEN,CLOSE,3,0),COLORGREEN; STICKLINE(卖出 LOW,HIGH,LOW,0,0),COLORGREEN; STICKLINE(买入 LOWAND买入 HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA; STICKLINE(买入 MIN(C,O)AND买入 MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA; STICKLINE(买入 LOWAND买入 HIGH,买入,LOW,0,0),COLORMAGENTA; STICKLINE(买入 HIGH,OPEN,CLOSE,3,0),COLORMAGENTA; STICKLINE(买入 HIGH,HIGH,LOW,0,0),COLORMAGENTA; DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'←买'),COLORYELLOW,LINETHICK2; DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'←卖'),COLORGREEN; DRAWICON(CROSS(HIGH,卖出),HIGH*1.02,12); {红财神布林线主图} BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; UPR:BBI+P*STD(BBI,N); DWN:BBI-P*STD(BBI,N); DRAWICON((ZIG(3,5) REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1) =REF(ZIG(3,5),2))AND(REF(ZIG(3,5),2) =REF(ZIG(3,5),3)),LOW*0.98,1); DRAWICON((ZIG(3,5) REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1) =REF(ZIG(3,5),2))AND(REF(ZIG(3,5),2) =REF(ZIG(3,5),3)),HIGH*1.01,2); {单线持股双线持币主图} 双线持币:HHV(MA(HIGH,2),2),COLORGREEN,LINETHICK2; 单线持股:LLV(MA(HIGH,2),1),COLORRED,LINETHICK2; DRAWICON(REF(双线持币,1) REF(单线持股,1)AND单线持股=双线持币,L-0.2,1); {K线主图} N:=5; S:=maX(C,O); X:=MIN(C,O); A:=X REF(S,1)ORS REF(X,1); XG:=HHV(X,N) =LLV(S,N)ANDCOUNT(A,N) Q:=BacKSET(XG,N); QD:=BArslAst(crOSS(Q,0.5)); G:=REFX(LLV(S,N),N-1); D:=REFX(HHV(X,N),N-1); HH:=REFX(HHV(H,N),N-1); LL:=REFX(LLV(L,N),N-1); DRAWLINE(QD=0,G,XG,LLV(S,N),0),COLORGREEN; DRAWLINE(QD=0,D,XG,HHV(X,N),0),COLORGREEN; DRAWLINE(QD=0ANDS REF(X,1),HH,XGANDREF(S REF(X,1),N-1),HHV(H,N),0),DOTLINE,COLORBLUE; DRAWLINE(QD=0ANDS REF(X,1),LL,XGANDREF(S REF(X,1),N-1),LLV(L,N),0),DOTLINE,COLORBLUE; STICKLINE(QD=0ANDS REF(X,1),HH,LL,0,-1),COLORBLUE; STICKLINE(XGANDREF(S REF(X,1),N-1),HHV(H,N),LLV(L,N),0,-1),COLORBLUE; DRAWLINE(QD=0ANDX REF(S,1),HH,XGANDREF(X REF(S,1),N-1),HHV(H,N),0),DOTLINE,COLORMAGENTA; DRAWLINE(QD=0ANDX REF(S,1),LL,XGANDREF(X REF(S,1),N-1),LLV(L,N),0),DOTLINE,COLORMAGENTA; STICKLINE(QD=0ANDX REF(S,1),HH,LL,0,-1),COLORMAGENTA; STICKLINE(XGANDREF(X REF(S,1),N-1),HHV(H,N),LLV(L,N),0,-1),COLORMAGENTA; 公式: N:=5; S:=MAX(C,O); X:=MIN(C,O); A:=X REF(S,1)ORS REF(X,1); HHV(X,N) =LLV(S,N)ANDCOUNT(A,N)
    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信主图公式指标公式大全 加入收藏