以下是通達(dá)信黃金分割操盤主圖源碼(無源碼的請下載附件導(dǎo)入)
網(wǎng)1:=EXPMA(C,5),COLORYELLOW;
網(wǎng)2:=EXPMA(網(wǎng)1,2);
網(wǎng)3:=EXPMA(網(wǎng)2,2);
網(wǎng)13:EXPMA(CLOSE,13),COLORGRAY,LINETHICK3;
網(wǎng)33:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK4;
TJ1A:IF(網(wǎng)1>網(wǎng)2,網(wǎng)1,網(wǎng)2),COLORLICYAN;
TJ2A:IF(網(wǎng)1>網(wǎng)3,網(wǎng)1,網(wǎng)3),COLORGREEN;
TJ3A:網(wǎng)1,COLORYELLOW,LINETHICK2;
{QS}
網(wǎng)A:=EXPMA(CLOSE,5),COLORWHITE;
網(wǎng)B:=EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;
IF(網(wǎng)B<>
IF(網(wǎng)B<>
IF(網(wǎng)1<>< p="">
<>
{黃金分割線}
頂1:=REFDATE(HHV(H,M),DATE);
底1:=REFDATE(LLV(L,M),DATE);
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;
頂部:REFDATE(頂1,DATE),COLOR666666;
.8:REFDATE(H1,DATE),COLOR666666;
8.2:REFDATE(H2,DATE),COLOR666666;
P:REFDATE(H3,DATE),COLOR666666;
a.8:REFDATE(H4,DATE),COLOR666666;
.9:REFDATE(H5,DATE),COLOR666666;
底部:REFDATE(底1,DATE),COLOR666666;
DRAWTEXT(ISLASTBAR,頂部,' 頂部'),COLORGREEN;
DRAWTEXT(ISLASTBAR,.8,' 19.8%'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,8.2,' 38.2%'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,P,' 50%'),COLORWHITE;
DRAWTEXT(ISLASTBAR,a.8,' 61.8%'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,?.9,' 80.9%'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,底部,' 底部'),COLORRED;
{BS標(biāo)志}
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))
AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,7);
DRAWICON((ZIG(3,5)[=REF(ZIG(3,5),2))]
AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.02,8);
{箱體}
{
箱頂:PEAK(CLOSE,N,1)*0.98,POINTDOT,LINETHICK3,COLORYELLOW;
箱底:TROUGH(CLOSE,N,1)*1.02,POINTDOT,LINETHICK3,COLORFFFF00;
箱高:100*(箱頂-箱底)/箱底,NODRAW;
};
HH:=CONST(HHV(H,160));
LL:=CONST(LLV(L,160));{160可改成你習(xí)慣鎖定的日K線數(shù)}
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,'所屬行業(yè):')COLOR0080FF;
DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.14,0,0,'所屬地區(qū):')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; {生成數(shù)據(jù)時(shí)第1項(xiàng)輸1與這里1一致,描述部分輸"主題投資"}
DRAWTEXT_FIX(1,0.00,0.08,0,'主營業(yè)務(wù):')COLORFF00FF;
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF; {生成數(shù)據(jù)時(shí)第1項(xiàng)輸2與這里2一致,描述部分輸"主營業(yè)務(wù)"}
DRAWTEXT_FIX(1,0.00,0.12,0,'出千概念:')COLORFF88FF;
DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,3))COLORFF88FF; {生成數(shù)據(jù)時(shí)第1項(xiàng)輸3與這里3一致,描述部分輸"出千概念"}
總額:=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日'),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;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);MA5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);
FA:=BARSLAST(CROSS(MA10,MA5))
AND CROSS(MA5,MA10);
FB:=FA AND MA5>MA30 AND MA10>MA30 AND
MA10>REF(MA10,1);
DRAWTEXT(FB,L-0.58,'★紅牛'),COLORRED;V1:=EMA(CLOSE,5);
V2:=EMA(EMA(CLOSE,90)*1.01,10);
DRAWTEXT(CROSS(V1,V2),V1 0.05,'牛起步'),COLOR00FF00;
{過左峰提示粉色}
VAR121:=ZIG(3,6)[=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);]
VAR141:=ZIG(3,22)[=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);]
VAR161:=ZIG(3,51)[=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);]
VAR181:=ZIG(3,72)[=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);]
賣:=(VAR121 VAR141 VAR161 VAR181),LINETHICK2;
SQ:DRAWLINE(賣,H,BARSLAST(賣)>=1,REF(H,BARSLAST(賣)),1),COLORWHITE,LINETHICK2;
過峰:=C>SQ AND REF(C,1)<>
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
預(yù)量:=VVOL/REF(V,1)>1.8;
現(xiàn)量:=V/REF(V,1)>1.5;
過峰1:STICKLINE( 過峰,C,O,5,0)COLORFF00FF;
預(yù)量1:DRAWICON(過峰 AND 預(yù)量, H*1.01,14);
現(xiàn)量1:DRAWICON(過峰 AND 現(xiàn)量,(O C)/2,23);
前次低點(diǎn):LLV(L*1,250)POINTDOT,COLORFF00FF,LINETHICK4;
|