{控鹤擒龙}
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
飞龙:SMA(V3,2,1),COLORRED,LINETHICK2;
平衡线:SMA(飞龙,2,1),COLORYELLOW,LINETHICK1;
控鹤:IF(飞龙>REF(飞龙,1) AND REF(飞龙,1)<REF(飞龙,2) AND 飞龙<23 ,18,0),COLORWHITE,LINETHICK1;
擒龙:IF(飞龙>REF(飞龙,1) AND CROSS(飞龙,平衡线) AND 平衡线<50,30,0),COLORCC00CC;
IF(飞龙<REF(飞龙,1),飞龙,DRAWNULL),COLORGREEN,LINETHICK2;
DRAWTEXT(擒龙,H*1.005,'擒龙'),COLORRED;
DRAWICON(CROSS(飞龙,平衡线),平衡线*1,13);
DRAWICON(CROSS(平衡线,飞龙),平衡线*1,11);