通达信贴心参谋副图指标 (TNE下载 源码 贴图 个股动态 大盘走势)
副图指标源码:
DRAWRECTREL(0,0,1000,1000,RGB(50,78,50));
DRAWRECTREL(0,80,973,920,RGB(50,100,140));
GD:=CONST(HHV('999999$H',100)),NODRAW;{高点}
DD:=CONST(LLV('999999$L',100)),NODRAW;{低点}
{=======}
MMM:=REFDATE(HHV('999999$H',233),DATE);
NNN:=REFDATE(LLV('999999$L',233),DATE);
DPX:=EMA(INDEXC,21);
JJ:=(INDEXO+INDEXH+INDEXC)/3;
参:=GD-DD,NODRAW;
高:=GD-(参*0.095),NODRAW;
低:=DD+(参*0.095),NODRAW;
STICKLINE(JJ<DPX,高,低,4,0),COLOR333333;
{上证指数K线副图指标}
DRAWKLINE('999999$H','999999$O','999999$L','999999$C');
{====}
DRAWRECTREL(0,0,408,1000,RGB(50,78,50));
DRAWRECTREL(27,50,403,950,RGB(50,78,50));
DRAWRECTREL(0,0,22,1000,RGB(128,58,0));
DRAWRECTREL(408,0,430,1000,RGB(128,58,0));
DRAWRECTREL(978,0,1000,1000,RGB(128,58,0));
{=======}
DRAWTEXT_FIX(C>O,0.006,0.075,0,'个 '),COLORWHITE;{白}
DRAWTEXT_FIX(C>O,0.006,0.3,0,'股 '),COLORWHITE;{白}
DRAWTEXT_FIX(C>O,0.006,0.53,0,'动 '),COLORWHITE;{白}
DRAWTEXT_FIX(C>O,0.006,0.75,0,'态 '),COLORWHITE;{白}
{=======}
DRAWTEXT_FIX(C>O,0.4125,0.075,0,'大 '),COLORWHITE;{白}
DRAWTEXT_FIX(C>O,0.4125,0.3,0,'盘 '),COLORWHITE;{白}
DRAWTEXT_FIX(C>O,0.4125,0.53,0,'走 '),COLORWHITE;{白}
DRAWTEXT_FIX(C>O,0.4125,0.75,0,'势 '),COLORWHITE;{白}
{=======}
DRAWTEXT_FIX(C>O,0.983,0.075,0,'贴 '),COLORWHITE;{白}
DRAWTEXT_FIX(C>O,0.983,0.3,0,'心 '),COLORWHITE;{白}
DRAWTEXT_FIX(C>O,0.983,0.53,0,'参 '),COLORWHITE;{白}
DRAWTEXT_FIX(C>O,0.983,0.75,0,'谋 '),COLORWHITE;{白}
{========K 线 解 盘==========}
TT:=240/FROMOPEN;
比:=TT;
AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);
AZ2:=EMA(AY2,9);
LT2:=(AY2-AZ2);
L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;
ZGD:=HHV(H,80)*0.99;
ZGD2:=CONST(ZGD);
ZDD:=LLV(L211,80);
ZDD2:=CONST(ZDD);
YA4:=MA(CLOSE,20);
YA5:=(CLOSE > MA(CLOSE,5));
YA6:=(MA(CLOSE,5) > MA(CLOSE,10));
YA7:=(CLOSE > MA(CLOSE,10));
YA8:=(MA(CLOSE,5) > MA(CLOSE,20));
YA9:=(CLOSE > MA(CLOSE,20));
YA10:=REF(YA4,1);
YA11:=(YA4 > YA10);
YAVX:=(((((IF(YA5,10,(0 - 10)) + IF(YA6,10,(0 - 10))) + IF(YA7,10,(0 - 10))) + IF(YA8,10,(0 - 10))) + IF(YA9,10,(0 - 10))) + IF(YA11,10,(0 - 10)));
DSLX:=(CLOSE / INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
YYV1:=MA(VOL,5);
YYV2:=MA(VOL,10);
J1:=CONST(IF( YAVX > 0,200,100));
J2:=CONST(IF( YAVX > 0,00,100));
J3:=CONST(IF( YAVX > 0,100,100));
ZGD3:=ZGD2;
ZDD3:=ZDD2;
ZGD4:=ZGD2;
情况1:=CONST(IF(((CROSS(YAVX,1) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0)),NODRAW;
情况2:=CONST(IF(((CROSS(YAVX,1) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况3:=CONST(IF(((CROSS(YAVX,1) AND (YYV1 > YYV2)) AND (DSLX < DSLX1)),1,0));
情况4:=CONST(IF(((CROSS(YAVX,1) AND (YYV1 <= YYV2)) AND (DSLX < DSLX1)),1,0));
情况5:=CONST(IF(((CROSS(1,YAVX) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况6:=CONST(IF(((CROSS(1,YAVX) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况7:=CONST(IF(((CROSS(1,YAVX) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况8:=CONST(IF(((CROSS(1,YAVX) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况9:=CONST(IF(((((YAVX >= 1) AND (REF(YAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况10:=CONST(IF(((((YAVX >= 1) AND (REF(YAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况11:=CONST(IF(((((YAVX >= 1) AND (REF(YAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)),NODRAW;
情况12:=CONST(IF(((((YAVX >= 1) AND (REF(YAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况13:=CONST(IF(((((YAVX < 1) AND (REF(YAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况14:=CONST(IF(((((YAVX < 1) AND (REF(YAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况15:=CONST(IF(((((YAVX < 1) AND (REF(YAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况16:=CONST(IF(((((YAVX < 1) AND (REF(YAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
大盘1:=CONST(IF((CROSS(YAVX,1) AND (YYV1 >= YYV2)),1,0));
大盘2:=CONST(IF((CROSS(YAVX,1) AND (YYV1 < YYV2)),1,0));
大盘3:=CONST(IF((CROSS(1,YAVX) AND (YYV1 >= YYV2)),1,0));
大盘4:=CONST(IF((CROSS(1,YAVX) AND (YYV1 < YYV2)),1,0));
大盘5:=CONST(IF((((YAVX >= 1) AND (REF(YAVX,1) > 0)) AND (YYV1 >= YYV2)),1,0));
大盘6:=CONST(IF((((YAVX >= 1) AND (REF(YAVX,1) > 0)) AND (YYV1 < YYV2)),1,0));
大盘7:=CONST(IF((((YAVX < 1) AND (REF(YAVX,1) < 0)) AND (YYV1 >= YYV2)),1,0));
大盘8:=CONST(IF((((YAVX < 1) AND (REF(YAVX,1) < 0)) AND (YYV1 < YYV2)),1,0));
TS1:=IF(情况1=1,0.25,-0.05{高低});