{启爆触发点主图源码如下}
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);
AAA:=(DIF-DEA)*2*100;
DTP:=MA5>MA10 AND MA10>MA20;
起爆:=CROSS(AAA-REF(AAA,1),6),COLORRED,LINETHICK2;
STICKLINE(起爆 AND DTP,O,C,2,0),COLORLIMAGENTA;
DRAWICON(起爆 AND DTP,L*1.002,9);
DRAWTEXT(起爆 AND DTP ,L*0.99,'↖启爆点'),COLORYELLOW,LINETHICK2;
{启爆触发点副图源码如下}
VOLUME:VOL,VOLSTICK;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);
AAA:=(DIF-DEA)*2*100;
DTP:=MA5>MA10 AND MA10>MA20;
起爆:=CROSS(AAA-REF(AAA,1),6),COLORRED,LINETHICK2;
STICKLINE(起爆 AND DTP,0,V,2,0),COLORLIMAGENTA;
DRAWICON(起爆 AND DTP,V*1.002,9);