if holding>0 and barslast(开多3)=TYPEBAR(1,1) and 开多1 then 平多语句;
if holding>0 and barslast(开多3)=TYPEBAR(1,1) AND 开多2 then 平多语句;
if holding<0 and barslast(开空3)=TYPEBAR(1,1) and 开空1 then 平空语句;
if holding<0 and barslast(开空3)=TYPEBAR(1,1) AND 开空2 then 平空语句;