技术指标 双龙腾飞 荆州量学金融终端主图十四 通达信指标 源码 贴图
LDM4:=CONST(HHV(REF(HIGH,1),240));LDM5:=CONST(LLV(REF(LOW,1),240));
LDM6:=LDM4-LDM5;
LDM7:=LOW-LDM6*0.03;
LDM8:=HIGH+LDM6*0.03;
LDM9:=CLOSE
LDM10:=MAX(CLOSE,OPEN);
LDM11:=MIN(CLOSE,OPEN);
LDM12:=0;
LDM13:=1;
LDM14:=IF(LDM9,HIGH,LDM10);
LDM15:=IF(LDM9,LOW,LDM11);
LDM16:=IF(CLOSE OPEN,IF(LDM13=0,LOW,LDM15),IF(LDM13=0,HIGH,LDM14));
LDM17:=2/1000;
LDM18:=CURRBARSCOUNT;
LDM19:=400;
LDM20:=LDM18 =LDM19;
LDM21:=LOW;
LDM22:=IF(LDM12=0,LDM21,REF(LDM12,LDM12));
基准价:IF(LDM20,CONST(LDM22),DRAWNULL),DOTLINE,COLORRED;
LDM23:=基准价;
LDM24:=LDM23*LDM17;
LDM25:=ABS(LOW-LDM23) =LDM24;
LDM26:=ABS(OPEN-LDM23) =LDM24;
LDM27:=ABS(CLOSE-LDM23) =LDM24;
LDM28:=ABS(HIGH-LDM23) =LDM24;
LDM29:=LDM25 OR LDM26 OR LDM27 OR LDM28 AND LDM20 AND LDM18!=1;
LDM30:=COUNT(LDM29,LDM19);
精准点个数:IF(LDM30 0,LDM30+1,0),NODRAW,COLORYELLOW;
{假阳真阴}
均价:=AMOUNT/VOL/100;
假阳:=C O AND REF(C,1) 均价 AND C 均价 AND C 300 ;
STICKLINE(假阳,O,C,1,0)COLORLICYAN;
标志阴:=REF(C,1)/C 1.04;
STICKLINE(标志阴,O,C,1,0)COLORWHITE;
{假阴真阳}
假阴:=O C AND 均价 REF(C,1) AND C MA(C,5);
STICKLINE(假阴,O,C,1,0),COLORRED;
倍量柱:=VOL =REF(V,1)*1.9 AND C
DRAWTEXT(倍量柱 ,L*0.97,'倍'),COLORWHITE;
缩倍:=REF(V,1)*0.55 =V AND NOT(O=C AND H=O) ;
DRAWTEXT(缩倍 ,L*0.98,'2S'),COLORMAGENTA;
{涨跌停价格显示};
AA:=(C-REF(C,1))/REF(C,1)*100;
ZS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA =4.945;
DS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA =-4.945;
涨停价:IF(ZS,REF(C,1)*1.05,REF(C,1)*1.1),NODRAW,COLORRED;
跌停价:IF(DS,REF(C,1)*0.95,REF(C,1)*0.9),NODRAW,COLORGREEN;
T1:=CONST(HHVBARS(V,30));
阻力:=IF(CURRBARSCOUNT =30+7,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL);
遇阻:IF(CURRBARSCOUNT=T1+1,阻力,DRAWNULL),CROSSDOT;
AB:DRAWLINE(HIGH =HHV(HIGH,20),HIGH,LOW =LLV(LOW,5),HHV(HIGH,5),1),COLORWHITE,LINETHICK2;
买:=CROSS(C,AB) AND C/AB 1.01 ;
DRAWICON(买,L*0.99,1);
T11:=CONST(LLVBARS(L,10));
T11H:=CONST(REF(H,T11));
CC:=CONST(CURRBARSCOUNT);
T12:=CONST(BARSLAST(CURRBARSCOUNT CC+T11 AND H T11H));
T12H:=CONST(REF(H,T12));
T13:=CONST(BARSLAST(CURRBARSCOUNT CC+T12 AND H T12H));
T13H:=CONST(REF(H,T13));
上线买1:DRAWLINE(CURRBARSCOUNT=T13+1,T13H,ISLASTBAR,T13H,1) DOTLINE,COLORWHITE;
{涨跌停K线标识};
ST:=NAMELIKE('ST')=1 OR NAMELIKE('*ST')=1 OR NAMELIKE('SST')=1
OR NAMELIKE('S*ST')=1 OR NAMELIKE('S ST')=1;
涨停:=C=ZTPRICE(REF(CLOSE,1),0.1) OR (C/REF(C,1) 1.0495 AND ST);
跌停:=REF(C,1)/C 1.0995 OR (REF(C,1)/C 1.0495 AND ST);
STICKLINE(涨停,C,O,3,0),COLORMAGENTA;
STICKLINE(跌停,C,O,3,0),COLORGREEN;
DRAWICON(H=ZTPRICE(REF(CLOSE,1),0.1) AND C!=H,L*0.965,15);
筹码95:=IF(显示筹码带=1,COST(95),0);
筹码85:=IF(显示筹码带=1,COST(85),0);
{近期高位}
AB1:=REF(C,10)=HHV(C,2*10+1); BB1:=FILTER(AB1,10);
CB1:=BACKSET(BB1,10+1); HBD:=FILTER(CB1,10);
近期压力:REF(C,BARSLAST(HBD)) NODRAW,COLORLIGREEN;
STICKLINE(C,近期压力,近期压力,10,0),COLORLIGREEN,LINETHICK2;
STICKLINE(CROSS(C,近期压力) AND C 筹码95 AND NOT(H=L) AND C O,O,C*0.96,3,0),COLORYELLOW;
DRAWICON(CROSS(C,近期压力) AND C 筹码95 AND NOT(H=L) AND C O, C*0.99,23);
{长期高位}
AS1:=REF(C,60)=HHV(C,2*60+1); AS2:=FILTER(AS1,60);
AS3:=BACKSET(AS2,60+1); AS4:=FILTER(AS3,60);
长期压力:REF(C,BARSLAST(AS4)) NODRAW COLORRED;
STICKLINE(C,长期压力,长期压力,10,0),COLORLIGREEN,LINETHICK2;
STICKLINE(CROSS(C,长期压力) AND C 筹码95 AND NOT(H=L) AND C O,O,C*0.96,3,0)COLORYELLOW;
DRAWICON(CROSS(C,长期压力) AND C 筹码95 AND NOT(H=L) AND C O, C*0.99,23);
{箱体}
跌幅:=(C-REF(C,1))/REF(C,1)*100 -4.94;
箱顶:DRAWLINE(跌幅,O,REF(跌幅,1),REF(O,1),1),COLORLIGREEN,LINETHICK2;
STICKLINE(CROSS(C,箱顶) AND C 筹码95 AND NOT(H=L) AND C O,O,C*0.96,3,0),COLORLIGREEN;
DRAWICON(CROSS(C,箱顶) AND C 筹码95 AND NOT(H=L) AND C O, C*0.99,23);
STICKLINE(C/REF(C,1) =1.04 OR C/REF(C,1) =0.96,(C+O)/2,(C+O)/2,2,1),COLORLIBLUE;{中分线};
STICKLINE(C/REF(C,1) =1.04 OR C/REF(C,1) =0.96,(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),2,1),COLORLIBLUE;{上三一线};
STICKLINE(C/REF(C,1) =1.04 OR C/REF(C,1) =0.96,(MAX(O,C)-MIN(O,C))/3+MIN(O,C),(MAX(O,C)-MIN(O,C))/3+MIN(O,C),2,1),COLORLIBLUE;{下三一线};