短线擒龙精准适配当前行情捕捉个股短期启动点
本策略适用于上升趋势捕捉机会,下降趋势中谨慎使用
主图源码
ZBGS1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);ZBGS2:=ABS((CLOSE+2*HIGH+LOW)/4-MA(CLOSE,17))/MA(CLOSE,17);ZBGS3:=DMA(CLOSE,ZBGS1);ZBGS4:=DMA(CLOSE,ZBGS2);ZBGS5:=REF((1-3/100)*ZBGS4,2);ZBGS6:=EMA(ZBGS5,7),LINETHICK2,COLORFF6C00;ZBGS7:=EMA((LLV((C+L)/2,6)+LLV((C+L)/2,5)+LLV((C+L)/2,4)+LLV((C+L)/2,3)+LLV((C+L)/2,2)+2*(C+L+H)/3)/7,3),COLORWHITE;ZBGS8:=EMA(ZBGS7,4);ZBGS9:=(C-REF(C,1))/REF(C,1)*100;ZBGS10:=LLV((HIGH+2*LOW+OPEN+CLOSE)/5*2.03-H,30)*1.006,COLORABFF40,LINETHICK2;ZBGS11:=MA(CLOSE,10)+MA(CLOSE,10)-REF(MA(CLOSE,10),1);ZBGS12:=IF(MA(CLOSE,10)< ZBGS11,ZBGS11,MA(CLOSE,10)),COLORRED,LINETHICK2;ZBGS13:=ZBGS12-(EMA(C,3)-ZBGS12),COLOR00FFFF,LINETHICK2;ZBGS14:=MA(CLOSE,30)+MA(CLOSE,30)-REF(MA(CLOSE,30),1);ZBGS15:=IF(MA(CLOSE,30)< ZBGS14,ZBGS14,MA(CLOSE,30));ZBGS16:=ZBGS15-(EMA(C,3)-ZBGS15);ZBGS17:=MA(C,5),COLORWHITE,LINETHICK2;ZBGS18:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);ZBGS19:=DMA(CLOSE,ZBGS18);ZBGS20:=(1+8/100)*ZBGS19,POINTDOT,COLORYELLOW;ZBGS21:=(1-8/100)*ZBGS19,POINTDOT,COLORFF00FF;ZBGS22:=(ZBGS17>ZBGS13);ZBGS23:=CROSS(ZBGS12,ZBGS13) AND C-O>H-C AND ZBGS9>1;DRAWICON(ZBGS23,L*0.985,1);ZBGS24:=(CROSS(C,ZBGS12) AND CROSS(C,ZBGS13)) OR (L< ZBGS13 AND CROSS(C,ZBGS12) AND C>MA(C,6) AND C>ZBGS13) OR (L< ZBGS13 AND C>ZBGS13 AND C>ZBGS12 AND C>MA(C,6)) OR (ZBGS12>ZBGS13 AND CROSS(C,ZBGS12) AND CROSS(C,MA(C,6) ));DRAWTEXT_FIX(1,0.980,20,1,' 公式源码 '),COLOR333333;STICKLINE(ZBGS24,OPEN,CLOSE,3.5,0),COLOR0055FF;STICKLINE(ZBGS24,OPEN,CLOSE,3,0),COLOR0099FF;STICKLINE(ZBGS24,OPEN,CLOSE,2.2,0),COLOR00BBFF;STICKLINE(ZBGS24,OPEN,CLOSE,1.5,0),COLOR00DDFF;STICKLINE(ZBGS24,OPEN,CLOSE,0.1,0),COLOR00FFFF;STICKLINE( C>ZBGS13 AND ZBGS13>REF(ZBGS13,1)*0.99 ,HIGH,LOW,0,0 ),COLORMAGENTA;STICKLINE( C>ZBGS13 AND ZBGS13>REF(ZBGS13,1)*0.99,OPEN,CLOSE,3,1 ),COLORMAGENTA;STICKLINE(C< O AND C>ZBGS13 AND ZBGS13>REF(ZBGS13,1),HIGH,LOW,0,0 ),COLORMAGENTA;STICKLINE(C< O AND C>ZBGS13 AND ZBGS13>REF(ZBGS13,1) ,OPEN,CLOSE,2.8,0 ),COLORMAGENTA;STICKLINE((C< ZBGS16) AND C< O AND ZBGS9< 7 AND NOT(ZBGS24) ,CLOSE,OPEN,3,0),COLORFF6C00;STICKLINE((C< ZBGS16) AND C>O AND ZBGS9< 7 AND NOT(ZBGS24) ,CLOSE,OPEN,3,1),COLORFF6C00;STICKLINE((C< ZBGS16) AND ZBGS9< 7 AND NOT(ZBGS24) ,C,H,0,0),COLORFF6C00;STICKLINE((C< ZBGS16) AND ZBGS9< 7 AND NOT(ZBGS24) ,O,L,0,0),COLORFF6C00;ZBGS25:=ZBGS17>ZBGS12 AND CROSS(ZBGS16,C) OR (COUNT(ZBGS24 OR ZBGS23,3)>0 AND CROSS(ZBGS16,C)) OR (CROSS(ZBGS12,ZBGS17) AND REF(H,1)>ZBGS12 AND C< ZBGS17 AND REF(H,1)>ZBGS12) ;ZBGS26:=COUNT(CROSS(ZBGS12,ZBGS17),4)>=1 AND CROSS(ZBGS17,C) AND C< ZBGS16;ZBGS27:=(CROSS(ZBGS17,C) AND ZBGS9< -7 AND ZBGS17>ZBGS12);DRAWTEXT((ZBGS24 OR ZBGS23) AND ZBGS12>REF(ZBGS12,1)*0.998 AND ZBGS9>2.4 ,L*0.92,'短多'),COLORYELLOW;DRAWTEXT(ZBGS25 AND REF(ZBGS25,1)=0 OR ZBGS26 ,H*1.02,'出'),COLOR00FF00;DRAWTEXT(ZBGS27,H*1.035,'大幅度回落'),COLORF0F900;ZBGS28:=(REF(ZBGS27,1)>0 AND ZBGS9>9) OR (REF(ZBGS27,1)>0 AND C>REF(O,1) AND ZBGS9>5);STICKLINE(CROSS(ZBGS17,C) AND ZBGS9< -7 AND ZBGS17>ZBGS12 ,OPEN,CLOSE,3,0 ),COLOR00FF00;ZBGS29:=(C-REF(C,1))/REF(C,1)*100< 1.02;ZBGS30:=H>MA(C,5)*1.12;ZBGS31:=ZBGS29 AND ZBGS30;DRAWTEXT(ZBGS31,H*1.02,'高减'),COLORWHITE;STICKLINE(ZBGS31,H,L,0.3,0),COLORFF0000;ZBGS32:=REF(CLOSE,1);ZBGS33:=((SMA(MAX((CLOSE - ZBGS32),0),3,1) / SMA(ABS((CLOSE - ZBGS32)),3,1)) * 100);DRAWTEXT(CROSS(88,ZBGS33) AND H>ZBGS12*1.2 AND H>MA(C,5)*1.09 ,(HIGH * 1.035),'高抛'),COLORYELLOW;ZBGS34:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);ZBGS35:=REF(ZBGS34,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);ZBGS36:=REF(ZBGS35,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);ZBGS37:=REF(ZBGS36,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);ZBGS38:=REF(ZBGS37,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);ZBGS39:=REF(ZBGS38,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);ZBGS40:=REF(ZBGS39,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);ZBGS41:=REF(ZBGS40,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);ZBGS42:=REF(ZBGS41,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);ZBGS43:=REF(ZBGS42,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);ZBGS44:=REF(ZBGS43,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);ZBGS45:=REF(ZBGS44,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);ZBGS46:=CLOSE< REF(CLOSE,1) AND CLOSE< REF(CLOSE,2);ZBGS47:=REF(ZBGS34 OR ZBGS35 OR ZBGS36 OR ZBGS37 OR ZBGS38 OR ZBGS39 OR ZBGS40 OR ZBGS41 OR ZBGS42 OR ZBGS43 OR ZBGS44 OR ZBGS45,1) AND ZBGS46;ZBGS48:=(ZBGS47 AND C>ZBGS12*1.02);STICKLINE(ZBGS48 AND (H*1.05>ZBGS20 OR (H>ZBGS20 AND C< ZBGS20)) AND C< O*1.01 ,H*1.015,H*1.0055,3,0),COLOR00FF55;