{金光大道}
NN:=200;
SAR空:=IF(CLOSE
沪深换手:="399300$AMOUNT"/1000000/42000,COLORAABBCC,LINETHICK1;
个股换手率:=VOL/CAPITAL*100;
VVB1:=WINNER(HHV(HIGH,250))*100;
VVB2:=WINNER(LLV(LOW,250))*100;
VVBB:=(VVB1+VVB2)*0.5;
平均成本70:=EMA(COST(VVBB),6),CROSSDOT,COLORFFAA00,LINETHICK1;
VV1:=WINNER(HHV(HIGH,30))*100;
VV2:=WINNER(LLV(LOW,30))*100;
VV27:=VV1-(VV1-VV2)*0.382;
VV50:=(VV1+VV2)*0.5;
VV4:=IF(C>VV50,VV1,VV27);
成本:=EMA(COST(VV4),3),CROSSDOT,COLOR0000BB,LINETHICK1;
获利平均值:=EMA(100*WINNER(C),45),COLOREEAA00,LINETHICK2;
成本转向:=ZIG(获利平均值,13),COLOREE00EE,LINETHICK1;
转向空:=DRAWLINE(成本转向>=REF(成本转向,1),成本转向,成本转向<=REF(成本转向,1),成本转向,0),COLORDD7700,LINETHICK2;
转向多:=DRAWLINE(成本转向<=REF(成本转向,1),成本转向,成本转向>=REF(成本转向,1),成本转向,0),COLOR0000FF,LINETHICK2;
ARSI:="RSI.RSI1#WEEK",COLOR5588AA;
BRSI:="RSI.RSI2#WEEK",COLOR00AACC;
CRSI:="RSI.RSI3#WEEK",COLOR77BB77;
月RSI1:="RSI.RSI1#MONTH";
月RSI2:="RSI.RSI2#MONTH";
月RSI3:="RSI.RSI3#MONTH";
月MD:="KDJ.D#MONTH";
月MK:="KDJ.K#MONTH";
周CK:="KDJ.K#WEEK";
周CD:="KDJ.D#WEEK";
AAA:=IF(C>=REF(C,3),1,0);
BBB:=IF(C>=REF(C,4),1,0);
CCC:=IF(C>=REF(C,5),1,0);
DDD:=IF(C>=REF(C,6),1,0);
EEE:=IF(C>=REF(C,7),1,0);
FFF:=IF(C>=REF(C,8),1,0);
GGG:=IF(C>=REF(C,9),1,0);
HHH:=IF(C>=REF(C,10),1,0);
III:=IF(C>=REF(C,11),1,0);
JJJ:=IF(C>=REF(C,12),1,0);
GZ2:=AAA+BBB+CCC+DDD+EEE+FFF+GGG+HHH+III+JJJ;
KK:=REF(GZ2,1)+REF(GZ2,2)+REF(GZ2,3)+REF(GZ2,4);
KKK:=KK/4;
GJ:=IF(CLOSE=CLOSE,(HIGH+LOW+OPEN+CLOSE)/4,AMOUNT/(V+0.001)/100);
明日阻力:=L+(GJ-L)+(C-L);
明日支撑:=L+(C-GJ);
今日阻力:=REF(明日阻力,1);
今日支撑:=REF(明日支撑,1);
阻支:=(今日阻力+今日支撑)*0.5;
支撑:=LLV(今日支撑,21);
阻力:=HHV(今日阻力,21);
支撑50:=LLV(今日支撑,55);
阻力50:=HHV(今日阻力,55);
阻支HL:=(H+L)*0.5;
波浪阻支:=ZIG(阻支HL,15);
波浪线:=ZIG(3,15);
MA1:=MA(HIGH,1);
MAA:=MA(LOW,1);
支撑34:=LLV(今日支撑,34);
阻力34:=HHV(今日阻力,34);
ZQC:=IF((支撑+阻力)*0.5=(支撑34+阻力34)*0.5,(支撑+阻力)*0.5,(支撑34+阻力34)*0.5),CROSSDOT,COLOR55EE00;
ZQB:DRAWLINE(H
ZQA:DRAWLINE(H>ZQC,ZQC,H
低A:=LLV(LOW,66);
最低:=REFDATE(低A,DATE);
最高:=REFDATE(高A,DATE);
HL38:=高A-(高A-低A)*0.38;
中轴:=高A-(高A-低A)*0.5;
HL62:=高A-(高A-低A)*0.62;
HL72:=高A-(高A-低A)*0.725;
新低:=STICKLINE(低A=LOW,LOW,HL62,0,1),COLORFFBBFF;
新高:=STICKLINE(高A=HIGH,HIGH,HL38,0,1),COLOR00FF00;
趋势线72:=DRAWTEXT(新低 AND CROSS(新低,HL72),HL72,1);
趋势线62:=DRAWTEXT(新低 AND CROSS(新低,HL62),HL62,1);
中轴趋势线:=DRAWTEXT(新低 AND CROSS(新低,中轴),中轴,1);
趋势线38:=DRAWTEXT(新低 AND CROSS(新低,HL38),HL38,1);
趋势线1:=DRAWLINE(新高,H,趋势线38,HL38,1),POINTDOT,COLOR00DDFF;
趋势线2:=DRAWLINE(新高,H,中轴趋势线,中轴,1),POINTDOT,COLOR00DDFF;
趋势线3:=DRAWLINE(新高,H,趋势线62,HL62,0),POINTDOT,COLOR00DDFF;
趋势线4:=DRAWLINE(新高,H,趋势线72,HL72,0),POINTDOT,COLOR00DDFF;
趋势线A:=IF(C>趋势线1,趋势线2,趋势线1),COLORCCCC13,LINETHICK1;
趋势线B:=IF(C>趋势线2,趋势线3,趋势线2),COLORCCCC13,LINETHICK1;
趋势线C:=IF(C>趋势线3,趋势线4,趋势线3),COLORCCCC13,LINETHICK1;
趋势线H62:=DRAWTEXT(新高 AND CROSS(新高,HL62),HL62,1);
趋势线H38:=DRAWTEXT(新高 AND CROSS(新高,HL38),HL38,1);
中轴趋势线H:=DRAWTEXT(新高 AND CROSS(新高,中轴),中轴,1);
趋势线D:=DRAWLINE(新低,L,趋势线H38,HL38,1),POINTDOT,COLORFFFF00;
趋势线E:=DRAWLINE(新低,L,趋势线H62,HL62,1),POINTDOT,COLORFFFF00;
趋势线F:=DRAWLINE(新低,L,中轴趋势线H,中轴,1),POINTDOT,COLORFFFF00;
STICKLINE(趋势线A,趋势线A,趋势线B,0,1),COLORBB3456;
高AA:=HHV(H,NN);
低AA:=LLV(L,NN);
最低AA:=REFDATE(低AA,DATE);
最高AA:=REFDATE(高AA,DATE);
牛熊L1:=低AA+(高AA-低AA)*0.5;
牛熊中轴:=REFDATE(牛熊L1,DATE),POINTDOT,COLORFF00FF,LINETHICK2;
牛熊L2:=低AA+(牛熊中轴-低AA)*0.5;
MZ:=牛熊中轴+(高AA-牛熊中轴)*0.5;
熊箱:=REFDATE(牛熊L2,DATE),POINTDOT,COLOREE5500,LINETHICK3;
牛箱:=REFDATE(MZ,DATE),POINTDOT,COLOREE5500,LINETHICK3;
HP1:=(最高AA+牛箱)*0.5,POINTDOT,COLOR909090;
HP2:=(最高AA+HP1)*0.5,POINTDOT,COLOR909090;
HP3:=(最高AA+HP2)*0.5,POINTDOT,COLOR909090;
LP1:=(最低AA+熊箱)*0.5,POINTDOT,COLOR909090;
LP2:=(最低AA+LP1)*0.5,POINTDOT,COLOR909090;
LP3:=(最低AA+LP2)*0.5,POINTDOT,COLOR909090;
HIGH1:=IF(HIGH
HIGH2:=IF(HIGH<(REF(H,2)+REF(H,1))/2,(H+L)*0.5,HIGH);
LOW1:=IF(LOW>REF(L,1),CLOSE,(H+L)*0.5);
LOW2:=IF(LOW>(REF(L,2)+REF(L,1))/2,(H+L)*0.5,LOW);
OPEN1:=IF(OPEN
AGJ:=(3*HIGH1+HIGH2+LOW1+OPEN1+CLOSE+LOW)/8;
VARC:=MONTH/VOL/100;
VARE:=SUM(MONTH,6) OR AMOUNT/VARC/100;
CYC6:=DMA(AGJ,VOL/VARE),COLORBB88FF,LINETHICK1;
DC65:EMA(EMA(CYC6,65),5),CROSSDOT,COLOR339966,LINETHICK1;
IF(成本转向>=REF(成本转向,1),DC65,DRAWNULL),CROSSDOT,COLOR0000EE,LINETHICK1;
DC44:=EMA(EMA(CYC6,44),5),COLOR336699,LINETHICK1;
DCAA:=EMA(EMA(CYC6,77),10),COLORCC6677,LINETHICK1;
高1:=HHV(H,70);
低1:=LLV(L,70);
分割低起:=REFDATE(低1,DATE),POINTDOT,COLOR00FFEE;
分割O:=分割低起;
分割A:=分割低起*1.129;
分割B:=分割低起*1.275;
分割C:=分割低起*1.5;
分割D:=分割低起*1.625;
分割E:=分割低起*2;
HLP:=(高1+低1)*0.5;
新低A:=STICKLINE(低1=LOW,LOW,HLP,0,1);
新高A:=STICKLINE(高1=HIGH,HIGH,HLP,0,1);
分割OO:=DRAWTEXT(新低A AND CROSS(波浪线,分割O),分割O,1);
近低:=DRAWLINE(分割OO,分割O,分割O,分割O,1),POINTDOT,COLOR00FFEE,LINETHICK1;
分割AA:=DRAWTEXT(新低A AND CROSS(波浪线,分割A),分割A,1);
一卡:=DRAWLINE(分割AA,分割A,分割A,分割A,1),POINTDOT,COLOR00FFEE,LINETHICK1;
分割BB:=DRAWTEXT(新低A AND CROSS(波浪线,分割B),分割B,1);
二卡:=DRAWLINE(分割BB,分割B,分割B,分割B,1),POINTDOT,COLOR00FFEE,LINETHICK1;
分割CC:=DRAWTEXT(新低A AND CROSS(波浪线,分割C),分割C,1);
三卡A:=DRAWLINE(分割CC,分割C,分割C,分割C,1),POINTDOT,COLOR00FFEE,LINETHICK1;
三卡:=IF(MA1>(二卡+三卡A)/2,三卡A,二卡),POINTDOT,COLOR00FFEE,LINETHICK1;
STICKLINE(近低,近低,近低,1,1),COLOR666655;
STICKLINE(一卡,一卡,一卡,1,1),COLOR776655;
STICKLINE(二卡,二卡,二卡,1,1),COLOR886655;
STICKLINE(三卡,三卡,三卡,1,1),COLORAA6655;
新低BB:=STICKLINE(低AA=LOW,LOW,牛熊L1,0,1),COLORFFBBFF;
新高BB:=STICKLINE(高AA=HIGH,HIGH,牛熊L1,0,1),COLOR00FF00;
上下27:=低AA+(高AA-低AA)*0.275;
上下38:=低AA+(高AA-低AA)*0.382;
上下50:=低AA+(高AA-低AA)*0.5;
上下62:=低AA+(高AA-低AA)*0.625;
上下72:=低AA+(高AA-低AA)*0.725;
上下87:=低AA+(高AA-低AA)*0.87;
HH87:=DRAWTEXT(新高BB AND CROSS(上下87,新高BB),上下87,2);
支87线:=DRAWLINE(新低,L,HH87,上下87,1),POINTDOT,COLOR00FF00,LINETHICK1;
HH72:=DRAWTEXT(新高BB AND CROSS(上下72,新高BB),上下72,2);
支72线:=DRAWLINE(新低BB,L,HH72,上下72,1),COLOR00BBAA,LINETHICK1;
HH62:=DRAWTEXT(新高BB AND CROSS(上下62,新高BB),上下62,2);
支62线:=DRAWLINE(新低BB,L,HH62,上下62,1),COLOR0088EE,LINETHICK1;
HH50:=DRAWTEXT(新高BB AND CROSS(上下50,新高BB),上下50,2);
支50线:=DRAWLINE(新低BB,L,HH50,上下50,1),COLOR0078EE,LINETHICK1;
HH38:=DRAWTEXT(新高BB AND CROSS(上下38,新高),上下38,2);
强支撑:=DRAWLINE(新低BB,L,HH38,上下38,1),COLOR0062DD,LINETHICK2;
HH27:=DRAWTEXT(新高BB AND CROSS(上下27,新高BB),上下27,2);
支27线:=DRAWLINE(新低BB,L,HH27,上下27,1),COLOR0078EE,LINETHICK1;
支27:=DRAWLINE(新低BB,L,CROSS(支27线,L),支27线,0),COLORAAAAAA,LINETHICK1;
支38:DRAWLINE(新低BB,L,CROSS(强支撑,C),强支撑,0),COLOR0000FF,LINETHICK2;
支50:DRAWLINE(新低BB,L,CROSS(支50线,C),支50线,0),COLORFF37AA,LINETHICK1;
支62:DRAWLINE(新低BB,L,CROSS(支62线,C),支62线,0),COLORFF37AA,LINETHICK1;
支72:DRAWLINE(新低BB,L,CROSS(支72线,C),支72线,0),COLORFF37AA,LINETHICK1;
支87:DRAWLINE(新低BB,L,CROSS(支87线,C),支87线,0),COLORYELLOW,LINETHICK2;
DRAWLINE(C<强支撑,强支撑,MA1*1.05>=强支撑,强支撑,0),COLOR0000FF,LINETHICK2;
DRAWLINE(C<支50线,支50线,MA1*1.05>=支50线,支50线,0),COLORFF37AA,LINETHICK1;
DRAWLINE(C<支62线,支62线,MA1*1.05>=支62线,支62线,0),COLORFF47AA,LINETHICK1;
DRAWLINE(C<支72线,支72线,MA1*1.05>=支72线,支72线,0),COLORFF57AA,LINETHICK1;
B27线:=DRAWLINE(C<支27线,支27线,MA1*1.05>=支27线,支27线,0),COLORAAAAAA,LINETHICK1;
DF:=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),COLOR00EEFF,LINETHICK1;
KF:=EMA(MA(DF,5),7),COLOR777777,LINETHICK1;
个股EMA:=EMA(EMA(100*(C-LLV(LOW,NN))/(HHV(H,NN)-LLV(LOW,NN)),3),2),COLORAAAAFF,LINETHICK1;
个股转向线:=ZIG(个股EMA,15),COLOR00DD00,LINETHICK1;
持仓:=IF(个股转向线>REF(个股转向线,2),个股转向线,DRAWNULL);
空仓:=IF(个股转向线<=REF(个股转向线,2),个股转向线,DRAWNULL);
KD转向:=IF(ZIG((H+L)*0.5,5)=ZIG(3,5),ZIG(3,5),ZIG((H+L)*0.5,5));
RSV:=(KD转向-LLV(KD转向,8))/(HHV(KD转向,8)-LLV(KD转向,8))*100;
K:=SMA(RSV,3,1),COLOR336688,LINETHICK2;
D:=SMA(K,3,1),COLOR809000,LINETHICK2;
DC6:EMA(CYC6,20),COLOR1000AA,LINETHICK1;
DC5:EMA(CYC6,16),COLOR1000AA,LINETHICK1;
DC4:EMA(CYC6,12),COLOR1000AA,LINETHICK1;
DC3:EMA(CYC6,9),COLOR1000AA,LINETHICK1;
DC2:=EMA(CYC6,7),COLOR1000AA,LINETHICK1;
DC1:=EMA(CYC6,5),COLOR1000AA,LINETHICK1;
K1:=BACKSET(DC1<=REF(DC1,1),2);
IF(K1,DC1,DRAWNULL),COLORBB9900,LINETHICK1;
K2:=BACKSET(DC2<=REF(DC2,1),2);
IF(K2,DC2,DRAWNULL),COLORBB9900,LINETHICK1;
K3:=BACKSET(DC3<=REF(DC3,1),2);
IF(K3,DC3,DRAWNULL),COLORBB9900,LINETHICK1;
K4:=BACKSET(DC4<=REF(DC4,1),2);
IF(K4,DC4,DRAWNULL),COLORBB9900,LINETHICK1;
K5:=BACKSET(DC5<=REF(DC5,1),2);
IF(K5,DC5,DRAWNULL),COLORBB9900,LINETHICK1;
K6:=BACKSET(DC6<=REF(DC6,1),2);
IF(K6,DC6,DRAWNULL),COLORBB9900,LINETHICK1;
DH:=MAX(MAX(DC1,DC3),DC6);
XL:=MIN(MIN(DC1,DC3),DC6);
STICKLINE((成本转向>=REF(成本转向,1) OR 波浪线>=REF(波浪线,1) OR 周CK>=周CD) AND CROSS(C,DC1) AND CROSS(C,DC3) AND DH/XL<1.025 AND
DC2>=DC6 AND DC44>=REF(DC44,1) AND VOL/REF(VOL,1)>1.1 AND C>O AND (C-REF(C,1))/REF(C,1)>0.027,C,O,2.6,0),COLOR1800DD;
箱顶:=PEAK(CLOSE,10,1)*0.98,COLOR808080;
箱底:=TROUGH(CLOSE,10,1)*1.02,COLOR0066AA;
箱高:=100*(箱顶-箱底)/箱底,NODRAW;
箱底1:=DRAWLINE(CROSS(C,箱底),箱底,CROSS(箱顶,C),箱底,0),COLOR000090;
箱顶1:DRAWLINE(CROSS(箱顶,C),箱顶,CROSS(C,箱顶),箱顶,0),COLORFF0000;
箱底A:DRAWTEXT(CROSS(C,箱底) AND C>REF(H,1),(H+L)/2,' -箱底'),COLORFF00FF;
波低:=DRAWICON(CROSS(ZIG(3,15),REF(ZIG(3,15),1)) AND (月RSI1>月RSI3 OR 波浪线>=REF(波浪线,1)),LOW,25);
波高:=DRAWICON((月RSI1<月RSI3 OR 波浪线<=REF(波浪线,1)) AND CROSS(REF(ZIG(3,15),1),ZIG(3,15)) AND DF
劲下:STICKLINE(波高 OR (CROSS("RSI.RSI3#WEEK","RSI.RSI2#WEEK") AND 月RSI3>月RSI1 AND 波浪线
劲上:STICKLINE(CROSS(波浪线,REF(波浪线,1)) AND (CROSS(ARSI,CRSI) OR CROSS(周CK,周CD) OR CROSS(月MK,月MD)),C,O,1.5,0),COLOR008899;
STICKLINE((个股换手率>=沪深换手 OR VOL/(REF(VOL,1)+REF(VOL,2))/2>1.1) AND 持仓 AND 波浪线>REF(波浪线,1) AND C>阻支HL AND (C-REF(C,1))/REF(C,1)>
0.02 AND (CROSS(C,成本) OR CROSS(C,SAR空) OR CROSS(C,趋势线4) OR CROSS((H+L)*0.5,箱顶) OR CROSS((H+L)*0.5,牛箱) OR
CROSS((H+L)*0.5,牛熊中轴) AND C>(H-L)*0.725+L AND (C-REF(C,1))/REF(C,1)>0.027),C,O,0.8,0),COLORAA33FF;
BOL:=DRAWICON(CROSS(L,BOLL) AND CROSS(C,DC1) AND CROSS(C,DC3) AND DC3>=REF(DC3,1)
AND BOLL>=REF(BOLL,1) AND VOL/REF(VOL,1)>1.15 AND 波浪线>=REF(波浪线,1) AND C>=今日阻力,今日支撑,13);
周金RK:=DRAWTEXT(CROSS("RSI.RSI1#WEEK","RSI.RSI3#WEEK") AND CROSS(周CK,周CD),L,' RK☆'),COLORFFAAFF;
周死RK:=DRAWTEXT(CROSS("RSI.RSI3#WEEK","RSI.RSI1#WEEK") AND CROSS(周CD,周CK),H,' RK☆'),COLORCCCCCC;
月金RR:=CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK") AND ("RSI.RSI2#MONTH">="RSI.RSI3#MONTH")
AND ("RSI.RSI1#MONTH">"RSI.RSI2#MONTH") AND 成本转向>=REF(成本转向,1);
空A38:DRAWTEXT((CROSS(趋势线E,C) OR CROSS(强支撑,C)) AND 波浪线<=REF(波浪线,1),H,' 38↓'),COLOR00EE00;
空A50:DRAWTEXT(CROSS(趋势线F,C) AND 波浪线<=REF(波浪线,1),H,' 50↓'),COLOR00EE00;
空A62:DRAWTEXT(CROSS(趋势线D,C) AND 波浪线<=REF(波浪线,1),H,' 62↓'),COLOR00EE00;
波多柱:STICKLINE((波浪线>=REF(波浪线,1) OR 波浪阻支>=REF(波浪阻支,1)) AND K>=REF(K,1),C,O,0,0),COLORFF58FF;
下波柱:STICKLINE((空仓 OR 波浪线<=REF(波浪线,1)) AND K<=REF(K,1) AND C
阻支ZGB:=IF(C>阻支,阻支,今日支撑);
STICKLINE(C<=O,阻支ZGA,阻支ZGA,2,0),COLOR87EE00;
STICKLINE(C>O OR C>阻支HL,今日阻力,今日阻力,2,0),COLOREE66FF;
STICKLINE(C>今日支撑,阻支ZGB,阻支ZGB,2,1),COLOR777888;
上穿压:=DRAWICON(波浪线>=REF(波浪线,1) AND C>阻支HL AND DC3>=DC3 AND (个股换手率>=沪深换手 AND VOL/REF(VOL,1)>1.15)
AND 成本转向>=REF(成本转向,1) AND (CROSS(C,成本) OR CROSS((H+L)*0.5,SAR空) OR BOL OR CROSS((H+L)*0.5,牛熊中轴) OR CROSS((H+L)*0.5,牛箱)
OR CROSS(C,箱顶1)),阻支ZGB,23);
穿上:DRAWICON(持仓 AND ARSI>=CRSI AND C>(H+L)*0.5 AND (CROSS(C,支87线) OR CROSS(C,支72线) OR CROSS(C,支62线) OR CROSS(C,支50线) OR CROSS(C,强支撑) OR
CROSS(C,支27线) OR CROSS(C,趋势线A) OR CROSS(C,趋势线B) OR CROSS(C,趋势线C) OR CROSS(C,箱底) OR 上穿压),阻支ZGB,1);
穿下:DRAWICON((CROSS(支27线,(H-L)*0.625+L) OR CROSS(强支撑,波浪线) OR CROSS(支50线,波浪线) OR CROSS(支62线,波浪线) OR CROSS(支72线,波浪线) OR CROSS(支87线,C))
AND C
DRAWTEXT((月金RR OR 月金RK) AND C>阻支,L,'E金叉'),COLOR00FFEE;
X高:=DRAWTEXT(CROSS(REF(ZIG(3,15),1),ZIG(3,15)) AND C<=(H+L)/2,H,' 新高'),COLOR00EE00;
X低:DRAWTEXT(CROSS(ZIG(3,5),REF(ZIG(3,5),1)) AND C>=(H+L)/2,今日支撑,'旭日东升'),COLORYELLOW;
DRAWICON((月RSI1<月RSI3 OR 波浪线<=REF(波浪线,1)) AND CROSS(REF(ZIG(3,15),1),ZIG(3,15)) AND DF
STICKLINE(CROSS(ZIG(3,5),REF(ZIG(3,5),1)) AND C>=(H+L)/2,C,O,2,0),COLORYELLOW;
STICKLINE(CROSS(ZIG(3,5),REF(ZIG(3,5),1)) AND C>=(H+L)/2,H,L,0,0),COLORYELLOW;