张程 发表于 2016-3-27 22:52

3121主图公式

STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;
STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.0,0.05,0,HYBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.0,0,0,DYBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.0,0.15,0,GNBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.0,0.20,0,FGBLOCK),COLORMAGENTA;

{跳空}
STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;
STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;
C_: CONST(C),COLORLIRED,POINTDOT;{现价线}
MA5:=MA(C,5);
MA5角度: ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,NODRAW;
DRAWKLINE(H,O,L,C);{重绘K线}
RC1:=REF(C,1);{178448-WEN98编写}
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;
假阴:=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线画中点线};

DYNAINFO(7),COLORBBBBBB,LINETHICK1;{现价}
DYNAINFO(6),COLOR22FF22,DOTLINE;{最低}
DYNAINFO(5),COLORC4F18F,DOTLINE;{最高}

半分位:
(O+C)/2,NODRAW;
上三分之一位:(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),NODRAW;
下三分之一位:(MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW;

醉亨人生 发表于 2021-7-27 05:07

STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;
STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.0,0.05,0,HYBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.0,0,0,DYBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.0,0.15,0,GNBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.0,0.20,0,FGBLOCK),COLORMAGENTA;

{跳空}
STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;
STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;
C_: CONST(C),COLORLIRED,POINTDOT;{现价线}
MA5:=MA(C,5);
MA5角度: ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,NODRAW;
DRAWKLINE(H,O,L,C);{重绘K线}
RC1:=REF(C,1);{178448-WEN98编写}
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;
假阴:=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线画中点线};

DYNAINFO(7),COLORBBBBBB,LINETHICK1;{现价}
DYNAINFO(6),COLOR22FF22,DOTLINE;{最低}
DYNAINFO(5),COLORC4F18F,DOTLINE;{最高}

半分位:
(O+C)/2,NODRAW;
上三分之一位MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),NODRAW;
下三分之一位MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW;

my2016 发表于 2023-2-25 13:02

STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;
STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.0,0.05,0,HYBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.0,0,0,DYBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.0,0.15,0,GNBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.0,0.20,0,FGBLOCK),COLORMAGENTA;

{跳空}
STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;
STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;
C_: CONST(C),COLORLIRED,POINTDOT;{现价线}
MA5:=MA(C,5);
MA5角度: ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,NODRAW;
DRAWKLINE(H,O,L,C);{重绘K线}
RC1:=REF(C,1);{178448-WEN98编写}
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;
假阴:=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线画中点线};

DYNAINFO(7),COLORBBBBBB,LINETHICK1;{现价}
DYNAINFO(6),COLOR22FF22,DOTLINE;{最低}
DYNAINFO(5),COLORC4F18F,DOTLINE;{最高}

半分位:
(O+C)/2,NODRAW;
上三分之一位:(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),NODRAW;
下三分之一位:(MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW;

bw30he 发表于 2017-1-2 02:05

半分位: (O+C)/2,NODRAW; 上三分之一位MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),NODRAW; 下三分之一位MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW;错误句 :   详细信息 : 单词最大字符数不得超过 16 个错误起始位置 : 2010 ; 长度: 1

艾窝窝 发表于 2016-4-5 14:59

怎么通不过啊,菜鸟不会弄啊
错误句 :
详细信息 : 单词最大字符数不得超过 16 个
错误起始位置 : 2010 ; 长度: 1

张程 发表于 2016-4-6 20:54

这是通达信的主图

星原 发表于 2016-4-7 23:19

我通达信的也没通过

南枝春早 发表于 2016-4-13 07:16

能体现出三一二一位置吗

乙乙 发表于 2016-4-14 17:31


怎么通不过啊

振宇王 发表于 2016-5-13 10:26

感谢楼主的分享

阳光正好 发表于 2016-5-13 11:32

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

宋哥 发表于 2016-9-6 14:35

量学3121好公式,学习了。

井冈竹 发表于 2016-9-6 17:32

学习学习学习学习学习学习学习学习

龙圣圣 发表于 2016-10-22 06:49

没通过通过通过通过

陈跃俊 发表于 2016-10-22 16:49

感谢师兄分享

ljxlxq 发表于 2016-11-15 15:40

谢谢楼主分享

dnjgyp 发表于 2016-11-15 15:57

怎么通不过啊

新宇宙 发表于 2016-11-15 17:33

..........................
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: 3121主图公式