解盘合集
IF NN=2 THEN BEGIN
A11:="1A0001$CLOSE";
A21:="399001$CLOSE";
A1:=IF(CLOSE=A11,A21,A11);
A2:=REF(A1,1);
A3:=(A1-A2)/MIN(A1,A2)*100;
大盘涨幅:=SUM(A3,10);
B2:=REF(CLOSE,1);
B3:=(CLOSE-B2)/MIN(CLOSE,B2)*100;
个股涨幅:=SUM(B3,10);
XD:=个股涨幅-大盘涨幅;
快线:EMA(XD,10),LINETHICK1;
慢线:EMA(快线,5),LINETHICK1;
差值:(快线-慢线)*2,COLORSTICK;
PARTLINE(快线>REF(快线,1),快线),LINETHICK1,colorFF00FF;
周期类型:=DATATYPE;
EXPLAIN(周期类型=6,'短期强弱解盘'),colorFF00;
EXPLAIN(周期类型=7,'中期强弱解盘'),colorFF00;
EXPLAIN(周期类型=8,'长期强弱解盘'),colorFF00;
EXPLAIN(周期类型<6,'分钟线解盘'),colorFF00;
EXPLAIN(REF(快线,1)>快线 AND 差值>0,'关注可能转弱'),colorFFFF;
EXPLAIN(REF(快线,1)<快线 AND 慢线<0,'关注可能转强'),colorF0E1FF;
EXPLAIN(CROSS(快线,慢线) AND 快线<0,'金叉慎重买入,走势弱于大盘'),colorF0E1FF;
EXPLAIN(快线>慢线 AND 慢线<0,'已开始转强,持股,走势弱于大盘'),colorF0E1FF;
EXPLAIN(CROSS(快线,慢线) AND 慢线>0,'金叉大胆买入,走势强于大盘'),colorF0E1FF;
EXPLAIN(快线>慢线 AND 慢线>0,'强势,持股,走势强于大盘'),colorF0E1FF;
EXPLAIN(CROSS(慢线,快线) AND 慢线>0,'死叉慎重卖出,走势强于大盘'),colorFFFF;
EXPLAIN(快线<慢线 AND 慢线>0,'已开始转弱,空仓,走势强于大盘'),colorFFFF;
EXPLAIN(CROSS(慢线,快线) AND 快线<0,'死叉卖出,走势弱于大盘'),colorFFFF;
EXPLAIN(快线<慢线 AND 慢线<0,'弱势,空仓,走势弱于大盘'),colorFFFF;
早晨之星:=REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)[1.05 AND CLOSE>REF(CLOSE,2);]
黄昏之星:=REF(CLOSE,2)/REF(OPEN,2)>1.03 AND REF(OPEN,1)>REF(CLOSE,2) AND (ABS(REF(OPEN,1)-REF(CLOSE,1)))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE
长十字:=CLOSE=OPEN AND HIGH/LOW>1.03;
垂死十字:=CLOSE=OPEN AND CLOSE=LOW AND CLOSE<>HIGH;
早晨十字星:=REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)[1.05 AND CLOSE>REF(CLOSE,2);]
黄昏十字星:=REF(CLOSE,2)/REF(OPEN,2)>1.05 AND REF(OPEN,1)>REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN<0.95 AND CLOSE
射击之星:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE>MA(CLOSE,5);
倒转锤头:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE
锤头:=HIGH=MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE
吊颈:=HIGH=MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5);
穿头破脚:=REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE[REF(CLOSE,1) OR REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN]
乌云盖顶:=REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE
曙光初现:=REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN[REF(CLOSE,1);]
身怀六甲:=(ABS(REF(CLOSE,1)-REF(OPEN,1)))/REF(CLOSE,1)>0.04 AND (ABS(CLOSE-OPEN))/CLOSE<0.005 AND MAX(CLOSE,OPEN)MIN(REF(CLOSE,1),REF(OPEN,1));
十字胎:=(ABS(REF(CLOSE,1)-REF(OPEN,1)))/REF(CLOSE,1)>0.04 AND CLOSE=OPEN AND CLOSEMIN(REF(CLOSE,1),REF(OPEN,1));
平顶:=(ABS(HIGH-REF(HIGH,1)))/HIGH<0.001;
平底:=(ABS(LOW-REF(LOW,1)))/LOW<0.001 AND (ABS(REF(LOW,1)-REF(LOW,2)))/REF(LOW,1)<=0.001;
大阳烛:=CLOSE/OPEN>1.05 AND HIGH/LOW
三个白武士:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPEN AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1);
双飞乌鸦:=REF(CLOSE,1)
孕育线:=REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1) AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND CLOSE>=OPEN AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND (MAX(CLOSE,REF(CLOSE,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=1/100;
多方炮:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)[OPEN;]
出水芙蓉:=(OPENMAX(EMA(CLOSE,20),MAX(EMA(CLOSE,40),EMA(CLOSE,60))) AND VOL/MA(VOL,30)>1.2 AND CLOSE/REF(CLOSE,1)>1.049;
上升三部曲:=REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)[REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4);]
下跌三部曲:=REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)[REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 AND CLOSE]
跳空缺口:=HIGH[REF(HIGH,1);]
三只乌鸦:=REF(CLOSE,2)
光脚阴线:=LOW=CLOSE AND HIGH<>LOW;
光头阳线:=HIGH=CLOSE AND HIGH<>LOW;
分离:=OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0;
长下影:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667;
长上影:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667;
十字星:=CLOSE=OPEN AND HIGH<>LOW;
大阴烛:=OPEN/CLOSE>1.05 AND HIGH/LOW
好友反攻:=REF(CLOSE,1)[OPEN AND (ABS(CLOSE-REF(CLOSE,1)))/CLOSE<0.002 OR REF(CLOSE,1)>REF(OPEN,1) AND CLOSE
倾盆大雨:=REF(CLOSE,1)/REF(OPEN,1)>=1.03 AND OPEN][REF(OPEN,1) AND CLOSE]
EXPLAIN(倾盆大雨,'K线形态分析:倾盆大雨,见顶信号;'),colorFFFF00;
EXPLAIN(大阴烛,'K线形态分析:大阴烛,后市向淡,发生逆转;'),colorFFFF00;
EXPLAIN(好友反攻,'K线形态分析:好友反攻,底部反转;'),colorFF;
EXPLAIN(跳空缺口,'K线形态分析:跳空缺口,注意向上还是向下跳空;'),colorFFFFFF;
EXPLAIN(光脚阴线,'K线形态分析:光脚阴线,下跌信号;'),colorFFFF00;
EXPLAIN(光头阳线,'K线形态分析:光头阳线,后市看涨;'),colorFF;
EXPLAIN(三只乌鸦,'K线形态分析:三只乌鸦,可能见顶回落;'),colorFFFF00;
EXPLAIN(分离,'K线形态分析:分离,注意看涨分离和看跌分离;'),colorFFFFFF;
EXPLAIN(长下影,'K线形态分析:长下影,持续下跌后出现,有可能止跌回升;在升势末期出现,须多加留意;'),colorFF;
EXPLAIN(长上影,'K线形态分析:长上影,表明行情上档压力沉重,升势受阻;'),colorFFFF00;
EXPLAIN(下跌三部曲,'K线形态分析:下跌三部曲,下跌信号;'),colorFF;
EXPLAIN(上升三部曲,'K线形态分析:上升三部曲,上涨信号;'),colorFFFF00;
EXPLAIN(早晨之星,'K线形态分析:早晨之星,见底回升;'),colorFF;
EXPLAIN(黄昏之星,'K线形态分析:黄昏之星,见顶回落;'),colorFFFF00;
EXPLAIN(十字星,'K线形态分析:十字星,有转向意味,注意股价位置在顶部还是底部;'),colorFFFFFF;
EXPLAIN(长十字,'K线形态分析:长十字,注意在顶部还是底部;'),colorFFFFFF;
EXPLAIN(垂死十字,'K线形态分析:垂死十字,下跌信号;'),colorFFFF00;
EXPLAIN(早晨十字星,'K线形态分析:早晨十字星,上涨信号,见底回升;'),colorFF;
EXPLAIN(黄昏十字星,'K线形态分析:黄昏十字星,下跌信号,见顶回落;'),colorFFFF00;
EXPLAIN(射击之星,'K线形态分析:射击之星,可能见顶回落,可靠性低;'),colorFFFF00;
EXPLAIN(倒转锤头,'K线形态分析:倒转锤头,可能见底回升;'),colorFF;
EXPLAIN(锤头,'K线形态分析:锤头,可能见底回升,如有量配合,信号强烈;'),colorFF;
EXPLAIN(吊颈,'K线形态分析:吊颈,上升行情中见顶回落,顶部出现,见顶信号;'),colorFFFF00;
EXPLAIN(平顶,'K线形态分析:平顶,温和的反转;'),colorFFFF00;
EXPLAIN(穿头破脚,'K线形态分析:穿头破脚,顶部出现,见顶回落信号;'),colorFFFF00;
EXPLAIN(乌云盖顶,'K线形态分析:乌云盖顶,见顶回落信号;'),colorFFFF00;
EXPLAIN(曙光初现,'K线形态分析:曙光初现,后市见底回升;'),colorFF;
EXPLAIN(身怀六甲,'K线形态分析:身怀六甲,出现在底部,是见底回升信号;出现在顶部,是见顶回落信号;'),colorFF;
EXPLAIN(十字胎,'K线形态分析:十字胎;'),colorFF;
EXPLAIN(平底,'K线形态分析:平底,温和的反转;'),colorFF;
EXPLAIN(大阳烛,'K线形态分析:大阳烛,,看涨;'),colorFF;
EXPLAIN(三个白武士,'K线形态分析:三个白武士,每日收盘价上移,表示可能见底回升;'),colorFF;
EXPLAIN(双飞乌鸦,'K线形态分析:双飞乌鸦,行情将见顶回落;'),colorFFFF00;
EXPLAIN(孕育线,'K线形态分析:孕育线,注意股价位置;'),colorFFFFFF;
EXPLAIN(多方炮,'K线形态分析:多方炮,在底部出现有上涨以为,在中间出现有可能是上涨中继,顶部出现是复合见顶信号;'),colorFF;
EXPLAIN(出水芙蓉,'K线形态分析:出水芙蓉,见底回升;'),colorFF;
换手%:=VOL/CAPITAL*100;
EXPLAIN(换手%<=1,'地量'),colorBBBBBB;
EXPLAIN(换手%<=2 AND 换手%>1,'低靡'),colorBBBBBB;
EXPLAIN(换手%<=3 AND 换手%>2,'温和'),colorBBBBBB;
EXPLAIN(换手%<=5 AND 换手%>3,'活跃'),colorBBBBBB;
EXPLAIN(换手%<=8 AND 换手%>5,'带量'),colorBBBBBB;
EXPLAIN(换手%<=15 AND 换手%>8,'放量'),colorBBBBBB;
EXPLAIN(换手%<=25 AND 换手%>15,'巨量'),colorBBBBBB;
END;
IF NN=1 THEN BEGIN
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
VK:=SQRT(VOL/CAPITAL*100*5);
EXPLAIN(MA5>MA10 AND MA10>MA30 AND MA5>MA30,'解:短期均线排列:多头'),colorFFFF;
EXPLAIN(MA5
EXPLAIN(MA30>MA60 AND MA30>MA120 AND MA60>MA120,'解:中期均线排列:多头'),colorFFFF;
EXPLAIN(MA30
EXPLAIN(MA60>MA120 AND MA120>MA250 AND MA60>MA250,'解:长期均线排列:多头'),colorFFFF;
EXPLAIN(MA60
EXPLAIN(CROSS(MA5,MA10),'解:短期均线5x10:金叉'),colorFF;
EXPLAIN(CROSS(MA10,MA5),'解:短期均线5x10:死叉');
EXPLAIN(CROSS(CLOSE,MA120),'解:今日股价上穿半年线');
EXPLAIN(CROSS(MA120,CLOSE),'解:今日股价跌破半年线');
EXPLAIN(CROSS(CLOSE,MA250),'解:今日股价上穿一年线');
EXPLAIN(CROSS(MA250,CLOSE),'解:今日股价跌破一年线');
EXPLAIN(CROSS(CLOSE,MA60) AND CROSS(CLOSE,MA120) AND CROSS(CLOSE,MA250),'解:股价一阳上穿三线');
EXPLAIN(MA30>REF(MA30,1),'解:30日均线趋势:向上');
EXPLAIN(MA30>REF(MA30,1) AND MA30
EXPLAIN(MA30
EXPLAIN(MA5>REF(MA5,1)*1.015,'解:5日均线:强劲向上');
EXPLAIN(MA5>REF(MA5,1) AND MA5
EXPLAIN(MA5
DIFF:=EMA(CLOSE,5)-EMA(CLOSE,20);
DEA:=EMA(DIFF,10);
MACD:=2*(DIFF-DEA);
JC:=CROSS(DIFF,DEA);
SC:=CROSS(DEA,DIFF);
DCJC:=JC AND DEA>0;
EXPLAIN(JC AND DEA>0,'解:MACD在0轴上金叉'),colorFF;
EXPLAIN(JC AND DEA<0,'解:MACD在0轴下金叉');
EXPLAIN(SC AND DEA>0,'解:MACD在0轴上死叉');
EXPLAIN(SC AND DEA<0,'解:MACD在0轴下死叉');
EXPLAIN(MACD>0 AND MACD>REF(MACD,1),'解:MACD的红柱:增长');
EXPLAIN(MACD>0 AND MACD
EXPLAIN(MACD<0 AND ABS(MACD)>REF(ABS(MACD),1),'解:MACD的绿柱:增长');
EXPLAIN(MACD<0 AND ABS(MACD)
EXPLAIN(COUNT(DCJC,20)=2 AND JC AND DEA>0,'解:0轴上金叉次数:2'),color1;
EXPLAIN(COUNT(DCJC,20)=3 AND JC AND DEA>0,'解:0轴上金叉次数:3');
EXPLAIN(COUNT(DCJC,20)=4 AND JC AND DEA>0,'解:0轴上金叉次数:4');
日K:="KDJ.K#day"(20,5,5);
日D:="KDJ.D#day"(20,5,5);
周K:="KDJ.K#week"(9,3,3);
周D:="KDJ.D#week"(9,3,3);
月K:="KDJ.K#MONTH"(9,3,3);
月D:="KDJ.D#MONTH"(9,3,3);
EXPLAINEX(周K>0,'解:周线K=',周K,2,0);
EXPLAIN(周K<=20,'周线kdj的k值在低位');
EXPLAIN(周K>=80,'周线kdj的k值在高位');
EXPLAIN(周K>20 AND 周K<50,'周线kdj的k值在中低');
EXPLAIN(周K>50 AND 周K<80,'周线kdj的k值在中高');
EXPLAIN(日K<=20,'日线kdj的k值在低位');
EXPLAIN(日K>=80,'日线kdj的k值在高位');
EXPLAIN(日K>20 AND 日K<50,'日线kdj的k值在中低');
EXPLAIN(日K>50 AND 日K<80,'日线kdj的k值在中高');
EXPLAIN(CROSS(日K,日D),'解:日K与日D今日金叉'),colorFF;
EXPLAIN(CROSS(日D,日K),'解:日K与日D今日死叉');
EXPLAIN(CROSS(周K,周D),'解:周K与周D今日金叉');
EXPLAIN(CROSS(周D,周K),'解:周K与周D今日死叉');
FILLRGN(月K>月D,月K,月D),color7AFF;
FILLRGN(月K<月D,月K,月D),color787603;
FILLRGN(周K>周D,周K,周D),colorFF00FF;
FILLRGN(周K<周D,周K,周D),colorFF9999;
FILLRGN(日K>日D,日K,日D),colorFF;
FILLRGN(日K<日D,日K,日D),colorFF00;
END;
IF NN=3 THEN BEGIN
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
MAC:=DIFF>REF(DIFF,1);
DIF:2*DIFF;
VAR1:=EMA(CLOSE,34)-EMA(CLOSE,5);
VAR2:=EMA(VAR1,5);
趋势:=(-3)*(VAR1-VAR2);
趋势,colorFF;
长期趋势:EMA(VAR1,10)*(-1);
JM:=CROSS(DIFF,DEA)*0.2;
JMCOUNT:=COUNT(JM=0.2,BARSLAST(DEA>0));
DRAWTEXT(DEA<0 AND JM=0.2,JM,'0轴下第'),colorFF00;
DRAWNUMBER(DEA<0 AND JM=0.2,0,JMCOUNT,0),colorFFFF;
DRAWTEXT(DEA<0 AND JM=0.2,0,' 次金叉'),colorFFFF;
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;
DRAWTEXT(CROSS(K,D) AND COUNT(VOL>REF(VOL,1),30)>3 AND VOL/CAPITAL<=10/100 AND K<=20 AND D<=20,0.4,'短线KD金叉'),colorFFFF;
DRAWTEXT(CROSS(K,D) AND COUNT(VOL>REF(VOL,1),30)>3 AND VOL/CAPITAL<=10/100 AND BARSLAST(CROSS(K,D) AND COUNT(VOL>REF(VOL,1),30)>3 AND VOL/CAPITAL<=10/100 AND K<=20 AND D<=20)>=1 AND BARSLAST(CROSS(K,D) AND COUNT(VOL>REF(VOL,1),30)>3 AND VOL/CAPITAL<=10/100 AND K<=30 AND D<=20)<=7,0.4,'短线KD二次金叉'),ALIGN2,PXUP4,colorFFFF;
B:=CROSS(D,K) AND K>60 AND D>60;
B1:=COUNT(B,BARSLAST(D<60));
DRAWTEXT(B AND B1=1,0.5,'短线KD死叉'),ALIGN2,PXUP4,colorFFFFFF;
DRAWTEXT(B AND B1=2,0.7,'短线KD二次死叉'),ALIGN2,PXUP4,colorFFFFFF;
半年线:=EMA(CLOSE,148);
年线:=EMA(CLOSE,250);
EXPLAIN(CLOSE>=半年线,'股价在半年线之上'),colorFFFF;
EXPLAIN(CLOSE>=年线,'股价在年线之上 '),colorFFFF;
EXPLAIN(CLOSE<半年线,'股价在半年线之下 '),colorFFFF00;
EXPLAIN(CLOSE<年线,'股价在年线之下 '),colorFFFF00;
EXPLAIN(半年线>=REF(半年线,1),'半年线趋势向上'),colorFFFF;
EXPLAIN(年线>=REF(年线,1),'年线趋势向上 '),colorFFFF;
EXPLAIN(半年线
EXPLAIN(年线
股道卖出价预测:=CLOSE*2.5/100+CLOSE;
股道买入价预测:=CLOSE-CLOSE*2.5/100;
EXPLAINEX(COST(50),'市场平均成本:',COST(50),2,0),colorFFFF;
EXPLAINEX(COST(4),'主力平均成本:',COST(4),2,0),colorFF;
EXPLAINEX(COST(30),'控盘平均成本:',COST(30),2,0),colorFF;
EXPLAINEX(COST(75),'拉升平均成本:',COST(75),2,0),colorFFFF;
EXPLAINEX(COST(95),'顶部平均成本:',COST(95),2,0),colorFFFF;
EXPLAINEX(COST(0.05),'底部平均成本:',COST(0.05),2,0),colorFFFF;
EXPLAINEX(股道卖出价预测,'股道卖出价预测:',股道卖出价预测,2,0),color99FF;
EXPLAINEX(股道买入价预测,'股道买入价预测:',股道买入价预测,2,0),color99FF;
EXPLAINEX(1,'获利盘比例=',WINNER(CLOSE)*100,2,0),colorFF;
EXPLAINEX(1,'套牢盘比例=',100-WINNER(CLOSE)*100,2,0),colorFFFF00;
多空1:=MA(VOL/(HIGH-LOW),4);
多空2:=ABS(CLOSE-OPEN);
多空3:=VOL/(HIGH-LOW);
EXPLAIN(多空3<多空1 AND 多空2
EXPLAIN(多空3<多空1 AND 多空2>MA(多空2,4),'场内资金有运作行为'),colorFFFF;
EXPLAIN(多空3>多空1 AND 多空2
EXPLAIN(多空3>多空1 AND 多空2>MA(多空2,4),'场外资金介入(或出局)意愿强烈'),color99FF;
TR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SUM(IF(HD>0 AND HD>LD,HD,0),14);
DMM:=SUM(IF(LD>0 AND LD>HD,LD,0),14);
PDI:=DMP*100/TR1;
MDI:=DMM*100/TR1;
ADX:=MA((ABS(MDI-PDI))/(MDI+PDI)*100,6);
ADXR:=(ADX+REF(ADX,6))/2;
EXPLAIN(CROSS(PDI,MDI),'PDI线从下向上突破MDI线,显示有新多头进场,为买进信号'),colorFF00;
EXPLAIN(CROSS(MDI,PDI),'PDI线从上向下跌破MDI线,显示有新空头进场,为卖出信号'),colorFFFF00;
EXPLAIN(ADX>REF(ADX,1),'ADX值持续高于前一日,行情将维持原趋势'),colorFFFF;
EXPLAIN(ADX
EXPLAIN(ADX[REF(ADX,3) AND REF(ADX,3)>REF(ADX,4),'ADX值从上升倾向转为下降时,表明行情即将反转'),colorFFFF;]
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
EXPLAIN(CCI<-180,'CCI指标底位,买入机会'),colorFF00;
EXPLAIN(CCI>180,'CCI指标高位,卖出机会'),colorFFFF00;
EXPLAIN(VOL/CAPITAL>0.075,'换手过大,小心主力出逃,短期头部'),colorFFFF00;
WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
EXPLAIN(WR>-20,'W&R超买,短线即将见顶,应及时卖出'),colorFFFF00;
EXPLAIN(WR<-80,'W&R超卖,短线即将见底,应伺机买进'),colorFF00;
MTM:=CLOSE-REF(CLOSE,6);
MTMMA:=MA(MTM,6);
EXPLAIN(CROSS(MTM,MTMMA) AND MTMMA<-0.8,'MTM从下向上突破MTMMA,买入信号'),colorFF00;
EXPLAIN(CROSS(MTMMA,MTM) AND MTMMA>0.8,'MTM从上向下跌破MTMMA,卖出信号'),colorFFFF00;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),12,1))/(SMA(ABS(CLOSE-LC),12,1))*100;
EXPLAIN(RSI1>85,'6日RSI超买,防止回挡'),colorFFFF00;
EXPLAIN(RSI1>80,'6日RSI向上突破85,超买,考虑卖出'),colorFFFF00;
EXPLAIN(RSI1<15,'6日RSI超卖,随时有可能反弹'),colorFFFF;
EXPLAIN(RSI1<15,'6日RSI向下跌破15,超卖,考虑买入'),colorFFFF;
EXPLAIN(CROSS(RSI1,15),'6日RSI向上突破15,买进信号'),colorFF00;
EXPLAIN(CROSS(RSI1,85),'6日RSI向下跌破85,卖出信号'),colorFFFF00;
PSY:=(COUNT(CLOSE>REF(CLOSE,1),12))/12*100;
布林1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
布林2:=布林1+3*STD(布林1,10);
布林3:=布林1-3*STD(布林1,10);
布林4:=(布林2-布林3)/布林2<0.03;
布林5:=(布林2-布林3)/布林2>0.18;
布林6:=(MA(CLOSE,60)-MA(CLOSE,5))/MA(CLOSE,60)>0.15;
布林7:=(MA(CLOSE,5)-MA(CLOSE,60))/MA(CLOSE,5)>0.15;
EXPLAIN(布林4,'多空布林收敛中,有变盘的可能,上下自己分析'),colorFFFF;
EXPLAIN(布林6 AND 布林5 AND CLOSE>OPEN,'布林上下乖离太大,有反弹的可能'),colorFF00;
EXPLAIN(布林7 AND 布林5 AND CLOSE
END;
IF NN=4 THEN BEGIN
个股MSD:EMA(100*(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25)),18),LINETHICK2,colorFFFF;
大盘MSD:EMA(100*(INDEXC-LLV(INDEXL,25))/(HHV(INDEXH,25)-LLV(INDEXL,25)),18),LINETHICK2,colorFF00;
强弱分水岭:50,POINTDOT;
天:80,CIRCLEDOT,colorFF0000;
试庄线:20,CIRCLEDOT,colorFF00;
0;
100;
Q1:=个股MSD<=20 AND 大盘MSD<=20;
Q2:=个股MSD>=20 AND 大盘MSD<=20 AND RANGE(个股MSD,20,50) AND 个股MSD>REF(个股MSD,2);
Q3:=RANGE(个股MSD,50,80) AND RANGE(大盘MSD,20,50) AND 个股MSD>=REF(个股MSD,1) AND 大盘MSD>REF(大盘MSD,1);
Q4:=ANY(CROSS(个股MSD,20),4) AND 大盘MSD>20 AND 大盘MSD>REF(大盘MSD,1) AND 大盘MSD>个股MSD;
Q5:=RANGE(大盘MSD,80,100) AND CROSS(个股MSD,50) AND 个股MSD<80 AND 个股MSD>=REF(个股MSD,2);
Q6:=大盘MSD<20 AND CROSS(个股MSD,50);
Q7:=RANGE(大盘MSD,50,20) AND 个股MSD<=20 AND 个股MSD
Q8:=大盘MSD[50 AND 个股MSD>50;]
Q9:=大盘MSD[20 AND 个股MSD>20;]
Q10:=大盘MSD[REF(个股MSD,1) AND CROSS(个股MSD,大盘MSD);]
Q11:=RANGE(个股MSD,80,100) AND RANGE(大盘MSD,80,100) AND 大盘MSD<=REF(大盘MSD,2) AND 个股MSD<=REF(个股MSD,1);
Q12:=RANGE(个股MSD,50,80) AND RANGE(大盘MSD,50,80) AND 大盘MSD<=REF(大盘MSD,2) AND 个股MSD>=REF(个股MSD,1) AND CROSS(个股MSD,大盘MSD);
Q13:=RANGE(个股MSD,80,100) AND RANGE(大盘MSD,80,100) AND 大盘MSD>=REF(大盘MSD,1) AND 个股MSD>=REF(个股MSD,1);
Q14:=RANGE(个股MSD,50,80) AND RANGE(大盘MSD,50,80) AND 大盘MSD>=REF(大盘MSD,1) AND 个股MSD>=REF(个股MSD,1);
Q15:=RANGE(个股MSD,50,80) AND RANGE(大盘MSD,80,100) AND 个股MSD>=REF(个股MSD,1);
Q16:=RANGE(个股MSD,80,100) AND RANGE(大盘MSD,50,80) AND 个股MSD>=REF(个股MSD,1) AND 大盘MSD<=REF(大盘MSD,1);
Q17:=RANGE(个股MSD,80,100) AND RANGE(大盘MSD,50,80) AND 个股MSD<=REF(个股MSD,1) AND 大盘MSD<=REF(大盘MSD,1);
Q18:=RANGE(个股MSD,20,50) AND RANGE(大盘MSD,0,20) AND 个股MSD<=REF(个股MSD,1) AND 大盘MSD<=REF(大盘MSD,1);
Q19:=RANGE(个股MSD,20,50) AND RANGE(大盘MSD,0,20) AND 个股MSD<=REF(个股MSD,1) AND 大盘MSD<=REF(大盘MSD,1) AND REF(大盘MSD,1)>20 AND REF(大盘MSD,2)>20 AND REF(大盘MSD,3)<20;
Q20:=RANGE(个股MSD,0,20) AND RANGE(大盘MSD,20,50) AND 大盘MSD>=REF(大盘MSD,1);
Q21:=ANY(CROSS(个股MSD,20),3) AND 大盘MSD>20 AND 大盘MSD>REF(大盘MSD,1) AND 个股MSD>大盘MSD;
Q22:=RANGE(个股MSD,50,80) AND RANGE(大盘MSD,20,50) AND 个股MSD>REF(个股MSD,1) AND REF(个股MSD,1)
天顶:STICKLINE(个股MSD>80 AND 大盘MSD>80,80,75,10,0),CIRCLEDOT,colorFF;
地底:STICKLINE(个股MSD<20 AND 大盘MSD<20,22,15,10,0),CIRCLEDOT,colorFF;
EXPLAIN(Q1,'<>指数与个股的MSD同时处于20以下的低位,表明个股与大盘同步下跌,表明大盘与个股处于历史低位,密切关注对20试庄线的突破<>'),colorFFFF;
EXPLAIN(Q2,'<>指数MSD处于低位,个股MSD脱离低位区并突破20,表明有庄先行介入,择机买入<>'),colorFF;
EXPLAIN(Q3,'<>大盘反弹,个股已经突破分水岭,进入强势<>'),colorFF;
EXPLAIN(Q4,'<>条件4:个股随大盘一起启动,赶快行动,切勿错过时机<>'),colorFFFF;
EXPLAIN(Q5,'<>后来者居上,个股主升浪开始,买入<>'),colorFFFF;
EXPLAIN(Q6,'<>个股逆市上涨,突破分水岭,择机介入,机者成交量,均线和K线的配合<>'),colorFF00;
EXPLAIN(Q7,'<>个股逆市下跌,关注对于20试庄线的突破<>'),colorFF;
EXPLAIN(Q8,'<>个股随同大盘顺势下跌,个股行情结束,下跌刚刚开始.<>'),colorFFFF;
EXPLAIN(Q9,'<>个股顺势继续下跌,个股行情仍没有见底迹象<>'),colorFFFF;
EXPLAIN(Q10,'<>大盘下跌而个股上涨选择买入时机<>'),colorFFFF;
EXPLAIN(Q11,'<>大盘与个股皆处强势拉升的未期,有可能转势,择机卖出<>'),colorFF00;
EXPLAIN(Q12,'<>大盘从高位下跌,而个股逆市上涨,有拉高出货的嫌疑,仔细分析,择机出局<>'),colorFF00;
EXPLAIN(Q13,'<>大盘与个股皆处强势拉升中期<>'),colorFF00;
EXPLAIN(Q14,'<>大盘与个股皆处强势拉升的初级阶段<>'),colorFF00;
EXPLAIN(Q15,'<>大盘处于超强势,个股拉渐渐进入强势<>'),colorFF00;
EXPLAIN(Q16,'<>大盘处于拉升未期,刚开始下跌,个股反而逆市上涨,寻找介入和出货点<>'),colorFF00;
EXPLAIN(Q17,'<>大盘处于拉升未期,刚开始下跌,个股也处拉升的未期,注意见顶<>'),colorFF00;
EXPLAIN(Q18,'<>大盘处于下跌未期,可能是最后一跌,个股可能还有一跌,现在不是介入时机,等待介入时机<>'),colorFF00;
EXPLAIN(Q19,'<>大盘刚突破底部又开始下跌,,寻找介入时机<>'),colorFF00;
EXPLAIN(Q20,'<>大盘刚突破底部,,个股仍处于底部,寻找介入时机<>'),colorFF00;
EXPLAIN(Q21,'<>个股率先起动,大盘后起动,有可能是领涨股龙头<>'),colorFF00;
EXPLAIN(Q22,'<>个股洗盘结束,再次起动,有可能是领涨股龙头<>'),colorFF00;
RSV:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
W1:=MA(VOL,5)>MA(VOL,34);
W2:="KDJ.K#week"(9,3,3);
W3:=MA(VOL,5)
Y1:=CLOSE>MA(CLOSE,5) AND CLOSE>MA(CLOSE,10) AND OPEN
Y2:=CLOSEMA(CLOSE,5) AND OPEN>MA(CLOSE,10);
海底火山:=Y1 AND W1 AND CROSS(K,D) AND K<=20 AND W2<25;
天险绝壁:=Y2 AND W3 AND 大盘MSD<80 AND 个股MSD>80;
DRAWTEXT(海底火山,80,'海底火山'),colorFF00;
DRAWTEXT(天险绝壁,70,'天'),colorFFFF;
DRAWTEXT(天险绝壁,60,'险'),colorFFFF;
DRAWTEXT(天险绝壁,50,'绝'),colorFFFF;
DRAWTEXT(天险绝壁,40,'壁'),colorFFFF;
DRAWTEXT(Q4,78,'紫'),colorFF00FF;
DRAWTEXT(Q4,66,'气'),colorFF00FF;
DRAWTEXT(Q4,54,'东'),colorFF00FF;
DRAWTEXT(Q4,42,'来'),colorFF00FF;
DRAWTEXT(Q12,65,'黄色警告'),colorFFFF;
DRAWTEXT(Q12,75,'★'),colorFFFF;
DRAWICON(Q8,75,5);
A1:IF(Q5,85,50),colorFF00FF;
A2:IF(Q6,50,20),colorFF;
END;
IF NN=5 THEN BEGIN
YHM:=1;
MA5:=MA(CLOSE,5)*YHM;
MA25:=MA(CLOSE,25)*YHM;
MA55:=MA(CLOSE,55)*YHM;
MA250:=MA(CLOSE,250)*YHM;
MA3:=MA(CLOSE,3)*YHM;
MA10:=MA(CLOSE,10)*YHM;
MA120:=MA(CLOSE,120)*YHM;
AAJJ:=MA(CLOSE,250)*YHM;
BBJJ:=HHV(AAJJ,10)/LLV(AAJJ,10)<1.01 AND CLOSE>MA(CLOSE,250) AND CLOSE
JYTJ:=CLOSEMA25;
JYTJ1:=CLOSE>MA55 AND CLOSEMA55;
JYTJ2:=CLOSE>MA55 AND CLOSEMA55 AND CROSS(MA3,MA5);
JYTJ3:=CLOSE>MA55 AND CLOSE>MA250 AND MA55MA250 AND MA5>MA55 AND MA250
JYTJ4:=CLOSE>MA55 AND CLOSE>MA250 AND MA55>MA250 AND MA5>MA250 AND MA5>MA55 AND MA250>REF(MA250,10);
JYTJ5:=CLOSE>MA55 AND CLOSE>MA250 AND MA55>MA250 AND MA5>MA250 AND MA5>MA55 AND MA250>REF(MA250,10) AND MA3>MA5 AND MA3>REF(MA3,1);
JYTJ6:=CLOSE>MA55 AND CLOSE>MA250 AND MA55>MA250 AND MA5>MA250 AND MA5>MA55 AND MA250>REF(MA250,10) AND MA3[MA10;]
JYTJ7:=CLOSE>MA5 AND MA5>MA10 AND MA10>MA25 AND MA25>MA55 AND CLOSE>MA250 AND MA55
JYTJ8:=CLOSEMA250;
JYTJ9:=CLOSE>MA55 AND CLOSE>MA250 AND MA55>MA250 AND MA5>MA250 AND MA5>MA55 AND MA250>REF(MA250,10) AND MA3
JYTJ10:=CLOSE>MA55 AND CLOSE>MA250 AND MA55MA250 AND MA5>MA55 AND MA250
JYTJ11:=CLOSE>MA55 AND CLOSEMA55 AND CLOSE
JYTJ12:=CLOSE>MA55 AND CLOSEMA55 AND CLOSE
JYTJ13:=CLOSE>MA55 AND CLOSEMA55 AND MA25
JYTJ14:=CLOSE>MA55 AND CLOSEMA55 AND CLOSEMA55 AND BARSLAST(CROSS(MA25,MA55))<5;
JYTJ15:=CLOSE>MA250 AND MA3>REF(MA3,1) AND BBJJ;
JYTJ16:=CLOSEMA25 AND MA5>MA25 AND MA10>MA25 AND MA25
JYTJ17:=CLOSEMA25 AND MA5>MA25 AND MA10>MA25 AND MA25
JYTJ18:=CLOSE>MA5 AND CLOSE>MA10 AND CLOSE>MA55 AND BARSLAST(CROSS(MA(CLOSE,1),MA55))<2;
JYTJ19:=REF(CLOSE,1)>MA55 AND REF(CLOSE,1)MA55 AND REF(CLOSE,1)MA55 AND BARSLAST(CROSS(MA25,MA55))<5 AND (CLOSE
JYTJ20:=REF(CLOSE,1)>MA55 AND REF(CLOSE,1)MA55 AND REF(CLOSE,1)MA55 AND BARSLAST(CROSS(MA25,MA55))<5 AND (CLOSE>REF(HIGH,1) OR CLOSE>(REF(CLOSE,1)+REF(OPEN,1))/2);
JYTJ21:=REF(CLOSE,1)>MA55 AND REF(CLOSE,1)MA55 AND CLOSE
JYTJ22:=CLOSE
JYTJ23:=CLOSE
JYTJ24:=CLOSEMA120;
EXPLAIN(JYTJ23 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【●等待空间,耐心等待方向选择●】'),ALIGN0,colorFFFF;
EXPLAIN(JYTJ22 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'●四度极弱空间,耐心等待超跌放量机会●'),ALIGN0,colorFF00;
EXPLAIN(JYTJ AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'●三度空间●'),ALIGN0,colorF1B96A;
EXPLAIN(JYTJ1 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【二度空间】波段走强过渡空间,密切注意后续变化'),ALIGN0,colorFFFF;
EXPLAIN(JYTJ2 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【二度空间波段攻击状态】进入了短线攻击状态,量能是否超前量是强弱的关键'),ALIGN0,colorFFFF;
EXPLAIN(JYTJ3 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【次一度空间可能回踩】波段走强的特征,一般需要短线回落整理,55日线为波段核心支撑'),ALIGN0,colorFF00;
EXPLAIN(JYTJ4 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'☆一度空间☆波段走强的强势区间,注意上升以来的幅度,如果较大,会出现阶段性回落,如果刚起步,已经进入中线牛股行列'),ALIGN0,colorFFFF;
EXPLAIN(JYTJ5 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'☆☆一度空间拉升☆'),ALIGN0,colorFF;
EXPLAIN(JYTJ6 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'☆一度空间休整☆注意55线的跟进速度'),ALIGN0,colorFFEF40;
EXPLAIN(JYTJ7 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【一度空间进入注意回踩】回踩位置在55日线'),ALIGN0,colorFF00;
EXPLAIN(JYTJ8 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'●无为空间●'),ALIGN0,colorFFEF40;
EXPLAIN(JYTJ9 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'●一度空间弱化●短线攻击消失,正在短线回落,注意形态何时转入攻击位置才可短线介入'),ALIGN0,colorFFEF40;
EXPLAIN(JYTJ10 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【一度空间正在回踩】55线为核心支撑,量能萎缩到55线处要关注'),ALIGN0,colorFFEF40;
EXPLAIN(JYTJ11 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【二度空间正在回踩】'),ALIGN0,colorFF00;
EXPLAIN(JYTJ12 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【二度空间回踩可能结束】'),ALIGN0,colorFF;
EXPLAIN(JYTJ13 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【首次进入二度空间后期有回踩】'),ALIGN0,colorFF;
EXPLAIN(JYTJ14 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【二度空间回踩结束临界点】'),ALIGN0,colorD2C681;
EXPLAIN(JYTJ15 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【进入一度空间,观察250线的角度】'),ALIGN0,colorD2C681;
EXPLAIN(JYTJ16 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【强三度空间】反弹走强的过渡区间,密切注意何时突破上方压力,不突破要一定耐心等待,突破后要注意一定会回落整理,支撑为突破点'),ALIGN0,colorD2C681;
EXPLAIN(JYTJ17 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【强三度空间转向临界点】'),ALIGN0,colorFF;
EXPLAIN(JYTJ18 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【进入二度空间】首次进入,注意攻击能量的变化和5日线的攻击角度'),ALIGN0,colorD279FB;
EXPLAIN(JYTJ19 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【进入三度空间,小心破位急跌】'),ALIGN0,colorFF;
EXPLAIN(JYTJ20 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【完成二度空间回踩,放量试探跟进】'),ALIGN0,colorFF;
EXPLAIN(JYTJ21 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【跌回三度空间,小心阴跌,减仓】'),ALIGN0,colorFFFF;
EXPLAIN(JYTJ24 AND SYSPARAM(1)=BARPOS AND ISLASTBAR,'【下方有支撑,上方有压力,一般为波段主力的洗盘特征,等待再次走强的时机。】'),ALIGN0,colorFFFF;
STICKLINE(CLOSE>=OPEN,0,SUM((CLOSE-OPEN)/(HIGH-LOW)*AMOUNT,24),8,0),colorFF;
STICKLINE(CLOSE
END; |