STICKLINE(C TYX5 AND C O,C,O,3,1),COLORRED;
{深绿}
STICKLINE(C TYX5 AND C O,H,L,0,0),COLOR007700;
STICKLINE(C TYX5 AND C O,C,O,3,0),COLOR005500;
STICKLINE(C TYX5 AND C O,C,O,2,0),COLOR006600;
STICKLINE(C TYX5 AND C O,C,O,1,0),COLOR007700;
{蓝}
STICKLINE(C TYX5 AND C O,H,L,0,0),COLORFFDD44;
STICKLINE(C TYX5 AND C O,C,O,3,0 ),COLORFF7700;
STICKLINE(C TYX5 AND C O,C,O,2,0 ),COLORFFAA22;
STICKLINE(C TYX5 AND C O,C,O,1 ,0 ),COLORFFDD44;
{黄}
STICKLINE(C TYX5 AND C O,H,L,0,0 ),COLOR00EEFF;
STICKLINE(C TYX5 AND C O,C,O,3,0 ),COLOR00AAFF;
STICKLINE(C TYX5 AND C O,C,O,2,0 ),COLOR00CCFF;
STICKLINE(C TYX5 AND C O,C,O,1,0 ),COLOR00EEFF;
{粉红}
STICKLINE(C TYX4 AND C O,H,L,0,0),COLORFF66AA;
STICKLINE(C TYX4 AND C O,C,O,3,0 ),COLORFF11FF;
STICKLINE(C TYX4 AND C O,C,O,2,0 ),COLORFF44FF;
STICKLINE(C TYX4 AND C O,C,O,1,0 ),COLORFF66FF;
{亮灰}
STICKLINE(C TYX4 AND C O,H,L,0,0),COLOR999999;
STICKLINE(C TYX4 AND C O,C,O,3,0),COLOR555555;
STICKLINE(C TYX4 AND C O,C,O,2,0),COLOR777777;
STICKLINE(C TYX4 AND C O,C,O,1,0),COLOR999999;
{深红}
STICKLINE(C TYX3 AND C O,H,L,0,0),COLOR0000DD;
STICKLINE(C TYX3 AND C O,C,O,3,0),COLOR000099;
STICKLINE(C TYX3 AND C O,C,O,2,0),COLOR0000BB;
STICKLINE(C TYX3 AND C O,C,O,1,0),COLOR0000DD;
{涨跌停K线}
STICKLINE((C-REF(C,1))*100/REF(C,1) =(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE((REF(C,1)-C)*100/REF(C,1) =(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORWHITE;
{突破};
条件:近五日内K线出现 外红内黄的标志 如图所示 作为选股条件
公式模块:
出现:C MA(REF(HHV((C+L+O+H)/4,30),1),3) AND C EMA((C+L+O+H)/4,21) AND (C-REF(C,1))*100/REF(C,1) =(10-0.01*100/REF(C,1));
{加上涨停条件的 当天出现信号}
出现:=C MA(REF(HHV((C+L+O+H)/4,30),1),3) AND C EMA((C+L+O+H)/4,21) AND (C-REF(C,1))*100/REF(C,1) =(10-0.01*100/REF(C,1));
五日内出现:COUNT(出现,5)