通达信指标公式源码操盘均线主图源码
⽹1:=EXPMA(C,5),COLORYELLOW;
⽹2:=EXPMA(⽹1,2);
⽹3:=EXPMA(⽹2,2);
⽹33:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;
TJ1A:IF(⽹1>⽹2,⽹1,⽹2),COLORLICYAN;
TJ2A:IF(⽹1>⽹3,⽹1,⽹3),COLORGREEN;
TJ3A:⽹1,COLORYELLOW,LINETHICK2;
{QS}
⽹A:=EXPMA(CLOSE,5),COLORWHITE;
⽹B:=EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;
IF(⽹B
IF(⽹B
IF(⽹1
{HJ}
HH:=CONST(HHV(H,160));
LL:=CONST(LLV(L,160));{160可改成你习惯锁定的⽇K线数}
HL1:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.76,0.04));
HL2:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.80,0.08));
HL3:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.84,0.12));
HL4:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.88,0.16));
HL5:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.92,0.20));
HL6:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.96,0.24)); DRAWTEXT_FIX(1,0.00,0,0,'所属⾏
业:')COLOR0080FF;
DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.00,0.04,0,'主题投资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1))COLOR0000FF; {⽣成数据时第1项输1与这⾥1⼀致,描述部分输"主题投资"}
DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF; {⽣成数据时第1项输2与这⾥2⼀致,描述部分输"主营业务"}
DRAWTEXT_FIX(1,0.00,0.12,0,'出千概念:')COLORFF88FF;
DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,3))COLORFF88FF; {⽣成数据时第1项输3与这⾥3⼀致,描述部分输"出千概念"}
⽇:=50;昨前:=3;
⾼1:=REF(HHV(H,⽇),昨前);
低1:=REF(LLV(L,⽇),昨前);
H1:=⾼1-(⾼1-低1)*0.191;
H2:=⾼1-(⾼1-低1)*0.382;
H3:=⾼1-(⾼1-低1)*0.5;
H4:=⾼1-(⾼1-低1)*0.618;
H5:=⾼1-(⾼1-低1)*0.809;
L1:=低1+(⾼1-低1)*1.191;
L2:=低1+(⾼1-低1)*1.382;
L3:=低1+(⾼1-低1)*1.5;
L4:=低1+(⾼1-低1)*1.618;
L5:=低1+(⾼1-低1)*1.809;
短压:REFDATE(⾼1,DATE),COLORGREEN,LINETHICK1;
⽀撑19.1%:REFDATE(H1,DATE),COLORYELLOW;
⽀撑38.2%:REFDATE(H2,DATE),COLORMAGENTA;
⽀撑50%:REFDATE(H3,DATE),COLORLIGRAY;
⽀撑61.8%:REFDATE(H4,DATE),COLORWHITE,LINETHICK1;
⽀撑80.9%:REFDATE(H5,DATE),COLORWHITE;
低:REFDATE(低1,DATE),COLORWHITE;
阻⼒119.1%:REFDATE(L1,DATE),COLORYELLOW;
阻⼒138.2%:REFDATE(L2,DATE),COLORMAGENTA;
阻⼒150%:REFDATE(L3,DATE),COLORLIGRAY;
阻⼒161.8%:REFDATE(L4,DATE),COLORRED;
阻⼒180.9%:REFDATE(L5,DATE),COLORWHITE;
{三线⾦叉显⽰钱袋⼦的源码}
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIFF1,9);
MACDD:=CROSS(DIFF1,DEA1);
均线1:=CROSS(MA(C,5),MA(C,10));
量线1:=CROSS(MA(V,5),MA(V,10));
DRAWICON(MACDD AND 均线1 AND 量线1,L-0.20,25);{同时⾦叉显⽰25号图标}; DRAWICON( 均线1 AND 量线1,L-0.20,1);
DRAWTEXT(量线1,L-0.25,'量'),COLORYELLOW;
总额:=AMOUNT;
买:=IF(O=C AND
(C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L ));买%:=买/AMOUNT*100;
流⼊:=AMOUNT*买%/10000000000;
流出:=AMOUNT/100000000-流⼊;
净流:=(流⼊-流出);
总额3:=SUM(AMOUNT,3);
流⼊3:=SUM(流⼊,3);
流出3:=SUM(流出,3);
净流3:=SUM(流⼊-流出,3);
总额5:=SUM(AMOUNT,5);
流⼊5:=SUM(流⼊,5);
流出5:=SUM(流出,5);
净流5:=SUM(流⼊-流出,5);
总额10:=SUM(AMOUNT,10);
流⼊10:=SUM(流⼊,10);
流出10:=SUM(流出,10);
净流10:=SUM(流⼊-流出,10);
画:=CONST(FINDHIGH(总额10,0,190,1));
DRAWTEXT_FIX(1,0.71,0.07,0,'净流(亿):'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.78,0.05,0,'1
h5平台源码下载
⽇'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.83,0.05,0,'3⽇'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.88,0.05,0,'5⽇'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.93,0.05,0,'10
⽇'),COLORMAGENTA,LINETHICK1; DRAWNUMBER_FIX(1,0.78,0.10,0,CONST((净流))),COLORYELLOW; DRAWNUMBER_FIX(1,0.83,0.10,0,CONST((净流3))),COLORYELLOW; DRAWNUMBER_FIX(1,0.88,0.10,0,CONST((净流5))),COLORYELLOW; DRAWNUMBER_FIX(1,0.93,0.10,0,CONST((净流10))),COLORYELLOW;

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。