乾坤六道插上猎杀涨停板的利刃 乾坤趋势、乾坤狂飙指标套装 源码附图
乾坤六道插上猎杀涨停板的利刃 乾坤趋势、乾坤狂飙指标套装 源码附图
{乾坤趋势副图源码如下}
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'11',0);关注:20,POINTDOT;
警戒:80,POINTDOT;
VAR1:=LLV(LOW,10);
VAR2:=HHV(HIGH,25);
趋势:= EMA((CLOSE-VAR1)/(VAR2-VAR1)*110,10),COLORFF00FF,LINETHICK5;
IF(趋势>=REF(趋势,1),趋势,DRAWNULL),COLORFF00FF,LINETHICK2;
IF(趋势< REF(趋势,1),趋势,DRAWNULL),COLOR00FFFF,LINETHICK2;
STICKLINE(趋势>=REF(趋势,1) ,趋势 ,REF(趋势,1),3 ,1),COLORRED,LINETHICK3;
STICKLINE(趋势< REF(趋势,1) ,趋势 ,REF(趋势,1),3 ,1),COLOR00FF00,LINETHICK3;
IF(趋势>=REF(趋势,1),0,13),COLORFF00FF,LINETHICK2;
DRAWICON(趋势>=REF(趋势,1),8,1);
DRAWICON(趋势< REF(趋势,1),2,2);
VOLUME:=VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,10);
STICKLINE(MAVOL1>=MAVOL2,122,116,3,0),COLORFF00FF;
STICKLINE (MAVOL1<MAVOL2,122,116,3,0),COLOR00FFFF;
成交量叉:MAVOL1>MAVOL2,POINTDOT;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
STICKLINE (DIF>=DEA,114,108,3,0),COLORFF00FF;
STICKLINE (DIF<DEA,114,108,3,0),COLOR00FFFF;
MACD叉:DIF>DEA,POINTDOT;{}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
STICKLINE (K>=D,106,100,3,0),COLORFF00FF;
STICKLINE (K<D,106,100,3,0),COLOR00FFFF;
KDJ叉:K>D POINTDOT;
DRAWTEXT(CURRBARSCOUNT=3,119,'VOL'),COLORFF0000;
DRAWTEXT(CURRBARSCOUNT=3,111,'MACD'),COLORFF0000;
DRAWTEXT(CURRBARSCOUNT=3,103,'KDJ'),COLORFF0000;
{乾坤狂飙副图源码如下}
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'11',0);LC:=REF(CLOSE,1);XB_1:=IF(DATE<=1211231,1,1);
XB_2:=EMA(CLOSE,3);
XB_3:=EMA(CLOSE,20);
XB_4:=EMA(CLOSE,60);
XB_5:=ATAN((XB_4-REF(XB_4,1))/XB_4*10)/3.142*180;
XB_6:=EMA(CLOSE,120);
XB_7:=EMA(CLOSE,250);
XB_8:=REF(LOW,1);
XB_9:=SMA(ABS(LOW-XB_8),3,1)/SMA(MAX(LOW-XB_8,0),3,1)*100;
XB_10:=EMA(XB_9*10,3);
XB_11:=LLV(LOW,13);
XB_12:=HHV(XB_10,13);
XB_13:=EMA(IF(LOW<=XB_11,(XB_10+XB_12*2)/2,0),3)/618;
XB_14:=IF(XB_13>500,500,XB_13);
XB_15:=XB_1 AND CLOSE>XB_4 AND XB_4>XB_6 AND XB_6>XB_7;
XB_16:=XB_1 AND XB_15 AND KDJ.J>REF(KDJ.J,1) AND REF(KDJ.J,1)<REF(KDJ.J,2) AND ABS(LOW-XB_4)/XB_4<0.08 AND CLOSE>REF(CLOSE,1);
XB_17:=1;{}
(-0.5),DOTLINE,COLORBLACK;
STICKLINE(CLOSE>MA(CLOSE,60),0,0.2,1,0),COLORRED;
STICKLINE(CLOSE>MA(CLOSE,20),0.2,0.4,1,0),COLORGREEN;
STICKLINE(XB_5>0,0.4,0.6,1,0),COLORMAGENTA;
STICKLINE(XB_16,0.6,0.8,1,0),COLORBLUE;
STICKLINE(XB_14>1,0.8,1,1,0),COLORYELLOW;
DRAWICON(XB_1 AND XB_15 AND CLOSE>MA(CLOSE,20) AND XB_14>1 AND KDJ.J>REF(KDJ.J,1) AND REF(KDJ.J,1)<REF(KDJ.J,2) AND ABS(LOW-XB_4)/XB_4<0.08
AND XB_5>0 AND CLOSE>REF(CLOSE,1),(-0.1),5) AND XB_17;
{乾坤牛场副图源码如下}
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'11',0);LC:=REF(CLOSE,1);牛短:SMA(WINNER(CLOSE*0.9),2.5,1)*46,COLORRED,LINETHICK2;
牛长:SMA(WINNER(CLOSE*0.95),5,1)*30,COLORYELLOW,LINETHICK2;
IF(牛短>牛长 AND 牛长>REF(牛长,1),牛短,DRAWNULL),COLORRED,LINETHICK3;
IF(牛长<REF(牛长,1) OR 牛短<牛长,牛短,DRAWNULL),COLORGREEN,LINETHICK2;
IF(牛长<REF(牛长,1),牛长,DRAWNULL),COLORLIBLUE,LINETHICK2;
牛线:6,DOTLINE,LINETHICK1,COLORWHITE;
DRAWICON(CROSS(牛短,牛长),牛线+0.5,1);
{乾坤六道主图源码如下}
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'11',0);LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HA:=(HIGH - REF(HIGH,1));
LA:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HA > 0) AND (HA > LA)),HA,0),10);
DMM:=SUM(IF(((LA > 0) AND (LA > HA)),LA,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
买:=(AV + NEWVOL);
卖:=(AV - NEWVOL);
DRAWTEXT(CROSS(买,卖),L*0.98,'+买'),COLORYELLOW;
DRAWTEXT(CROSS(卖,买),H*1.02,'+卖'),COLORGREEN;
MA1:=MA(CLOSE,3);
MA2:=MA(CLOSE,5);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X:=BARSLAST(CROSS(MA1,MA2));
止损:REF(C,X+1)*(1-0.05),COLORGREEN;
止赢:REF(IF(C>O,C,O),X)*(1+0.1),COLORRED;
回踩止赢:HHV(H,X+1)*(1-0.03),COLORYELLOW,POINTDOT,LINETHICK4;