AD15147086 发表于 2016-7-10 11:46

我自已汇编的通达信公式。

   这是自已根据黑马老师的七大量柱汇编的自已用的公式,请各位前辈和同道指教,谢谢!


现价:DRAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3)DOTLINE,COLOR545454;
VARR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

DRAWKLINE(H,O,L,C);
TJ:=VOL>=REF(V,1)*1.95 AND C>REF(C,1)*1.01;
STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORYELLOW;
倍量:VOL>=REF(V,1)*1.9 AND C>=O,NODRAW;
DRAWTEXT(倍量,LOW*0.99,''),COLORYELLOW;
STICKLINE(倍量,OPEN,CLOSE,0.5,0),COLORYELLOW;
K1:=SUMBARS(倍量,1);
STICKLINE(K1,REF(O,K1-1),REF(O,K1-1),10,0),COLORYELLOW;
STICKLINE(K1,REF(C,K1-1),REF(C,K1-1),10,0),COLORYELLOW;
价涨不破:=LLV(L,3)>=REF(L,3);
三日量缩:=HHV(VOL,3)<REF(VOL,3);
梯量柱:=VOL>REF(VOL,1) AND REF(VOL,1)>REF(VOL,2);
梯黄金柱:=REF(梯量柱,3) AND 价涨不破 AND 三日量缩;
STICKLINE(梯量柱,OPEN,CLOSE,0.7,0),COLORLIRED;
STICKLINE(梯黄金柱,LLV(L,3),LLV(L,3),30,1),COLORD9D919;
缩倍柱:=REF(V,1)>=V*1.9 AND C/REF(C,1)>1.005;
STICKLINE(缩倍柱,C,O,0.5,0),COLORGREEN;
缩倍柱1:=REF(V,1)>=V*1.9 AND C/REF(C,1)<=1;
STICKLINE(缩倍柱1,C,O,0.5,0),COLORGREEN;
高量柱:=C/REF(C,1)>=1.03 AND VOL=HHV(VOL,35);
STICKLINE(高量柱,OPEN,CLOSE,0.7,0),COLORRED;

VAR2:=1*AMOUNT;
月天量:=VAR2=HHV(VAR2,20);
季天量:=VAR2=HHV(VAR2,60);
百天量:=VAR2=HHV(VAR2,100);
年天量:=VAR2=HHV(VAR2,240);
天量: (季天量 OR 百天量 OR 年天量),NODRAW;
DRAWTEXT(天量,LOW*0.95,''),COLORRED;
STICKLINE(天量,OPEN,CLOSE,0.5,0),COLORRED;
K11:=SUMBARS(天量,1);
STICKLINE(K11,REF(C,K11-1),REF(C,K11-1),10,0),COLORRED;

双阴出货:=FILTER(COUNT(C<O,2)=2 AND L<REF(C,1),5);
DRAWTEXT(双阴出货,H,'!'),COLORGREEN;

A:=ABS(MIN(C,O)-L)/ABS(MAX(C,O)-MIN(C,O))>1.7 AND C>O;
B:=ABS(MIN(C,O)-L)/ABS(MAX(C,O)-MIN(C,O))>1.7 AND C<O;
STICKLINE(A,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(B,OPEN,CLOSE,3,0),COLOR00FF00;

STICKLINE(CLOSE>OPEN,(CLOSE+OPEN)/2,(CLOSE+OPEN)/2,2,1),COLORRED;
昨中价位:REF(OPEN,1)+REF(CLOSE,1)/2,COLORYELLOW,NODRAW;
上三分之一位: (MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),NODRAW;
下三分之一位: (MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW;

MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
ZJ:=AMOUNT/10000;{资金}
TM:=V-MA(V,10);{量填满}
一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;
DRAWTEXT(一穿三,L-0.012,''),COLORFF00FF;
STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF;

TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
前期高位:REF(C,BARSLAST(HD)),COLORD9D919,POINTDOT;
STICKLINE(C,前期高位,前期高位,8,0),COLORD9D919;
{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;
STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;};
前期低位:REF(LOW,BARSLAST(LD)),COLORFF00FF,POINTDOT;
STICKLINE(CLOSE,前期高位,前期高位,10,0),COLORGREEN;
STICKLINE(CLOSE,前期低位,前期低位,10,0),COLORGREEN;

顶:=MAX(C,O);底:=MIN(C,O);
峰:=顶=REFX(HHV(顶,5),2);
谷:=底=REFX(LLV(底,5),2);
超跌:=C/HHV(顶,20)<0.7;
刹车:=谷 AND 超跌;
DRAWTEXT(刹车,2*L-顶,'刹车'),COLORFF00FF;
凹间峰:=COUNT(刹车,8)>0 AND 峰;
DRAWTEXT(凹间峰,2*H-底,''),COLORFF00FF;
凹间峰顶:=REF(顶,BARSLAST(凹间峰));
换档:=COUNT(凹间峰,8)>0 AND 谷;
DRAWTEXT(换档,2*L-H,'换档'),COLORGREEN;
上车:=COUNT(换档,8)>0 AND COUNT(C>凹间峰顶,BARSLAST(凹间峰))=1;
DRAWTEXT(上车,凹间峰顶,'←←←上车'),COLORFF00FF;
DRAWNUMBER(COUNT(凹间峰,2)=1 AND COUNT(凹间峰,1)=0,凹间峰顶,凹间峰顶),COLORBLUE;
DRAWTEXT(C<凹间峰顶 AND COUNT(C>凹间峰顶,BARSLAST(凹间峰))<1,凹间峰顶,''),COLORGREEN;

买线:=EMA(C,4);
卖线:=EMA(SLOPE(C,20)*10+C,35);
DRAWTEXT(CROSS(买线,卖线),LOW*1.00,'←买'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(卖线,买线),HIGH*1.01,''),COLORGREEN;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(90,RSI) , HIGH*1.01,''),COLOR00FF00 ;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+
      13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7
      *REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;
ZZ:=(O+H+L)/3;
YC:=(H+L)/2;
YCHJX:=(EMA(ZZ,4))+(YC-REF(ZZ,3))/4;
今日买点:EMA(ZZ,3),COLORYELLOW,LINETHICK0;
明日买点:YCHJX,LINETHICK0;
昨测今日买点:REF(YCHJX,1),LINETHICK0;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),''),COLOR00FF00;
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'←拐点买'),COLOR00FFFF;

       请各位辈、同道、大侠指教,谢谢!

梦里故乡 发表于 2016-7-10 14:40

现价RAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3)DOTLINE,COLOR545454;
VARR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

DRAWKLINE(H,O,L,C);
TJ:=VOL>=REF(V,1)*1.95 AND C>REF(C,1)*1.01;
STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORYELLOW;
倍量:VOL>=REF(V,1)*1.9 AND C>=O,NODRAW;
DRAWTEXT(倍量,LOW*0.99,''),COLORYELLOW;
STICKLINE(倍量,OPEN,CLOSE,0.5,0),COLORYELLOW;
K1:=SUMBARS(倍量,1);
STICKLINE(K1,REF(O,K1-1),REF(O,K1-1),10,0),COLORYELLOW;
STICKLINE(K1,REF(C,K1-1),REF(C,K1-1),10,0),COLORYELLOW;
价涨不破:=LLV(L,3)>=REF(L,3);
三日量缩:=HHV(VOL,3)<REF(VOL,3);
梯量柱:=VOL>REF(VOL,1) AND REF(VOL,1)>REF(VOL,2);
梯黄金柱:=REF(梯量柱,3) AND 价涨不破 AND 三日量缩;
STICKLINE(梯量柱,OPEN,CLOSE,0.7,0),COLORLIRED;
STICKLINE(梯黄金柱,LLV(L,3),LLV(L,3),30,1),COLORD9D919;
缩倍柱:=REF(V,1)>=V*1.9 AND C/REF(C,1)>1.005;
STICKLINE(缩倍柱,C,O,0.5,0),COLORGREEN;
缩倍柱1:=REF(V,1)>=V*1.9 AND C/REF(C,1)<=1;
STICKLINE(缩倍柱1,C,O,0.5,0),COLORGREEN;
高量柱:=C/REF(C,1)>=1.03 AND VOL=HHV(VOL,35);
STICKLINE(高量柱,OPEN,CLOSE,0.7,0),COLORRED;

VAR2:=1*AMOUNT;
月天量:=VAR2=HHV(VAR2,20);
季天量:=VAR2=HHV(VAR2,60);
百天量:=VAR2=HHV(VAR2,100);
年天量:=VAR2=HHV(VAR2,240);
天量: (季天量 OR 百天量 OR 年天量),NODRAW;
DRAWTEXT(天量,LOW*0.95,''),COLORRED;
STICKLINE(天量,OPEN,CLOSE,0.5,0),COLORRED;
K11:=SUMBARS(天量,1);
STICKLINE(K11,REF(C,K11-1),REF(C,K11-1),10,0),COLORRED;

双阴出货:=FILTER(COUNT(C<O,2)=2 AND L<REF(C,1),5);
DRAWTEXT(双阴出货,H,'!'),COLORGREEN;

A:=ABS(MIN(C,O)-L)/ABS(MAX(C,O)-MIN(C,O))>1.7 AND C>O;
B:=ABS(MIN(C,O)-L)/ABS(MAX(C,O)-MIN(C,O))>1.7 AND C<O;
STICKLINE(A,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(B,OPEN,CLOSE,3,0),COLOR00FF00;

STICKLINE(CLOSE>OPEN,(CLOSE+OPEN)/2,(CLOSE+OPEN)/2,2,1),COLORRED;
昨中价位:REF(OPEN,1)+REF(CLOSE,1)/2,COLORYELLOW,NODRAW;
上三分之一位: (MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),NODRAW;
下三分之一位: (MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW;

MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
ZJ:=AMOUNT/10000;{资金}
TM:=V-MA(V,10);{量填满}
一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;
DRAWTEXT(一穿三,L-0.012,''),COLORFF00FF;
STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF;

TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
前期高位:REF(C,BARSLAST(HD)),COLORD9D919,POINTDOT;
STICKLINE(C,前期高位,前期高位,8,0),COLORD9D919;
{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;
STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;};
前期低位:REF(LOW,BARSLAST(LD)),COLORFF00FF,POINTDOT;
STICKLINE(CLOSE,前期高位,前期高位,10,0),COLORGREEN;
STICKLINE(CLOSE,前期低位,前期低位,10,0),COLORGREEN;

顶:=MAX(C,O);底:=MIN(C,O);
峰:=顶=REFX(HHV(顶,5),2);
谷:=底=REFX(LLV(底,5),2);
超跌:=C/HHV(顶,20)<0.7;
刹车:=谷 AND 超跌;
DRAWTEXT(刹车,2*L-顶,'刹车'),COLORFF00FF;
凹间峰:=COUNT(刹车,8)>0 AND 峰;
DRAWTEXT(凹间峰,2*H-底,''),COLORFF00FF;
凹间峰顶:=REF(顶,BARSLAST(凹间峰));
换档:=COUNT(凹间峰,8)>0 AND 谷;
DRAWTEXT(换档,2*L-H,'换档'),COLORGREEN;
上车:=COUNT(换档,8)>0 AND COUNT(C>凹间峰顶,BARSLAST(凹间峰))=1;
DRAWTEXT(上车,凹间峰顶,'←←←上车'),COLORFF00FF;
DRAWNUMBER(COUNT(凹间峰,2)=1 AND COUNT(凹间峰,1)=0,凹间峰顶,凹间峰顶),COLORBLUE;
DRAWTEXT(C<凹间峰顶 AND COUNT(C>凹间峰顶,BARSLAST(凹间峰))<1,凹间峰顶,''),COLORGREEN;

买线:=EMA(C,4);
卖线:=EMA(SLOPE(C,20)*10+C,35);
DRAWTEXT(CROSS(买线,卖线),LOW*1.00,'←买'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(卖线,买线),HIGH*1.01,''),COLORGREEN;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(90,RSI) , HIGH*1.01,''),COLOR00FF00 ;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+
      13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7
      *REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;
ZZ:=(O+H+L)/3;
YC:=(H+L)/2;
YCHJX:=(EMA(ZZ,4))+(YC-REF(ZZ,3))/4;
今日买点:EMA(ZZ,3),COLORYELLOW,LINETHICK0;
明日买点:YCHJX,LINETHICK0;
昨测今日买点:REF(YCHJX,1),LINETHICK0;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),''),COLOR00FF00;
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'←拐点买'),COLOR00FFFF;

Hano 发表于 2020-3-16 21:24

当前公式 : 七大量柱汇编 (专家系统公式)
错误句 :
现价RAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3)DOTLINE,COLOR545454
详细信息 : 不是画线指标公式,不能指定画线类型!
错误起始位置 : 0 ; 长度: 0

joeyang 发表于 2023-3-24 20:43

梦里故乡 发表于 2016-7-10 14:40
现价RAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3)DOTLINE,COLOR545454;
VARR1:=VO ...

要用未来函数

gxyl 发表于 2016-7-10 12:16

谢楼主的分享!学习了!

526278132 发表于 2016-7-10 12:19

*************************

浙王老吉 发表于 2016-7-10 12:21


谢谢楼主分享!

开创电脑 发表于 2016-7-10 12:21

谢谢老师指导 ,学习中~

宽阔大道 发表于 2016-7-10 12:34

谢谢楼主分享

明天辉煌 发表于 2016-7-10 12:43

谢谢分享!!!!!!

ybsd147369 发表于 2016-7-10 12:48

谢谢楼主分享

天山花开 发表于 2016-7-10 13:23


谢谢楼主分享

阳光正好 发表于 2016-7-10 13:24

谢谢分享!!!!!!!!!!!!!!!

p467327843 发表于 2016-7-10 14:58

论坛有你更精彩,谢谢分享。

宽阔大道 发表于 2016-7-10 17:50

谢谢老师分享

宽阔大道 发表于 2016-7-10 17:51

谢谢楼主分享

宽阔大道 发表于 2016-7-10 18:04

谢谢老师分享
页: [1] 2 3 4 5
查看完整版本: 我自已汇编的通达信公式。