lxw1
发表于 2016-12-19 12:31
多谢分享。。。。。。。。。。。。
王缘
发表于 2016-12-21 08:20
学习,谢谢楼主分享
zs123
发表于 2017-1-1 07:40
谢谢老师分享
liaoge
发表于 2017-1-1 07:53
谢谢楼主分享!
坐看云起时119
发表于 2017-1-1 19:04
谢谢。。。分享
zhuang751
发表于 2017-1-5 15:21
FL:MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1)),COLORBLUE;
FS:MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),COLORGREEN;
趋势:IF(MA(CLOSE,17)<FS,FS,MA(CLOSE,17)),COLORRED;
LDM4:=CONST(HHV(REF(HIGH,1),240));{240日前最高价}
LDM5:=CONST(LLV(REF(LOW,1),240));{240日前最低价}
LDM6:=LDM4-LDM5;{240日前最高最低价之间差值}
LDM7:=LOW-LDM6*0.03;
LDM8:=HIGH+LDM6*0.03;
LDM9:=CLOSE>500;{大盘指数}
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:=120;
LDM20:=LDM18<=LDM19;{上市天数小于等于精准计数周期}
LDM21:=LOW;
{选择画线位置低开高收}
LDM22:=IF(LDM12=0,LDM21,REF(LDM12,LDM12));
{如果基准前N天为0,则按LDM21取当天值,否则取基准前N天的值}
基准价:IF(LDM20,CONST(LDM22),DRAWNULL),DOTLINE,COLORLIGRAY;
{如果总交易天数小于精准计算周期,则按LDM22值画虚直线,否则不画精准线}
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;
{满足LDM25或LDM26或LDM27或LDM28及上市天数小于等于精准计数周期及上市天数不等于
基准前N天加一}
LDM30:=COUNT(LDM29,LDM19);{在精准周期LDM19内统计满足LDM29条件的周期数}
精准点个数:IF(LDM30>0,LDM30+1,0),NODRAW,COLORMAGENTA;
{峰顶谷底标识};
TY:=C;
N:=13;
A1:=REF(TY,N)=HHV(TY,2*N+1);
B1:=FILTER(A1,N);
C1:=BACKSET(B1,N+1);
HD:=FILTER(C1,N);
A2:=REF(TY,N)=LLV(TY,2*N+1);
B2:=FILTER(A2,N);
C3:=BACKSET(B2,N+1);
LD:=FILTER(C3,N);
前期低位:=REF(C,BARSLAST(LD));
前期高位:=REF(C,BARSLAST(HD));
STICKLINE(C,前期高位,前期高位,8,0),COLOR00FF00;
STICKLINE(C,前期低位,前期低位,8,0),COLORRED;
{太极左点0,1000000,0}{太极右点0,1000000,0}
{太极左日期0,1000000,0}{太极右日期0,1000000,0}
三一:H-(H-L)*0.333,NODRAW;
二一:H-(H-L)*0.5,NODRAW;
三二:H-(H-L)*0.666,NODRAW;
实三一:IF(C>O,(C-(C-O)/3),(O-(O-C)/3)),COLORWHITE,NODRAW;
实体腰线:O+(C-O)*0.5,NODRAW;
实三二:IF(C>O,(O+(C-O)/3),(C+(O-C)/3)),COLORWHITE,NODRAW;
三日均价:=MA(C,3),NODRAW;
三日后收:=REFX(三日均价,3),NODRAW;
高于实顶:C<三日后收,NODRAW;
开高三日收:= O<REFX(C,1) AND O<REFX(C,2) AND O<REFX(C,3),NODRAW;
涨幅:=(C-REF(C,1))/REF(C,1)*100>2,NODRAW;
一字板:=(C=O AND C=H AND C=L);
黄金柱:=高于实顶 AND 开高三日收 AND 涨幅 AND 一字板=0,NODRAW;
FF:=INTPART(DATE),NODRAW;
时间左:=(FF-1000000)-太极左日期=0,NODRAW;
时间右:=(FF-1000000)-太极右日期=0,NODRAW;
校正左:= 太极左点=C OR 太极左点=O OR 太极左点=H OR 太极左点=L ;
校正右:=(太极右点=C OR 太极右点=O OR 太极右点=H OR 太极右点=L);
斜衡线:DRAWLINE(时间左 AND 校正左,太极左点,
时间右 AND 校正右,太极右点,1)COLORLIBLUE;
时间左至今天:=BARSSINCE(时间左)-1,NODRAW;
斜衡角度: ATAN(((REF(斜衡线,时间左至今天)/太极左点)-1)*100)*180/3.1416,COLORWHITE,NODRAW;
倍数:=1.9;
倍量:= VOL>=REF(V,1)*倍数 AND (IF(C<O,C>REF(C,1),1)),NODRAW;
DRAWICON(倍量,L*0.98,39),NODRAW;
{多彩K线-主图公式, 显示大阳\\大阴\\涨停\\跌停\\假阴\\假阳\\跳空\\大K线中点,适用于通达信 }
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);{在屏幕左上角显示所属行业板块}
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);{在屏幕左上角显示所属地域板块}
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);{在屏幕左上角显示所属概念板块}
{跳空}
STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;
STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;
DRAWKLINE(H,O,L,C);{重绘K线}
RC1:=REF(C,1);
CS:=IF(C>=1,10000,100000);
C涨停10:=1.10*RC1-49/CS;{考虑到4舍5入}
C涨停5 :=1.05*RC1-49/CS;
C跌停10:=0.90*RC1+51/CS;
C跌停5 :=0.95*RC1+51/CS;
ST:=NAMELIKE('S') OR NAMELIKE('*S');
涨停:= IF(ST, C>=C涨停5, C>=C涨停10);
跌停:= IF(ST, C<=C跌停5, C<=C跌停10);
盘中涨停:=IF(ST, H>=C涨停5, H>=C涨停10);
盘中跌停:=IF(ST, L<=C跌停5, L<=C跌停10);
STICKLINE(盘中涨停,H,MAX(C,O),0,0),COLORMAGENTA;{涨停后回落}
STICKLINE(盘中跌停,L,MIN(C,O),0,0),COLORLICYAN;{跌停后回升}
大阳线:=C>O AND (C>=C涨停5 OR C>(1.05*O-51/CS) ) OR (C>1000 AND C>RC1*1.024);
STICKLINE(大阳线,O,C,1,0),COLOR0000BB;
大阴线:=C<O AND (C<=C跌停5 OR C<(0.95*O+49/CS) ) OR (C>1000 AND C<RC1*0.976);
STICKLINE(大阴线,O,C,1,0),COLORLIGREEN;
STICKLINE(涨停,O,C,1,0),COLORMAGENTA;
STICKLINE(跌停,O,C,1,0),COLORLICYAN;
STICKLINE(黄金柱,O*1.01,C*0.99,0,0),COLORWHITE;{画黄金柱};
假阴:=C<O AND C>REF(C,1);
STICKLINE(假阴,O,C,0,0),COLORRED;{假阴柱};
假阳:=C>O AND C<REF(C,1);
STICKLINE(假阳,O,C,0,0),COLORGREEN;{假阳柱};
大盘TJ:=PERIOD=5 AND NAMELIKE('上证指数')
AND (ABS((C-REF(C,1)))/REF(C,1)>=0.025 OR ABS(C-O)>=60);
STICKLINE(大盘TJ,(H+L)/2,(H+L)/2,2,0),COLORYELLOW;{显示大盘日线的60点大K线中值};
STICKLINE((大阳线 OR 大阴线 OR 涨停 OR 跌停)
AND BETWEEN(C,1,500),L+(H-L)/2,L+(H-L)/2,1,0),COLORYELLOW;{大K线画中点线};
STICKLINE((大阳线 OR 大阴线 OR 涨停 OR 跌停)
AND BETWEEN(C,1,500),实体腰线,实体腰线,1,0),COLORBLUE;{大K线画腰线};
zhang4633
发表于 2017-1-6 22:34
谢谢楼主分享。。。。。
李金晶
发表于 2017-1-19 21:36
谢谢楼主的分享
竹笋园
发表于 2017-1-31 12:52
谢谢分享辛苦了
sewip
发表于 2017-1-31 16:14
谢谢分享!!!!
gf66wj88
发表于 2017-2-1 07:12
小宁
发表于 2017-2-1 21:36
ddddddddddddddddddddddddddddddd
夏天来临
发表于 2017-2-3 16:06
谢谢分享,向老师学习
双嘧达默
发表于 2017-2-4 06:30
谢谢分享,向老师学习
东升123
发表于 2017-2-4 07:44
五量:=VOL>=REF(V,1)*5;
拾量:=VOL>=REF(V,1)*10;
STICKLINE(五量,C,O,3,0),COLORFF0080;
STICKLINE(拾量,C,O,2,0),COLORFF00FF;
TT:=HIGH;
本帖隐藏的内容
斜线RAWLINE(五量,TT,五量,TT,1),COLORCYAN,LINETHICK1;
DRAWTEXT_FIX(C>0,0,0,0,GNBLOCK);
五量1:=VOL>=REF(V,2)*5 AND VOL>REF(V,1);
拾量1:=VOL>=REF(V,2)*10 AND VOL>REF(V,1);
STICKLINE(五量1,C,O,3,0),COLORFFFFFF;
STICKLINE(拾量1,C,O,2,0),COLOR00FFFF;
倍至四量:=VOL>=REF(V,1)*2 AND VOL<=REF(V,1)*4;
STICKLINE(倍至四量,C,O,1,0),COLOR400080;
斜线1RAWLINE(倍至四量,TT,倍至四量,TT,1),COLOR408080,LINETHICK1;
上次高:=REF(H,HHVBARS(H,21));
第二次高:=H=上次高;
突破高量:=REF(V,HHVBARS(H,21));
缩量突破:=第二次高 AND V<REF(突破高量,1);
TJ:=BARSLAST(缩量突破);
缩量突破柱:=REF(C,TJ);
STICKLINE(缩量突破柱,缩量突破柱,缩量突破柱,1,1),COLOR008080;
页:
1
2
3
4
[5]
6
7
8
9
10
11