{拉涨起飞主图源码如下}
{拉涨捉妖主图指标,无未来函数}
收盘价:=C;
妖龙起飞A:=IF((收盘价>REF(收盘价,1)),88,0);
妖龙起飞B:=IF(((收盘价)/(REF(收盘价,1))>1.05) AND ((HIGH)/(收盘价)<1.01) AND (妖龙起飞A>0),91,0);
捉妖筹码:=(FILTER((妖龙起飞B>90),45)),COLORYELLOW;
STICKLINE(捉妖筹码,O,C,1.5,0),COLORYELLOW;
DRAWTEXT(捉妖筹码>0,L,' ★妖股起飞'),COLOR00C5FF;
DRAWICON(捉妖筹码>0,L,9);MA5:EMA(C,5);
MA13:EMA(C,13);
FABC1:=ABS(((3.48*收盘价+HIGH+LOW)/4-EMA(收盘价,23))/EMA(收盘价,23));
FABC2:=DMA(((2.15*收盘价+LOW+HIGH)/4),FABC1);
金龙突破:=EMA(FABC2,200)*1.118;
金龙突破2:=EMA(FABC2,200)*1.118;
条件:=(C-REF(C,1))/REF(C,1)*100>8;
金K线:=CROSS(C,金龙突破) AND 条件;
黑马启动:=金K线*11,LINETHICK2;DRAWICON(金K线,L,13);
STICKLINE(金K线,O,C,1.5,0),COLORMAGENTA;
DRAWTEXT(金K线,L*0.99,' ★主力拉涨'),COLORRED;
{拉涨起飞副图源码如下}
{捉妖起飞副图指标,含DYNAINFO函数,需获取即时行情数据}
DC2:=BARSLAST(((EMA(C,5) * 7 + EMA(C,10) * 3) / 10 > MA(H,30) * (1 + 13 / 100)) <> REF((EMA(C,5) * 7 + EMA(C,10)*3)/10 > MA(H,30) * (1+13/100),1));
DC3:=SUM(IF(C >= REF(C,1),(C - REF(C,1)) / REF(C,1) * 100,0),DC2 + 1);
DC4:=(H + L + O + C) / 4;
DC5:=EMA(DC4,13) - EMA(DC4,34);
DC6:=EMA(DC5,5);
DC7:=(DC5 - DC6) * 5;
DC8:=IF(DC7 >= 1000,1000,IF(DC7 <= DC4,DC4,DC7));
DC9:=FORCAST(FORCAST(DC8,32),10);
DC10:=(C - EMA(C,13)) / EMA(C,13) * (0 - 100);
DC11:=EMA(DC10 / 10 + EMA(C,13),8);
DC12:=EMA(C,3);
DC13:=EMA(SLOPE(C,22) * 20 + C,45);
DC14:=IF(PERIOD > 8 AND PERIOD < 11,MA(DC13,1),IF(PERIOD = 8,MA(DC13,4),IF(PERIOD = 7,MA(DC13,8),IF(PERIOD=6,MA(DC13,16),IF(PERIOD=5,MA(DC13,32),0)))));
DC15:=DC14 * 0.865;
DC16:=IF(DC12 > DC14,DC12,DC15);
DC17:=REVERSE(DC16) + 2 * DC9;
总涨幅:IF((EMA(C,5) * 7 + EMA(C,10) * 3) / 10 > MA(H,30) * (1 + 13 / 100) AND REF(DC17,1) < (EMA(C,5)*7+ EMA(C,10)*3)/10 AND DYNAINFO(17)>0,DC3,0) ,LINETHICK2,COLORMAGENTA;
DCZ1:=(总涨幅 > 0 AND DC17 < (EMA(C,5) * 7 + EMA(C,10) * 3) / 10) * 总涨幅 ,COLORRED;
STICKLINE(DCZ1,DCZ1,0,1,0),COLORRED ;{红色}
DCZ2:=(总涨幅 > 0 AND 总涨幅 > REF(总涨幅,1) AND DC17 < (EMA(C,5) * 7 + EMA(C,10)*3)/10)*总涨幅/2,COLORFF0000;
STICKLINE(DCZ2,DCZ2,0,2,0),COLORYELLOW ;{黄色}
DCZ3:=(总涨幅 > 0 AND 总涨幅 = REF(总涨幅,1) AND DC17 < (EMA(C,5) * 7 + EMA(C,10)*3)/10)*总涨幅/3 ,COLORGREEN;
STICKLINE(DCZ3,DCZ3,0,2,0),COLORGREEN ;{绿色}
DCZ4:=CROSS((EMA(C,5) * 7 + EMA(C,10) * 3) / 10,MA(H,30) * (1 + 13 / 100))*总涨幅/1.5,COLORYELLOW;
STICKLINE(DCZ4,DCZ4,0,2,0),COLORLIBLUE ;{蓝色}
捉妖起飞:IF((EMA(C,5) * 7 + EMA(C,10) * 3) / 10 > DC17 AND DC17 < (EMA(C,5)*7+ EMA(C,10)*3)/10 AND DYNAINFO(7)>0 AND (EMA(C,5)*7+EMA(C,10)*3)/10<MA(H,30)*(1+13/100),DC3,0)/150,NODRAW,COLORWHITE;
DCZ5:=(捉妖起飞 > 0) * REVERSE(捉妖起飞) ,COLORGRAY;
STICKLINE(DCZ5,DCZ5,0,2,0),COLORRED ;{红色吸筹}
DCZ6:=(捉妖起飞 > 0 AND EMA(C,2) > MA(H,30) * (1 + 13 / 100) * 1.0382) * REVERSE(捉妖起飞)/1.5 ,COLORFF0099;
STICKLINE(DCZ6,DCZ6,0,2,0),COLORWHITE ;{白色}
DCZ7:=(捉妖起飞 > 0 AND EMA(C,2) > MA(H,30) * (1 + 13 / 100) * 1.0382) * 捉妖起飞/1.5,COLORFF0099;
STICKLINE(DCZ7,DCZ7,0,2,0),COLORLIRED;
DRAWTEXT(捉妖起飞 > 0 AND CROSS(EMA(C,2),MA(H,30) * (1 + 13 / 100) * 1.0382) ,捉妖起飞 * 1.09,'准备'),COLORWHITE;
DRAWTEXT(FILTER(CROSS((EMA(C,5) * 7 + EMA(C,10) * 3) / 10,MA(H,30) * (1 + 13 / 100)),5) ,总涨幅 * 1.09,'捉妖'),COLORYELLOW;
DCZ8:=(总涨幅 > 0 AND CROSS(DC17,(EMA(C,5) * 7 + EMA(C,10) * 3) / 10)) * 总涨幅 ,COLORGREEN;
STICKLINE(DCZ8,DCZ8,0,2,0),COLORCYAN ;{青色};