YA:=IF(C>=O,AMOUNT,0);
YAOBV:=SUM(YA,0);
MOBV:=SUM(AMOUNT,0);
BL:=100*YAOBV/MOBV;
MABL3:IF(BARSSINCE(C)>=3,MA(BL,3),50),ColorRED;
MABL30:IF(BARSSINCE(C)>=30,MA(BL,30),MABL3),Color18B8B8,LINETHICK0;
MA60:=MA(C,60);
MAI60:=MA(INDEXC,60);
DRAWTEXTABS(5,5,'爱约股 '),linethick1,COLOR00EEff;
LS:=REF(MA60,1)>MA60 And REF(MAI60,1)>MAI60;
FILLRGN(MAbL3,MAbL30,Ls And MAbL3>MAbL30,RGB(158,158,8),NOT(Ls) And MAbL3>MAbL30,
RGB(158,8,8),MAbL3<=MAbL30,RGB(8,98,98)),LAYER0,ColorBLACK;