{大盤指數(shù)}
指數(shù):INDEXC,NODRAW;
漲跌:INDEXC-REF(INDEXC,1), NODRAW;
漲幅(%):((INDEXC/REF(INDEXC,1))-1)* 100, NODRAW;
大盤:DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);
MA5:MA(INDEXC,5),COLORWHITE;
MA20:MA(INDEXC,20),COLORMAGENTA;
MA60:MA(INDEXC,60),COLORGREEN;
---------------------------------------------------
指數(shù):INDEXC,NODRAW;
漲跌:INDEXC-REF(INDEXC,1), NODRAW;
漲幅(%):((INDEXC/REF(INDEXC,1))-1)* 100, NODRAW;
大盤:DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);
MA5:MA(INDEXC,5),COLORWHITE;
MA20:MA(INDEXC,20),COLORMAGENTA;
MA60:MA(INDEXC,60),COLORGREEN;
DRAWTEXT(REFDATE(INDEXC,1100104)=3243.76 AND CURRBARSCOUNT=7,HHV(INDEXH,60),'上證指數(shù)');
DRAWTEXT(REFDATE(INDEXC,1100104)!=3243.76 AND CURRBARSCOUNT=7,HHV(INDEXH,60),'深證指數(shù)');
{上證指數(shù)K線副圖指標} DRAWKLINE("999999$H","999999$O","999999$L","999999$C"); 上證:"999999$C",COLORWHITE,NODRAW; _±:"999999$C"-REF("999999$C",1),COLORLIGRAY,NODRAW; 五:MA("999999$C",5),COLORWHITE; 十:MA("999999$C",10),COLORYELLOW; 二十:MA("999999$C",20),COLORMAGENTA; 六十:MA("999999$C",60),COLORGREEN; {大盤指數(shù)K線副圖指標} DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC); 大盤:INDEXC,COLORWHITE,NODRAW; ±:INDEXC-REF(INDEXC,1),COLORLIGRAY,NODRAW; 滬深:"000300$CLOSE",NODRAW; _±:"000300$CLOSE"-REF("000300$CLOSE",1),COLORLIGRAY,NODRAW; 五:MA(INDEXC,5),COLORWHITE; 十:MA(INDEXC,10),COLORYELLOW; 三十:MA(INDEXC,30),COLORMAGENTA; 六十:MA(INDEXC,60); 求助:k線圖上,副圖的大盤指數(shù),如何隨個股自動切換?A:=REF(INDEXC,1);指數(shù):INDEXC,NODRAW;指數(shù)漲幅:IF(A>0,(INDEXC-A)*100/A,0),NODRAW; DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC); |
|