大智慧個股副圖顯示大盤K線圖指標公式
- 指標類別: 大智慧指標公式
- 授權(quán)方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 副圖
- 日期:2018-11-20 來源:互聯(lián)網(wǎng)
大智慧個股副圖顯示大盤K線圖指標公式:
DRAWGBKLAST(C>0,STRIP(RGB(0,0,0),RGB(0,50,50),0));
DRAWTEXTABS(10 ,5 ,'沙吾提制作' ),COLOR00FFFF,LINETHICK2;
DPC:=INDEXC;
DPO:=INDEXO;
DPH:=INDEXH;
DPL:=INDEXL;
STICKLINE(DPC>DPO,DPC,DPO,8,0),COLOR0000FF;
STICKLINE(DPC>DPO,DPH,DPL,0.5,0),COLOR0000FF;
STICKLINE(DPC<DPO,DPC,DPO,8,0),COLOR00FF00;
STICKLINE(DPC<DPO,DPH,DPL,0.5,0),COLOR00FF00;
SH:=STKINDI('1A0001','1A0001');
SZ:=STKINDI('399001','399001');
IF STRCMP(MARKETLABEL,'SH')=0 THEN BEGIN DRAWTEXTABS(200,0,'上證指數(shù)'),LINETHICK5,Color6666FF;END;
IF STRCMP(MARKETLABEL,'SZ')=0 THEN BEGIN DRAWTEXTABS(200,0,'深圳成份指數(shù)'),LINETHICK5,Color6666FF;END;
上證MA1:=STKINDI('1A0001','MA.MA1');
深證MA1:=STKINDI('399001','MA.MA1');
上證MA2:=STKINDI('1A0001','MA.MA2');
深證MA2:=STKINDI('399001','MA.MA2');
上證MA3:=STKINDI('1A0001','MA.MA3');
深證MA3:=STKINDI('399001','MA.MA3');
上證MA4:=STKINDI('1A0001','MA.MA4');
深證MA4:=STKINDI('399001','MA.MA4');
上證MA5:=STKINDI('1A0001','MA.MA5');
深證MA5:=STKINDI('399001','MA.MA5');
上證MA6:=STKINDI('1A0001','MA.MA6');
深證MA6:=STKINDI('399001','MA.MA6');
大盤MA5:IF(STRCMP(MARKETLABEL,'SH')=0,上證MA1,深證MA1),COLORFFFFFF;
大盤MA10:IF(STRCMP(MARKETLABEL,'SH')=0,上證MA2,深證MA2),COLOR00FFFF;
大盤MA20:IF(STRCMP(MARKETLABEL,'SH')=0,上證MA3,深證MA3),COLOR3333FF;
大盤MA30:IF(STRCMP(MARKETLABEL,'SH')=0,上證MA4,深證MA4),COLOR5399FF;
大盤MA60:IF(STRCMP(MARKETLABEL,'SH')=0,上證MA5,深證MA5),COLOR9900CC;
大盤MA120:IF(STRCMP(MARKETLABEL,'SH')=0,上證MA6,深證MA6),COLOR39FF00;
DRAWTEXTABS(5 ,30 ,'目前指數(shù):'+INDEXC+' 點'),COLORFFFFFF;
DRAWTEXTABS(5 ,50 ,'昨日收盤:'+REF(INDEXC,1)+' 點'),COLORFFFFFF;
DRAWTEXTABS(5 ,70 ,'今日開盤:'+INDEXO+' 點'),COLORFFFFFF;
DRAWTEXTABS(5 ,90 ,'今日最高:'+INDEXH+' 點'),COLORFFFFFF;
DRAWTEXTABS(5 ,110 ,'今日最低:'+INDEXL+' 點'),COLORFFFFFF;
DRAWTEXTABS(5 ,130 ,'指數(shù)漲幅:'+((INDEXC-REF(INDEXC,1))/INDEXC)*100+' %'),COLORFFFFFF;
DRAWTEXTABS(5,150 ,'上漲家數(shù):'+INDEXADV+' 家'),COLORFF00FF;
DRAWTEXTABS(5,170 ,'走平家數(shù):'+INDEXDEC+' 家'),COLOR00FFFF;
DRAWTEXTABS(5,190 ,'下跌家數(shù):'+INDEXDEC+' 家'),COLOR39FF00;
上證DIFF:=STKINDI('1A0001','MACD.DIFF');
深證DIFF:=STKINDI('399001','MACD.DIFF');
上證DEA:=STKINDI('1A0001','MACD.DEA');
深證DEA:=STKINDI('399001','MACD.DEA');
上證MACD:=STKINDI('1A0001','MACD.MACD');
深證MACD:=STKINDI('399001','MACD.MACD');
大盤DIFF:=IF(STRCMP(MARKETLABEL,'SH')=0,上證DIFF,深證DIFF);
大盤DEA:=IF(STRCMP(MARKETLABEL,'SH')=0,上證DEA,深證DEA);
大盤MACD:=IF(STRCMP(MARKETLABEL,'SH')=0,上證MACD,深證MACD);
DRAWTEXTABS(165,30,'大盤DIFF:'+大盤DIFF),COLORFFFFFF;
DRAWTEXTABS(165,50,'大盤 DEA:'+大盤DEA),COLOR00FFFF;
DRAWTEXTABS(165,70,'大盤MACD:'+大盤MACD),COLORFF00FF;
上證K:=STKINDI('1A0001','KDJ.K');
深證K:=STKINDI('399001','KDJ.K');
上證D:=STKINDI('1A0001','KDJ.D');
深證D:=STKINDI('399001','KDJ.D');
上證J:=STKINDI('1A0001','KDJ.J');
深證J:=STKINDI('399001','KDJ.J');
大盤K:=IF(STRCMP(MARKETLABEL,'SH')=0,上證K,深證K);
大盤D:=IF(STRCMP(MARKETLABEL,'SH')=0,上證D,深證D);
大盤J:=IF(STRCMP(MARKETLABEL,'SH')=0,上證J,深證J);
DRAWTEXTABS(165,90,'大盤K:'+大盤K),COLORFFFFFF;
DRAWTEXTABS(165,110,'大盤D:'+大盤D),COLOR00FFFF;
DRAWTEXTABS(165,130,'大盤J:'+大盤J),COLORFF00FF;
DRAWTEXTABS(310,30,'大盤5天均線:'+大盤MA5),COLORFFFFFF,LINETHICK2;
DRAWTEXTABS(310,50,'大盤10 天均線:'+大盤MA10),COLOR00FFFF,LINETHICK2;
DRAWTEXTABS(310,70,'大盤20 天均線:'+大盤MA20),COLORFF00FF,LINETHICK2;
DRAWTEXTABS(310,90,'大盤30 天均線:'+大盤MA30),COLOR39FF00,LINETHICK2;
DRAWTEXTABS(310,110,'大盤60 天均線:'+大盤MA60),COLORFF3366,LINETHICK2;
DRAWTEXTABS(310,130,'大盤120天均線:'+大盤MA120),COLORFFCC00,LINETHICK2;
上證BIAS1:=STKINDI('1A0001','BIAS.BIAS1');
深證BIAS1:=STKINDI('399001','BIAS.BIAS1');
上證BIAS2:=STKINDI('1A0001','BIAS.BIAS2');
深證BIAS2:=STKINDI('399001','BIAS.BIAS2');
上證BIAS3:=STKINDI('1A0001','BIAS.BIAS3');
深證BIAS3:=STKINDI('399001','BIAS.BIAS3');
大盤BIAS1:=IF(STRCMP(MARKETLABEL,'SH')=0,上證BIAS1,深證BIAS1);
大盤BIAS2:=IF(STRCMP(MARKETLABEL,'SH')=0,上證BIAS2,深證BIAS2);
大盤BIAS3:=IF(STRCMP(MARKETLABEL,'SH')=0,上證BIAS3,深證BIAS3);
DRAWTEXTABS(165,150,'大盤BIAS1:'+大盤BIAS1),COLORFFFFFF;
DRAWTEXTABS(165,170,'大盤BIAS2:'+大盤BIAS2),COLOR00FFFF;
DRAWTEXTABS(165,190,'大盤BIAS3:'+大盤BIAS3),COLORFF00FF;
大智慧個股副圖顯示大盤K線圖指標公式實例圖解:
大智慧個股副圖顯示大盤K線圖指標公式