L2:=ma(C,3);
L3:=MA(C,60);
L4:=MA(C,120);
L5:=MA(C,40);
VAR1:=SUM(WINNER(CLOSE)*100,10)/10-(SUM(WINNER(CLOSE)*100,10)/20+10);
海岛: STICKLINE(VAR1>0,0,VAR1,1,0),COLORWHITE;
海水: STICKLINE(VAR1<0,0,VAR1,1,0),COLORYELLOW;
大龙出海: IF(crOSS(L2,L3) AND CLOSE<L4,15,0),COLORBLUE;
DRAWICON(大龙出海,15,1);
VAR2:=CLOSE/L5*100<78;
VAR3:=CLOSE/L3*100<74;
VAR4:=HIGH>(LOW*1.051);
VAR5:=VAR4 AND COUNT(VAR4,5)>1;
VAR6:=CLOSE/HHV(HIGH,BARSCOUNT(CLOSE>0))*100;
大龙入底: IF((REF(C,13)-CLOSE)/REF(C,13)*100*VAR3>15 AND SUM(vol/CAPITAL,13)*100<18 AND VOL/CAPITAL*100<2.5 AND (REF(C,1)-CLOSE)/REF(C,1)*100<8 AND VAR6<=50 AND VAR5 AND (VAR2 OR VAR3),-15,0);
DRAWICON(FILTER(大龙入底,6),-15,1);
DRAWTEXT(FILTER(大龙入底,6),-13,'大龙入底');
趋势:SMA(((CLOSE- LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1),COLORWHITE;
DRAWBAND(趋势,RGB(155,50,50),50,RGB(0,100,50));
判断:SMA(趋势,3,1),COLORBLUE;
转强:IF(趋势>50,趋势,DRAWNULL),COLORWHITE;
转弱:IF(趋势<50,趋势,DRAWNULL),COLORCYAN;
拉升:IF(判断>50 AND 趋势>判断,判断,DRAWNULL),COLORBLUE,LINETHICK5;
建仓:IF(判断<50 AND 趋势>判断,判断,DRAWNULL),COLORMAGENTA;
出货:IF(判断>50 AND 趋势<判断,判断,DRAWNULL),COLORLIBLUE,LINETHICK3;
RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
difF:=ema(CLOSE,2)-EMA(CLOSE,55);
DEA:=EMA(DIFF,6);
MacD:=2*(DIFF-DEA);
转点:=IF(K>D AND CCI>0 AND DIFF>DEA AND macd>0,1,0);
STICKLINE(转点=1,50,50,2,0),COLORBLUE;
STICKLINE(转点=0,50,50,2,0),COLORGREEN;
STICKLINE(C,90,90,1,0),COLORBLUE;
STICKLINE(C,10,10,1,0),COLORGREEN;