ZGD:=IF(INDEXH 0,INDEXH,REF(INDEXH,BARSLAST(INDEXH 0)));
ZDD:=IF(INDEXL 0,INDEXL,REF(INDEXL,BARSLAST(INDEXL 0)));
KPD:=IF(INDEXO 0,INDEXO,REF(INDEXO,BARSLAST(INDEXO 0)));
SPD:=IF(INDEXC 0,INDEXC,REF(INDEXC,BARSLAST(INDEXC 0)));
CJE:=INDEXA/100000000;
开盘:KPD,NODRAW,COLORWHITE;
最高:ZGD,NODRAW,COLORRED;
最低:ZDD,NODRAW,COLORGREEN;
收盘:SPD,NODRAW,COLORWHITE;
成交额:CJE,NODRAW,COLORYELLOW;
DRAWKLINE(ZGD,KPD,ZDD,SPD);
大:=DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);
大盘:MA(INDEXC,10),LINETHICK5;
分:=CONST(LLV(L,90));百:=CONST(HHV(H,90))-分;
基点:=CONST(LLV(大盘,90));基:=CONST(HHV(大盘,90))-基点;
C比:=(C-分)/百;H比:=(H-分)/百;L比:=(L-分)/百;O比:=(O-分)/百;
CX:=C比*基+基点;HX:=H比*基+基点;LX:=L比*基+基点;OX:=O比*基+基
点;
KK:DRAWKLINE(HX,OX,LX,CX),COLORMAGENTA;
个股1:MA(CX,3),COLORRED;
个股2:MA(CX,10),COLORYELLOW;
P1:=IF(BARSLAST(CURRBARSCOUNT=2),1,0);
DRAWTEXT(P1,大盘, 大盘 ),COLORYELLOW;
DRAWTEXT(P1,个股1, 个股 ),COLORYELLOW;