var: Flag_PLChart1(false); // 股價長期低於P&L Chart,近日站上
Flag_PLChart1 = (countIf(C[10]<=LastPoint[10],40)>=32 and countIf(C>=LastPoint,10)>=8 and C>=LastPoint) or
(countIf(C[10]<=LastPoint[10],80)>=64 and countIf(C>=LastPoint,10)>=8 and C>=LastPoint) or
(countIf(C[10]<=LastPoint[10],120)>=96 and countIf(C>=LastPoint,10)>=8 and C>=LastPoint) or
(countIf(C[15]<=LastPoint[15],40)>=32 and countIf(C>=LastPoint,15)>=12 and C>=LastPoint) or
(countIf(C[15]<=LastPoint[15],80)>=64 and countIf(C>=LastPoint,15)>=12 and C>=LastPoint) or
(countIf(C[15]<=LastPoint[15],120)>=96 and countIf(C>=LastPoint,15)>=12 and C>=LastPoint) or
(countIf(C[20]<=LastPoint[20],40)>=32 and countIf(C>=LastPoint,20)>=16 and C>=LastPoint) or
(countIf(C[20]<=LastPoint[20],80)>=64 and countIf(C>=LastPoint,20)>=16 and C>=LastPoint) or
(countIf(C[20]<=LastPoint[20],120)>=96 and countIf(C>=LastPoint,20)>=16 and C>=LastPoint);
if Flag_PLChart1 or
Flag_PLChart1[1]
then counts=counts+1;