VVV1:=(C*2+H+L)/4*10;
VVV2:=EMA(VVV1,13)-EMA(VVV1,34);
VVV3:=EMA(VVV2,5);
VVV4:=(VVV2-VVV3)/5;
主力进:IF(VVV4>=0,VVV4,0),COLORRED;
N1:=9;N2:=12;N3:=26;M:=10;M1:=15;M2:=30;
筹码短期:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,8)/(AMOUNT/VOL/100)/100));
筹码中期:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100));
筹码长期:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,20)/(AMOUNT/VOL/100)/100));
DIF:=EMA(EMA(CLOSE,18)-EMA(CLOSE,34),11);
MACD:=EMA(EMA(DIF,11),11),COLOR58FF58;
DEF:=2*(DIF-MACD),COLORFFFF00,LINETHICK0;
BY:=CROSS(筹码短期,筹码中期);
BYO:=CROSS(筹码中期,筹码短期);
STICKLINE(DEF>=0 AND DEF>=REF(DEF,1) AND COUNT(BY,30)>0,-0.02,ABS(DEF*0.6999),2,0),COLOR6055FF;
STICKLINE(DEF>=0 AND DEF< REF(DEF,1),0,ABS(DEF*0.666),2,1),COLOR3344EE;
{ STICKLINE(DEF<0 AND DEF>=REF(DEF,1),0,DEF*0.625,2,1),COLOR9966CC;
STICKLINE(DEF<0 AND DEF< REF(DEF,1),0,DEF*0.666,2,0),COLORCC6600;}
STICKLINE(BY,0,0.21,1,0),COLORBBBBFF;
{STICKLINE(BYO,0,-0.18,1,0),COLOR33CC00;}
DRAWTEXT(BY,0.20,'中线走上'),COLOR0000FF;
多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1) -3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);
天线:=78.89;
DRAWTEXT(CROSS(天线,多方趋势),0.2,'高◇'),COLORF0F000;
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/211;
D2:=EMA(D1,2);
D3:=EMA(D2,2);
K1:=EMA(D3,2);
波段买入:DRAWTEXT(CROSS(D1,K1),-0.10,'买↑'),COLOR0000EE;
DIFFR:EMA(CLOSE,N1)- EMA(CLOSE,N2),COLOR00FF00,LINETHICK1;
DEAR:EMA(DIFFR,N3),COLORCCCCCC,LINETHICK1;
MACM:=2*(DIFFR-DEAR),LINETHICK1;
MACDR:=2*(DIFFR-DEAR),COLORSTICK;
FRR:=LLV(MACDR,13);
FRF:=LLV(MACDR,21);
DIFF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1:=EMA(DIFF1,27); MACD1:=2*(DIFF1-DEA1);
MACM1:=2*(DIFF1-DEA1);
BBM:=CROSS(DIFF1,DEA1)AND CROSS(MACM1,DEA1);
DEA2:=EMA(DIFF1,9);
MACD2:=2*(DIFF1-DEA2);
BBK:=CROSS(DIFF1,DEA2)AND CROSS(MACD2,DEA2)AND MACD2>DIFFR;
DRAWTEXT(BBK,0.06,'MA▲'),COLORFFCC00;
BAK:=CROSS(DIFFR,DEAR)AND CROSS(MACDR,DEAR)AND MACDR>DIFFR AND DIFFR>0;
DRAWTEXT(BAK,0.15,'★★MM'),COLORYELLOW;{21 }
DRAWTEXT(CROSS(DIFFR,DEAR),DEAR,'☆'),COLORFFFFFF;
周死叉:DRAWTEXT(CROSS("RSI.RSI3#WEEK","RSI.RSI2#WEEK"),0.20,'☆R↓'),COLOR00FF00;
DRAWTEXT(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),-0.1,'☆R↑'),COLOR00FFFF;