股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 「指标」大道多空 大道均线——两个自用主图指标


    [-----复制链接-----]

22万

主题

22万

帖子

14

精华

积分
11042
楼主
2024-3-4 22:13:13
【资料名称】:大道多空 大道均线——两个自用主图指标介绍
【资料描述】:

大道多空 大道均线——两个自用主图指标

大道多空 大道均线——两个自用主图指标

{大道均线}
MA1:=MA(C,19);
MA2:=MA(CLOSE,31);
MA3:=MA(CLOSE,56);
MA4:MA(CLOSE,105),COLORRED,LINETHICK2;
MA5:MA(CLOSE,455),COLORLIBLUE,LINETHICK2;
MA6:MA(CLOSE,890),COLORBROWN,LINETHICK2;
趋势:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORRED;
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
HY1:=REF(EMA(V1,3),1);
神秘线:HY1,COLORWHITE,LINETHICK2;
主流资金:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
非主流:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3);
主非金叉:=CROSS(主流资金,50);
资金XG1:=主流资金>50 AND 非主流<45;
资金XG4:=主流资金>REF(主流资金,1) {AND 非主流资金<REF(非主流资金,1)};
资金XG2:=V>=REF(V,1)*1.2;
资金XG3:=C>REF(C,1);
资金XG:=资金XG1 AND 资金XG4 AND 资金XG2 AND 资金XG3;
{买卖金额}
万:=AMOUNT/10000,COLORFF00FF,NODRAW;
ZJVAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入万:=IF(CLOSE>OPEN,ZJVAR1*(HIGH-LOW),IF(CLOSE<OPEN,ZJVAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000,COLORRED,NODRAW;
流出万:=IF(CLOSE>OPEN,0-ZJVAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-ZJVAR1*(HIGH-LOW),0-AMOUNT/2))/10000,COLOR00FF00,NODRAW;
净买:ABS(流入万)-ABS(流出万),COLORYELLOW,NODRAW;
{60分时MACD背离买卖}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MAD:=(DIF-DEA)*2,COLORSTICK;
RSI1:=MAD;
AA:=REF(RSI1,8)=HHV(RSI1,2*8+1);
BB:=BACKSET(AA,8+1);
CC:=FILTER(BB,8) AND RSI1=HHV(RSI1,8+1);
AA1:=BARSLAST(REF(CC,1));
顶背离:=REF(CLOSE,AA1+1)<CLOSE AND REF(RSI1,AA1+1)>RSI1 AND CC,COLORRED;
DRAWTEXT(顶背离=1,H*1.01,'指顶'),COLORLIGRAY;
AA2:=REF(RSI1,8)=LLV(RSI1,2*8+1);
BB2:=BACKSET(AA2,8+1);
CC2:=FILTER(BB2,8) AND RSI1=LLV(RSI1,8+1);
A22:=BARSLAST(REF(CC2,1));
底背离:=REF(CLOSE,A22+1)>CLOSE AND REF(RSI1,A22+1)<RSI1 AND CC2,COLORCYAN;
DRAWTEXT(底背离=1,L*0.98,'指底'),COLORWHITE;
DNRSI1:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*50;
DNAA:=REF(DNRSI1,8)=HHV(DNRSI1,2*8+1);
DNBB:=BACKSET(DNAA,8+1);
DNCC:=FILTER(DNBB,8) AND DNRSI1=HHV(DNRSI1,8+1);
DNA1:=BARSLAST(REF(DNCC,1));
DN顶背离:=REF(CLOSE,DNA1+1)<CLOSE AND REF(DNRSI1,DNA1+1)>DNRSI1 AND DNCC;
DRAWTEXT(DN顶背离=1,H*1.015,'*能顶'),COLORYELLOW;
DNAA2:=REF(DNRSI1,8)=LLV(DNRSI1,2*8+1);
DNBB2:=BACKSET(DNAA2,8+1);
DNCC2:=FILTER(DNBB2,8) AND DNRSI1=LLV(DNRSI1,8+1);
DNA22:=BARSLAST(REF(DNCC2,1));
DN底背离:=REF(CLOSE,DNA22+1)>CLOSE AND REF(DNRSI1,DNA22+1)<DNRSI1 AND DNCC2,COLORCYAN;
DRAWTEXT(DN底背离=1,L*0.99,'^能底'),COLORBROWN;
底背:=DN底背离 OR 底背离;
AAA二:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(AAA二=1,21)=1,COLORMAGENTA,NODRAW;
DRAWTEXT(二次金叉,L,'再金叉'),COLORLIRED;
主升周期:=COUNT(CROSS(DIF,DEA),BARSLAST(CROSS(DEA,0)));
主升金叉:=CROSS(DIF,DEA) AND DEA>0 AND COUNT(主升周期=2,21)=1;
初升金叉:=CROSS(DIF,DEA) AND DEA>0 AND COUNT(主升周期=1,21)=1;
DRAWTEXT(主升金叉,L,'主叉'),COLORLIRED;
DRAWTEXT(初升金叉,L,'初叉'),COLORLIRED;
金叉群:=二次金叉 OR 初升金叉 OR 主升金叉 OR 主非金叉;
{波段王买卖}
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
中轴线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
压力线:=BBI+3*STD(BBI,10);
支撑线:=BBI-3*STD(BBI,10);
上开:=OPEN;
上收:=CLOSE;
上高:=HIGH;
上低:=LOW;
JJJ:=(上开+上高+上低)/3;
A:=EMA(JJJ,4);
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
LCC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LCC,0),6,1)/SMA(ABS(CLOSE-LCC),6,1)*100;
高抛:=CROSS(84,RSI);
低吸:=CROSS(RSI,11);
适当买:=CROSS(VA1,VA2) AND (CLOSE>=OPEN) AND A>REF(A,1);
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
XX1:=(CLOSE+LOW+HIGH)/3;
XX2:=EMA(XX1,6);
XX3:=EMA(XX2,5);
追涨:=CROSS(XX2,XX3);
S:=EMA((CLOSE-LLV(CLOSE,21))/(HHV(CLOSE,21)-LLV(CLOSE,21)),1);
庄:=IF(S>0,MA(S,1),0);
买W:=CROSS(庄,0.001);
欣喜:=MEMA(XMA((((C-O)*2)+O),30),13);
若狂:=MEMA(MEMA((((C-O)*2)+O),5),13);
狂买入:=欣喜>若狂;
狂选股:=买W AND LAST(狂买入,2,0) AND CROSS(ZIG(3,8),REF(ZIG(3,8),1));
DRAWTEXT(狂选股,L*0.98,'必买'),COLORRED;
满仓:DRAWICON((ZIG(3,35)>REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)<REF(ZIG(3,35),2)),MA4,25);
空仓:DRAWICON((ZIG(3,35)<REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)>REF(ZIG(3,35),2)),MA4,27);
背离群:=底背离 OR DN底背离 OR 狂选股;
{卖点}
LC:= REF(CLOSE,1);
随机指标:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(82,随机指标),HIGH*1.01,'顶');
卖出:=(ZIG(3,10)<REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1)>REF(ZIG(3,10),2));
TYP :=(HIGH + LOW + CLOSE)/3;
V11:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),14)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),14);
MFI:=100-(100/(1+V11));
资金:=MA(MFI,5);
资金卖:=CROSS(资金,MFI);
AA10:=MA(C,10);
AA20:=MA(C,20);
BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;
AA30:=MA(C,30);
三拾日乖离率:=(C-AA30)/AA30*100;
AA05:=MA(C,5);
五日乖离率:=(C-AA05)/AA05*100;
趋势乖离率:=(C-MA(C,13))/MA(C,13)*100>10;
趋势乖离率2:=(C-MA(C,13))/趋势*100>10;
MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;
底买:=FILTER(MR,10);
DRAWTEXT(底买,LOW*0.95,'抢'),COLORYELLOW;
BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30) AND
AA05<REF(AA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND AA10<REF(AA10,1),10);
JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND AA10>REF(AA10,1) ;
减仓:=FILTER(JC,10);
P:=(HIGH + LOW + CLOSE)/3;
CCI:=(P-MA(P,14))*100/(1.5*AVEDEV(P,14));
十四CCI:=CROSS(100,CCI);
顶背:=(H>=REF(H,1) AND C<=REF(C,1)) AND ((清仓 OR 减仓) OR ((卖出 AND 趋势乖离率) OR REF(卖出,1) OR (趋势乖离率 AND COUNT(CROSS(82,随机指标),3)>=1)));
VARD卖出:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));
卖点:=((((资金卖 OR 十四CCI) AND (((REF(趋势乖离率2,1) AND 清仓 OR 减仓)) OR EXIST(卖出,2))) OR 顶背) AND EXIST(C<神秘线*0.99,2) OR EXIST(卖出,2) AND C<REF(C,1)) OR VARD卖出=1;
取反:=NOT(REF(卖点,1));
DRAWICON(卖点 AND 取反,H*1.02,6);
DRAWICON(卖出,H*1.01,2);
{综合条件选股}
强弱条件:=欣喜>若狂 AND EXIST(欣喜-若狂>REF(欣喜,1)-REF(若狂,1),2);
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
最强:=长期=100 AND EVERY(短期=100,2);
波卖:=REF(欣喜,1)>REF(若狂,1) AND 欣喜<若狂;
DRAWTEXT(波卖,H*1.02,'波卖'),COLOR0099FF;
{机构做多资金,个股做空资金}
AB:=(3*C+L+O+H)/6;
主力做多资金:(20*AB+19*REF(AB,1)+18*REF(AB,2)+17*REF(AB,3)+16*REF(AB,4)+15*REF(AB,5)+14*REF(AB,6)+13*REF(AB,7)+12*REF(AB,8)+11*REF(AB,9)+10*REF(AB,10)+9*REF(AB,11)+8*REF(AB,12)+7*REF(AB,13)+6*REF(AB,14)+5*REF(AB,15)+4*REF(AB,16)+3*REF(AB,17)+2*REF(AB,18)+REF(AB,20))/210,COLORWHITE,LINETHICK2;
个股做空资金:MA(主力做多资金,10),COLORLIBLUE,LINETHICK2;
启动:=(CROSS(主力做多资金,个股做空资金) OR (主力做多资金>REF(主力做多资金,1) AND REF(主力做多资金,1)<REF(主力做多资金,2))) AND (CROSS(长期,55) OR CROSS(长期,80));
开始启动:=主力做多资金>REF(主力做多资金,1) AND REF(主力做多资金,1)<REF(主力做多资金,2);
动:=CROSS(主力做多资金,个股做空资金);
多持股:IF(主力做多资金>=REF(主力做多资金,1),主力做多资金,DRAWNULL),COLORLIMAGENTA,LINETHICK2;
单位股多空:=((主力做多资金-REF(主力做多资金,1))>REF(主力做多资金,1)-REF(主力做多资金,3)
AND (主力做多资金>=REF(主力做多资金,1))) OR (EVERY(短期=100,2) AND EVERY(长期>REF(长期,1),2) AND (CROSS(长期,50) OR EVERY(长期>80,2)));
多空选:=(CROSS(主力做多资金,个股做空资金) OR (主力做多资金>REF(主力做多资金,1) AND REF(主力做多资金,1)<REF(主力做多资金,2))) AND 长期>50;
DRAWTEXT(多空选,主力做多资金,'启动'),COLORRED;
资金金叉群:=CROSS(主流资金,非主流) OR CROSS(主流资金,主力做多资金) OR CROSS(主流资金,个股做空资金) OR EVERY(主流资金>非主流,5) OR CROSS(MA(主流资金,2),MA(主流资金,3));
超牛条件:=(主力做多资金>个股做空资金 AND 主力做多资金>REF(主力做多资金,1) AND (主流资金>REF(主流资金,1) OR (主流资金>非主流 AND 主流资金>MA(主流资金,3))))
OR (主力做多资金>REF(主力做多资金,1) AND REF(主力做多资金,1)<REF(主力做多资金,3) AND EVERY(个股做空资金<REF(个股做空资金,1),7) AND EXIST((CROSS(主流资金,主力做多资金) OR CROSS(主流资金,非主流)),2));
{成交量}
动能成交量:=MA(VOL,5);
洗盘成交量:=MA(VOL,35);
异动成交量:=MA(VOL,135);
动洗金叉:=CROSS(动能成交量,洗盘成交量);
动洗金叉周期:=BARSLAST(动洗金叉);
洗异金叉:=CROSS(洗盘成交量,异动成交量);
动异金叉:=CROSS(动能成交量,异动成交量);
成交三金叉:=动洗金叉 OR 洗异金叉 OR 动异金叉;
强量金叉:=(动洗金叉 AND EXIST(动异金叉,2));
主升量周期:=COUNT(动洗金叉,BARSLAST(洗异金叉));
主升量金叉:=动洗金叉 AND 洗盘成交量>异动成交量 AND COUNT(主升量周期=2,35)=1;
初升量金叉:=动洗金叉 AND 洗盘成交量>异动成交量 AND COUNT(主升量周期=1,35)=1;
拉升:=(CROSS(主力做多资金,50) OR CROSS(主力做多资金,个股做空资金));
{支压}
现价:=C;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*7/8;
短买:=TROUGHBARS(1,6,1)=0 AND HIGH>LOW+0;
抄底:=EXIST(长期<=中长期 AND 中长期<=中期 AND 中期<=短期 AND 短期<6,3) AND 短买;
{资金动能}
DNDIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
资金动能B:=EMA(DNDIFF,5)*50;
资金动能A:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*50;
资金动能选股:=EXIST((CROSS(资金动能A,资金动能B) AND 资金动能A<-0.25),5) OR (短期=100 AND 长期>80 AND (资金动能A>资金动能B OR (CROSS(资金动能A,资金动能B) AND 资金动能A>-0.25)) AND (资金动能A-资金动能B)>2*(REF(资金动能A,1)-REF(资金动能B,1)));
动能金叉周期:=BARSLAST(CROSS(资金动能A,资金动能B));
价格趋势:=EMA(EMA(C,4)-EMA(C,13),5);
价周期:=BARSLAST(CROSS(价格趋势,0));
{次日涨停}
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
次日涨:=W4 AND COUNT(W4,5)=1;
主升:=(EXIST((DIF>=-0.021 AND 次日涨) OR 二次金叉 OR 初升金叉 OR 主升金叉,3) AND (拉升 AND (个股做空资金<50 OR REF(EVERY(个股做空资金>主力做多资金,5),1)))) AND (长期>短期 OR 长期=短期);
{换手线}
HSL:=100*VOL/(FINANCE(7)/100);
MAHSL:=MA(HSL,3);
{动能轨迹}
RSV:=(((CLOSE - LLV(LOW,36)) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);
Y0:=SMA(RSV,7,1);
Y1:=SMA(SMA(RSV,7,1),3,1);
Y2:=SMA(Y0,7,1);
机构持仓条件:=MA(C,20)>=REF(MA(C,20),1) AND (MA(C,20)-REF(MA(C,20),4))>0;
底部起涨:=EXIST(CROSS(动能成交量,洗盘成交量),6) AND EVERY(动能成交量>洗盘成交量,动洗金叉周期) AND EVERY(动能成交量>REF(动能成交量,1),动洗金叉周期)
AND (EVERY(短期=100,2) AND 长期=100 AND 主力做多资金>个股做空资金 AND C/REF(O,2)<1.08 AND Y1>Y2 AND Y2<55)
AND ((EXIST(CROSS(资金动能A,资金动能B),5) AND EVERY(资金动能A>REF(资金动能A,1),动能金叉周期))
OR (EXIST(CROSS(价格趋势,0),5) AND EVERY(价格趋势>REF(价格趋势,1),价周期)))
AND 主力做多资金>个股做空资金 AND 主力做多资金>=REF(主力做多资金,1) AND (次日涨 OR 拉升);
调到位:=(短期<19.99 AND 长期>55 AND (机构持仓条件 OR 长期>61) AND (主力做多资金>个股做空资金 OR 主流资金>非主流)) OR 狂选股;
DRAWICON(调到位,L*0.98,15);
精确买点1:=((HSL>1.5*MAHSL OR HSL>=3) AND V>REF(V,1) AND 长期>=短期 AND (EXIST(调到位,3) AND (资金动能选股 OR 主流资金>REF(主流资金,1))))
OR (EXIST(调到位,2) AND 主流资金>非主流 AND 主力做多资金>个股做空资金);
精确买点2:=(EXIST(调到位,3)) AND (资金动能选股 OR 主流资金>REF(主流资金,1) OR (长期>REF(长期,1) AND 长期>60 AND CROSS(短期,20)));
精确买点3:=底部起涨;
条件1:=IF(主力做多资金>=REF(主力做多资金,1) AND 主力做多资金>个股做空资金,精确买点2,0);
条件2:=IF(主力做多资金<REF(主力做多资金,1) AND ((主流资金>REF(主流资金,1) AND 主流资金>50) OR 主流资金>非主流 OR CROSS(主流资金,非主流) OR CROSS(主流资金,80)),精确买点1,0);
条件3:=IF(主力做多资金>=REF(主力做多资金,1) AND 主力做多资金>个股做空资金,精确买点3,0);
条件4:=(EXIST(狂选股,2) OR 主升) AND (资金动能选股 OR 主流资金>REF(主流资金,1) OR (长期>REF(长期,1) AND 长期>60 AND CROSS(短期,20)));
{量价趋势}
LDI:=EMA((EMA(VOL,4)-EMA(VOL,13))/EMA(VOL,10),5);{量趋势}
JDI:=EMA(EMA(C,4)-EMA(C,13),5);{价趋势}
条件红1:=EVERY((JDI>=REF(JDI,1) AND LDI>=REF(LDI,1)),2) AND ABS(LDI-JDI)>=ABS(REF((LDI-JDI),1));
条件红2:=(JDI>=REF(JDI,1) AND LDI>=REF(LDI,1)) AND (ABS(LDI-JDI)>=ABS(REF((LDI-JDI),1)) OR CROSS(LDI,JDI)) AND
((REF(LDI,1)<REF(LDI,2) AND REF(JDI,1)>REF(JDI,2))
OR (REF(LDI,1)>REF(LDI,2) AND REF(JDI,1)<REF(JDI,2))
OR (REF(LDI,1)<REF(LDI,2) AND REF(JDI,1)<REF(JDI,2)));
条件红3:=CROSS(LDI,0);
量价趋势:=条件红1 OR 条件红2 OR 条件红3;
信号过滤:=底背离 OR 狂选股 OR 拉升 OR DN底背离;
{波段王买入信号加入主图}
C11:=(CLOSE+LOW+HIGH)/3;
C22:=EMA(C11,6);
C3:=EMA(C22,5);
C4:=CROSS(C22,C3);
BBB:=MA(MA(CLOSE,3),1);
首买信号:=CROSS(BBB,神秘线) OR C4 OR (EVERY(短期=100,2) AND EVERY(长期>REF(长期,1),2) AND (CROSS(长期,50) OR EVERY(长期>80,2)));
首次买入:=首买信号 AND 强弱条件 AND (EXIST(金矿,7) OR EXIST((((条件1 OR 条件2 OR 条件3) AND 长期>50) OR 条件4),5));
快买:=(EXIST(金矿,7) OR EXIST((((条件1 OR 条件2 OR 条件3) AND 长期>50) OR 条件4),5)) AND (EXIST(洗异金叉,2) OR (成交三金叉 AND C>O) OR 金叉群 OR (EVERY(短期=100,2) AND EVERY(长期>REF(长期,1),2) AND (CROSS(长期,50) OR EVERY(长期>80,2))))
AND (((Y0<80 AND Y1<80 AND Y2<68) OR (EVERY(主流资金>非主流,3) AND EVERY(主力做多资金>个股做空资金,3) AND EVERY(主流资金>REF(主流资金,1),2)))
OR 资金金叉群 OR (REF(长期,1)>REF(短期,1) AND REF(长期,1)>80 AND 长期=100));
{强买选股}
机构趋势:=MA(MA(C,2),1);
趋势选:=((LONGCROSS(机构趋势,欣喜,1) OR LONGCROSS(机构趋势,若狂,1) ) AND 机构趋势>REF(机构趋势,1) ) AND (欣喜 >若狂) AND (欣喜>REF(欣喜,1)) AND (EMA(C,20)>=REF(EMA(C,20),1)) AND 机构趋势>若狂;
金叉条件:=(EXIST(洗异金叉,2) OR (成交三金叉 AND C>O) OR 金叉群 OR (EVERY(短期=100,2) AND EVERY(长期>REF(长期,1),2) AND (CROSS(长期,50) OR EVERY(长期>80,2))));
小选股:=资金金叉群 AND 趋势选 AND 强弱条件 AND 金叉条件 AND 强量金叉 AND 量价趋势 AND 单位股多空 AND H-C<C-O AND 现价<阻力;
最佳小选股:=小选股 AND (REF(长期,1)<100 AND 长期=100 AND 短期=100);
精确加仓:=TFILTER(快买,信号过滤,1) AND 强弱条件 AND 资金金叉群;
DRAWTEXT(拉升,L*0.98,'升'),COLORRED;
{机构买点}
A1:=(DVOL/C)/2,NODRAW;
A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A6:=A2+A3+A4+A5;
机买:=(A2/A6)*100,LINETHICK2,COLORRED;
机卖:=(A3/A6)*100,LINETHICK2,COLORGREEN;
主力差:=机买-机卖,LINETHICK2,NODRAW;
机构买:=主力差>0 AND REF(主力差,1)<=0;
DRAWTEXT(机构买,L*0.99,'★机构'),COLORLIRED;
DRAWICON(抄底,L*0.98,11);
金矿:=(EXIST(底背,5) OR EXIST(抄底,2)) AND 狂选股;
综合买入条件:=金矿 OR ((((条件1 OR 条件2 OR 条件3) AND 长期>50) OR 条件4) AND 强弱条件);
最佳条件:=精确加仓 AND ((精确加仓 OR 综合买入条件) AND (EXIST((洗异金叉 OR 初升量金叉 OR 主升量金叉 OR 底背离 OR DN底背离) AND 狂买入,7)))
AND (量价趋势 OR 单位股多空 OR 最强) AND 洗盘成交量>异动成交量 AND H-C<C-O AND 现价<阻力;
DRAWTEXT(金矿,H*1.02,'金矿'),COLORYELLOW;
DRAWTEXT(FILTER(主升,3),L*0.98,'主升'),COLORLIBLUE;
DRAWICON(底部起涨,L*0.96,26);
DRAWTEXT(FILTER(((条件1 OR 条件2 OR 条件3) AND 长期>50) OR 条件4,3) AND 强弱条件,L*0.97,'买!'),COLORMAGENTA;
DRAWNUMBER(FILTER(((条件1 OR 条件2 OR 条件3) AND 长期>50) OR 条件4,3) AND 强弱条件,L*0.99,L),COLORRED;
DRAWTEXT(EXIST((条件1 OR 条件2 OR 条件3 OR 条件4 OR 调到位),7) AND (短期=100 AND 长期<短期-0.01) AND 主力做多资金<=REF(主力做多资金,1),H*1.02,'!'),COLORGREEN;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),H*1.01,'短卖'),COLORLIGREEN;
DRAWTEXT(FILTER(首次买入,5),H*1.01,'首买EXIST(,)'),COLORGRAY;
DRAWTEXT(精确加仓,L*0.99,'加仓'),COLORLIGRAY;
DRAWICON(精确加仓 AND 量价趋势,H*1.01,38);
DRAWICON(精确加仓 AND 单位股多空,L*0.98,41);
DRAWTEXT(最佳条件 OR 最佳小选股,H*1.02,'佳'),COLORLIRED;
DRAWTEXT((最佳条件 OR 最佳小选股) AND 超牛条件,H*1.01,'超牛'),COLORLICYAN;
DRAWTEXT(FILTER(小选股,5),L*0.98,'★强买'),COLORBROWN;
DRAWTEXT(((CROSS(神秘线,主力做多资金) OR CROSS(神秘线,个股做空资金) OR CROSS(主力做多资金,个股做空资金)) AND (资金XG1 AND 资金XG4)) AND EXIST((动 OR 启动 OR 开始启动 OR 精确加仓),3),L*0.98,'买点'),COLORYELLOW;
DRAWTEXT(FILTER(资金XG1 AND 资金XG4 AND EXIST(调到位 OR 抄底,5),7),L,'洗毕');


--------------------------------------------------------------------------------------------------------------------------



{大道均线}
MA1:MA(C,19);
MA2:MA(CLOSE,31);
MA3:MA(CLOSE,56);
MA4:MA(CLOSE,105),COLORRED,LINETHICK2;
MA5:MA(CLOSE,455),COLORLIBLUE,LINETHICK2;
MA6:MA(CLOSE,890),COLORBROWN,LINETHICK2;
MA7:MA(CLOSE,145),COLORGRAY,LINETHICK2;
趋势:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORRED;
{轨道线}
UPPER:=(1+11/100)*MA(CLOSE,10);
LOWER:=(1-9/100)*MA(CLOSE,10);
ENE:=(UPPER+LOWER)/2;
MIDA:=CLOSE-MIN(REF(CLOSE,1),LOW);
MIDB:=IF(CLOSE<REF(CLOSE,1),CLOSE-MAX(REF(CLOSE,1),HIGH),0);
WAD:=SUM(IF(CLOSE>REF(CLOSE,1),MIDA,MIDB),0);
DRAWTEXT(CROSS(趋势,ENE) AND (WAD>REF(WAD,1) OR WAD>REF(WAD,2)),L*0.98,'速涨');
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
HY1:=REF(EMA(V1,3),1);
神秘线:HY1,COLORWHITE,LINETHICK2;
主流资金:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
非主流:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3);
主非金叉:=CROSS(主流资金,50);
{买卖金额}
万:=AMOUNT/10000,COLORFF00FF,NODRAW;
ZJVAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入万:=IF(CLOSE>OPEN,ZJVAR1*(HIGH-LOW),IF(CLOSE<OPEN,ZJVAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000,COLORRED,NODRAW;
流出万:=IF(CLOSE>OPEN,0-ZJVAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-ZJVAR1*(HIGH-LOW),0-AMOUNT/2))/10000,COLOR00FF00,NODRAW;
净买:ABS(流入万)-ABS(流出万),COLORYELLOW,NODRAW;
{60分时MACD背离买卖}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MAD:=(DIF-DEA)*2,COLORSTICK;
RSI1:=MAD;
AA:=REF(RSI1,8)=HHV(RSI1,2*8+1);
BB:=BACKSET(AA,8+1);
CC:=FILTER(BB,8) AND RSI1=HHV(RSI1,8+1);
AA1:=BARSLAST(REF(CC,1));
顶背离:=REF(CLOSE,AA1+1)<CLOSE AND REF(RSI1,AA1+1)>RSI1 AND CC,COLORRED;
DRAWTEXT(顶背离=1,H*1.01,'指顶'),COLORLIGRAY;
AA2:=REF(RSI1,8)=LLV(RSI1,2*8+1);
BB2:=BACKSET(AA2,8+1);
CC2:=FILTER(BB2,8) AND RSI1=LLV(RSI1,8+1);
A22:=BARSLAST(REF(CC2,1));
底背离:=REF(CLOSE,A22+1)>CLOSE AND REF(RSI1,A22+1)<RSI1 AND CC2,COLORCYAN;
DRAWTEXT(底背离=1,L*0.98,'指底'),COLORWHITE;
DNRSI1:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*50;
DNAA:=REF(DNRSI1,8)=HHV(DNRSI1,2*8+1);
DNBB:=BACKSET(DNAA,8+1);
DNCC:=FILTER(DNBB,8) AND DNRSI1=HHV(DNRSI1,8+1);
DNA1:=BARSLAST(REF(DNCC,1));
DN顶背离:=REF(CLOSE,DNA1+1)<CLOSE AND REF(DNRSI1,DNA1+1)>DNRSI1 AND DNCC;
DRAWTEXT(DN顶背离=1,H*1.015,'*能顶'),COLORYELLOW;
DNAA2:=REF(DNRSI1,8)=LLV(DNRSI1,2*8+1);
DNBB2:=BACKSET(DNAA2,8+1);
DNCC2:=FILTER(DNBB2,8) AND DNRSI1=LLV(DNRSI1,8+1);
DNA22:=BARSLAST(REF(DNCC2,1));
DN底背离:=REF(CLOSE,DNA22+1)>CLOSE AND REF(DNRSI1,DNA22+1)<DNRSI1 AND DNCC2,COLORCYAN;
DRAWTEXT(DN底背离=1,L*0.99,'^能底'),COLORBROWN;
底背:=DN底背离 OR 底背离;
AAA二:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(AAA二=1,21)=1,COLORMAGENTA,NODRAW;
DRAWTEXT(二次金叉,L,'再金叉'),COLORLIRED;
主升周期:=COUNT(CROSS(DIF,DEA),BARSLAST(CROSS(DEA,0)));
主升金叉:=CROSS(DIF,DEA) AND DEA>0 AND COUNT(主升周期=2,21)=1;
初升金叉:=CROSS(DIF,DEA) AND DEA>0 AND COUNT(主升周期=1,21)=1;
DRAWTEXT(主升金叉,L,'主叉'),COLORLIRED;
DRAWTEXT(初升金叉,L,'初叉'),COLORLIRED;
金叉群:=二次金叉 OR 初升金叉 OR 主升金叉 OR 主非金叉;
{波段王买卖}
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
中轴线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
压力线:=BBI+3*STD(BBI,10);
支撑线:=BBI-3*STD(BBI,10);
上开:=OPEN;
上收:=CLOSE;
上高:=HIGH;
上低:=LOW;
JJJ:=(上开+上高+上低)/3;
A:=EMA(JJJ,4);
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
LCC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LCC,0),6,1)/SMA(ABS(CLOSE-LCC),6,1)*100;
高抛:=CROSS(84,RSI);
低吸:=CROSS(RSI,11);
适当买:=CROSS(VA1,VA2) AND (CLOSE>=OPEN) AND A>REF(A,1);
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
XX1:=(CLOSE+LOW+HIGH)/3;
XX2:=EMA(XX1,6);
XX3:=EMA(XX2,5);
追涨:=CROSS(XX2,XX3);
S:=EMA((CLOSE-LLV(CLOSE,21))/(HHV(CLOSE,21)-LLV(CLOSE,21)),1);
庄:=IF(S>0,MA(S,1),0);
买W:=CROSS(庄,0.001);
欣喜:=MEMA(XMA((((C-O)*2)+O),30),13);
若狂:=MEMA(MEMA((((C-O)*2)+O),5),13);
狂买入:=欣喜>若狂;
狂选股:=买W AND LAST(狂买入,2,0) AND CROSS(ZIG(3,8),REF(ZIG(3,8),1));
DRAWTEXT(狂选股,L*0.98,'必买'),COLORRED;
满仓:DRAWICON((ZIG(3,35)>REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)<REF(ZIG(3,35),2)),MA4,25);
空仓:DRAWICON((ZIG(3,35)<REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)>REF(ZIG(3,35),2)),MA4,27);
背离群:=底背离 OR DN底背离 OR 狂选股;
{卖点}
LC:= REF(CLOSE,1);
随机指标:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(82,随机指标),HIGH*1.01,'顶');
卖出:=(ZIG(3,10)<REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1)>REF(ZIG(3,10),2));
TYP :=(HIGH + LOW + CLOSE)/3;
V11:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),14)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),14);
MFI:=100-(100/(1+V11));
资金:=MA(MFI,5);
资金卖:=CROSS(资金,MFI);
AA10:=MA(C,10);
AA20:=MA(C,20);
BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;
AA30:=MA(C,30);
三拾日乖离率:=(C-AA30)/AA30*100;
AA05:=MA(C,5);
五日乖离率:=(C-AA05)/AA05*100;
趋势乖离率:=(C-MA(C,13))/MA(C,13)*100>10;
趋势乖离率2:=(C-MA(C,13))/趋势*100>10;
MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;
底买:=FILTER(MR,10);
DRAWTEXT(底买,LOW*0.95,'抢'),COLORYELLOW;
BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30) AND
AA05<REF(AA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND AA10<REF(AA10,1),10);
JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND AA10>REF(AA10,1) ;
减仓:=FILTER(JC,10);
P:=(HIGH + LOW + CLOSE)/3;
CCI:=(P-MA(P,14))*100/(1.5*AVEDEV(P,14));
十四CCI:=CROSS(100,CCI);
顶背:=(H>=REF(H,1) AND C<=REF(C,1)) AND ((清仓 OR 减仓) OR ((卖出 AND 趋势乖离率) OR REF(卖出,1) OR (趋势乖离率 AND COUNT(CROSS(82,随机指标),3)>=1)));
VARD卖出:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));
卖点:=((((资金卖 OR 十四CCI) AND (((REF(趋势乖离率2,1) AND 清仓 OR 减仓)) OR EXIST(卖出,2))) OR 顶背) AND EXIST(C<神秘线*0.99,2) OR EXIST(卖出,2) AND C<REF(C,1)) OR VARD卖出=1;
取反:=NOT(REF(卖点,1));
DRAWICON(卖点 AND 取反,H*1.02,6);
DRAWICON(卖出,H*1.01,2);
{综合条件选股}
强弱条件:=欣喜>若狂 AND EXIST(欣喜-若狂>REF(欣喜,1)-REF(若狂,1),2);
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
最强:=长期=100 AND EVERY(短期=100,2);
大底:=短期<6 AND 中期<6 AND 中长期<6 AND 长期<6;
大底波段:=EXIST(大底,2) AND 狂选股 AND LAST(狂买入,2,0) AND CROSS(ZIG(3,8),REF(ZIG(3,8),1));
DRAWTEXT(大底波段,神秘线,'大金矿'),COLORLIRED;
{机构做多资金,个股做空资金}
VAR0:=(2*CLOSE+HIGH+LOW)/4;
B:=XMA((VAR0-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,12);
主力做多资金:=EMA(B,3);
个股做空资金:=SMA(主力做多资金,10,1);
单位股多空:=((主力做多资金-REF(主力做多资金,1))>REF(主力做多资金,1)-REF(主力做多资金,3)
AND (主力做多资金>=REF(主力做多资金,1))) OR (EVERY(短期=100,2) AND EVERY(长期>REF(长期,1),2) AND (CROSS(长期,50) OR EVERY(长期>80,2)));
资金金叉群:=CROSS(主流资金,非主流) OR CROSS(主流资金,主力做多资金) OR CROSS(主流资金,个股做空资金) OR EVERY(主流资金>非主流,5) OR CROSS(MA(主流资金,2),MA(主流资金,3));
超牛条件:=(主力做多资金>个股做空资金 AND 主力做多资金>REF(主力做多资金,1) AND (主流资金>REF(主流资金,1) OR (主流资金>非主流 AND 主流资金>MA(主流资金,3))))
OR (主力做多资金>REF(主力做多资金,1) AND REF(主力做多资金,1)<REF(主力做多资金,3) AND EVERY(个股做空资金<REF(个股做空资金,1),7) AND EXIST((CROSS(主流资金,主力做多资金) OR CROSS(主流资金,非主流)),2));
{成交量}
动能成交量:=MA(VOL,5);
洗盘成交量:=MA(VOL,35);
异动成交量:=MA(VOL,135);
动能量拐点:=动能成交量>REF(动能成交量,1) AND REF(动能成交量,1)<REF(动能成交量,2);
动洗金叉:=CROSS(动能成交量,洗盘成交量);
动洗金叉周期:=BARSLAST(动洗金叉);
洗异金叉:=CROSS(洗盘成交量,异动成交量);
动异金叉:=CROSS(动能成交量,异动成交量);
成交三金叉:=动洗金叉 OR 洗异金叉 OR 动异金叉;
强量金叉:=(动洗金叉 AND EXIST(动异金叉,2));
主升量周期:=COUNT(动洗金叉,BARSLAST(洗异金叉));
主升量金叉:=动洗金叉 AND 洗盘成交量>异动成交量 AND COUNT(主升量周期=2,35)=1;
初升量金叉:=动洗金叉 AND 洗盘成交量>异动成交量 AND COUNT(主升量周期=1,35)=1;
拉升:=(CROSS(主力做多资金,50) OR CROSS(主力做多资金,个股做空资金));
{支压}
现价:=C;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*7/8;
短买:=TROUGHBARS(1,6,1)=0 AND HIGH>LOW+0;
抄底:=EXIST(长期<=中长期 AND 中长期<=中期 AND 中期<=短期 AND 短期<6,3) AND 短买;
{资金动能}
DNDIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
资金动能B:=EMA(DNDIFF,5)*50;
资金动能A:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*50;
资金动能选股:=EXIST((CROSS(资金动能A,资金动能B) AND 资金动能A<-0.25),5) OR (短期=100 AND 长期>80 AND (资金动能A>资金动能B OR (CROSS(资金动能A,资金动能B) AND 资金动能A>-0.25)) AND (资金动能A-资金动能B)>2*(REF(资金动能A,1)-REF(资金动能B,1)));
动能金叉周期:=BARSLAST(CROSS(资金动能A,资金动能B));
价格趋势:=EMA(EMA(C,4)-EMA(C,13),5);
价周期:=BARSLAST(CROSS(价格趋势,0));
{次日涨停}
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
次日涨:=W4 AND COUNT(W4,5)=1;
主升:=(EXIST((DIF>=-0.021 AND 次日涨) OR 二次金叉 OR 初升金叉 OR 主升金叉,3) AND (拉升 AND (个股做空资金<50 OR REF(EVERY(个股做空资金>主力做多资金,5),1)))) AND (长期>短期 OR 长期=短期);
{换手线}
HSL:=100*VOL/(FINANCE(7)/100);
MAHSL:=MA(HSL,3);
{动能轨迹}
RSV:=(((CLOSE - LLV(LOW,36)) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);
Y0:=SMA(RSV,7,1);
Y1:=SMA(SMA(RSV,7,1),3,1);
Y2:=SMA(Y0,7,1);
机构持仓条件:=MA(C,20)>=REF(MA(C,20),1) AND (MA(C,20)-REF(MA(C,20),4))>0;
底部起涨:=EXIST(CROSS(动能成交量,洗盘成交量),6) AND EVERY(动能成交量>洗盘成交量,动洗金叉周期) AND EVERY(动能成交量>REF(动能成交量,1),动洗金叉周期)
AND (EVERY(短期=100,2) AND 长期=100 AND 主力做多资金>个股做空资金 AND C/REF(O,2)<1.08 AND Y1>Y2 AND Y2<55)
AND ((EXIST(CROSS(资金动能A,资金动能B),5) AND EVERY(资金动能A>REF(资金动能A,1),动能金叉周期))
OR (EXIST(CROSS(价格趋势,0),5) AND EVERY(价格趋势>REF(价格趋势,1),价周期)))
AND 主力做多资金>个股做空资金 AND 主力做多资金>=REF(主力做多资金,1) AND (次日涨 OR 拉升);
多头排列:=MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30);
调到位:=(短期<21 AND 长期>55 AND (机构持仓条件 OR 长期>61) AND (主力做多资金>个股做空资金 OR 主流资金>非主流)) OR 狂选股;
调到位2:=(短期<19.99 AND 长期>75 AND (机构持仓条件 OR 长期>75) AND (主力做多资金>个股做空资金 OR 主流资金>非主流));
到位周期:=BARSLAST(调到位);
VAR1K:=(CLOSE*2+HIGH+LOW)/4;
VAR2K:=EMA(VAR1K,13)-EMA(VAR1K,34);
VAR3K:=EMA(VAR2K,5);
主力控盘K:=2*(VAR2K-VAR3K)*3.8;
买卖线:=EMA(SLOPE(C,21)*20+C,42);
强于大盘:=(C-REF(C,1))/REF(C,1)>=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
波段买:=(((EXIST(调到位,4) AND 多头排列 AND (主流资金>REF(主流资金,1) AND 长期>REF(长期,1)) AND (动能成交量>REF(动能成交量,1) OR 主力控盘K>REF(主力控盘K,1) OR C>买卖线)
AND (EXIST(REF(长期,1)=100 OR 长期=100,到位周期+5) OR (EXIST(调到位2,3) AND EXIST(长期=100,到位周期+6))))
OR (EXIST(狂选股,3) AND (主流资金>REF(主流资金,1) AND 长期>REF(长期,1)) AND (动能成交量>REF(动能成交量,1) OR 主力控盘K>REF(主力控盘K,1))))) AND 强于大盘;
过滤:=波段买 AND (REF(BARSLAST(波段买)-BARSLAST(调到位),1)>0);
DRAWICON(调到位,L*0.98,15);
DRAWICON(过滤,L*0.98,38);
到位买:=((EVERY(REF(长期,1)>50,5) AND COUNT(长期=100 AND 短期=100,7)>1 AND 调到位)
OR (COUNT(长期=100,4)>=3 AND COUNT(CLOSE>0,0)>5 &&
(HHV(CLOSE,4)-LLV(CLOSE,4))/LLV(CLOSE,4)<=(5/100))) AND 多头排列 AND 机构持仓条件;
DRAWICON(到位买,L*0.98,7);
精确买点1:=((HSL>1.5*MAHSL OR HSL>=3) AND V>REF(V,1) AND 长期>=短期 AND (EXIST(调到位,3) AND (资金动能选股 OR 主流资金>REF(主流资金,1))))
OR (EXIST(调到位,2) AND 主流资金>非主流 AND 主力做多资金>个股做空资金);
精确买点2:=(EXIST(调到位,3)) AND (资金动能选股 OR 主流资金>REF(主流资金,1) OR (长期>REF(长期,1) AND 长期>60 AND CROSS(短期,20)));
精确买点3:=底部起涨;
条件1:=IF(主力做多资金>=REF(主力做多资金,1) AND 主力做多资金>个股做空资金,精确买点2,0);
条件2:=IF(主力做多资金<REF(主力做多资金,1) AND ((主流资金>REF(主流资金,1) AND 主流资金>50) OR 主流资金>非主流 OR CROSS(主流资金,非主流) OR CROSS(主流资金,80)),精确买点1,0);
条件3:=IF(主力做多资金>=REF(主力做多资金,1) AND 主力做多资金>个股做空资金,精确买点3,0);
条件4:=(EXIST(狂选股,2) OR 主升) AND (资金动能选股 OR 主流资金>REF(主流资金,1) OR (长期>REF(长期,1) AND 长期>60 AND CROSS(短期,20)));
{量价趋势}
LDI:=EMA((EMA(VOL,4)-EMA(VOL,13))/EMA(VOL,10),5);{量趋势}
JDI:=EMA(EMA(C,4)-EMA(C,13),5);{价趋势}
条件红1:=EVERY((JDI>=REF(JDI,1) AND LDI>=REF(LDI,1)),2) AND ABS(LDI-JDI)>=ABS(REF((LDI-JDI),1));
条件红2:=(JDI>=REF(JDI,1) AND LDI>=REF(LDI,1)) AND (ABS(LDI-JDI)>=ABS(REF((LDI-JDI),1)) OR CROSS(LDI,JDI)) AND
((REF(LDI,1)<REF(LDI,2) AND REF(JDI,1)>REF(JDI,2))
OR (REF(LDI,1)>REF(LDI,2) AND REF(JDI,1)<REF(JDI,2))
OR (REF(LDI,1)<REF(LDI,2) AND REF(JDI,1)<REF(JDI,2)));
条件红3:=CROSS(LDI,0);
量价趋势:=条件红1 OR 条件红2 OR 条件红3;
信号过滤:=底背离 OR 狂选股 OR 拉升 OR DN底背离;
{波段王买入信号加入主图}
C11:=(CLOSE+LOW+HIGH)/3;
C22:=EMA(C11,6);
C3:=EMA(C22,5);
C4:=CROSS(C22,C3);
BBB:=MA(MA(CLOSE,3),1);
首买信号:=CROSS(BBB,神秘线) OR C4 OR (EVERY(短期=100,2) AND EVERY(长期>REF(长期,1),2) AND (CROSS(长期,50) OR EVERY(长期>80,2)));
首次买入:=首买信号 AND 强弱条件 AND (EXIST(金矿,7) OR EXIST((((条件1 OR 条件2 OR 条件3) AND 长期>50) OR 条件4),5));
快买:=(EXIST(金矿,7) OR EXIST((((条件1 OR 条件2 OR 条件3) AND 长期>50) OR 条件4),5)) AND (EXIST(洗异金叉,2) OR (成交三金叉 AND C>O) OR 金叉群 OR (EVERY(短期=100,2) AND EVERY(长期>REF(长期,1),2) AND (CROSS(长期,50) OR EVERY(长期>80,2))))
AND (((Y0<80 AND Y1<80 AND Y2<68) OR (EVERY(主流资金>非主流,3) AND EVERY(主力做多资金>个股做空资金,3) AND EVERY(主流资金>REF(主流资金,1),2)))
OR 资金金叉群 OR (REF(长期,1)>REF(短期,1) AND REF(长期,1)>80 AND 长期=100));
{强买选股}
机构趋势:=MA(MA(C,2),1);
趋势选:=((LONGCROSS(机构趋势,欣喜,1) OR LONGCROSS(机构趋势,若狂,1) ) AND 机构趋势>REF(机构趋势,1) ) AND (欣喜 >若狂) AND (欣喜>REF(欣喜,1)) AND (EMA(C,20)>=REF(EMA(C,20),1)) AND 机构趋势>若狂;
金叉条件:=(EXIST(洗异金叉,2) OR (成交三金叉 AND C>O) OR 金叉群 OR (EVERY(短期=100,2) AND EVERY(长期>REF(长期,1),2) AND (CROSS(长期,50) OR EVERY(长期>80,2))));
小选股:=资金金叉群 AND 趋势选 AND 强弱条件 AND 金叉条件 AND 强量金叉 AND 量价趋势 AND 单位股多空 AND H-C<C-O AND 现价<阻力;
最佳小选股:=小选股 AND (REF(长期,1)<100 AND 长期=100 AND 短期=100);
精确加仓:=TFILTER(快买,信号过滤,1) AND 强弱条件 AND 资金金叉群;
DRAWTEXT(拉升,L*0.98,'升'),COLORRED;
{机构买点}
A1:=(DVOL/C)/2,NODRAW;
A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A6:=A2+A3+A4+A5;
机买:=(A2/A6)*100,LINETHICK2,COLORRED;
机卖:=(A3/A6)*100,LINETHICK2,COLORGREEN;
主力差:=机买-机卖,LINETHICK2,NODRAW;
机构买:=主力差>0 AND REF(主力差,1)<=0;
DRAWTEXT(机构买,L*0.99,'★机构'),COLORLIRED;
DRAWICON(抄底,L*0.98,11);
金矿:=(EXIST(底背,5) OR EXIST(抄底,2)) AND 狂选股;
综合买入条件:=金矿 OR ((((条件1 OR 条件2 OR 条件3) AND 长期>50) OR 条件4) AND 强弱条件);
最佳条件:=精确加仓 AND ((精确加仓 OR 综合买入条件) AND (EXIST((洗异金叉 OR 初升量金叉 OR 主升量金叉 OR 底背离 OR DN底背离) AND 狂买入,7)))
AND (量价趋势 OR 单位股多空 OR 最强) AND 洗盘成交量>异动成交量 AND H-C<C-O AND 现价<阻力;
DRAWTEXT(金矿,H*1.02,'金矿'),COLORYELLOW;
DRAWTEXT(FILTER(主升,3),L*0.98,'主升'),COLORLIBLUE;
DRAWICON(底部起涨,L*0.96,26);
DRAWTEXT(FILTER(((条件1 OR 条件2 OR 条件3) AND 长期>50) OR 条件4,3) AND 强弱条件,L*0.97,'买!'),COLORMAGENTA;
DRAWNUMBER(FILTER(((条件1 OR 条件2 OR 条件3) AND 长期>50) OR 条件4,3) AND 强弱条件,L*0.99,L),COLORRED;
DRAWTEXT(EXIST((条件1 OR 条件2 OR 条件3 OR 条件4 OR 调到位),7) AND (短期=100 AND 长期<短期-0.01) AND 主力做多资金<=REF(主力做多资金,1),H*1.02,'!'),COLORGREEN;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),H*1.01,'短卖'),COLORLIGREEN;
DRAWTEXT(FILTER(首次买入,5),H*1.01,'首买'),COLORGRAY;
DRAWTEXT(精确加仓,L*0.99,'加仓'),COLORLIGRAY;
DRAWICON(精确加仓 AND 量价趋势,H*1.01,38);
DRAWICON(精确加仓 AND 单位股多空,L*0.98,41);
DRAWTEXT(最佳条件 OR 最佳小选股,H*1.02,'佳'),COLORLIRED;
DRAWTEXT((最佳条件 OR 最佳小选股) AND 超牛条件,H*1.01,'超牛'),COLORLICYAN;
DRAWTEXT(FILTER(小选股,5),L*0.98,'★强买'),COLORBROWN;
{抄底}
ADD:=(3*C+L+O+H)/6;
多:=(20*ADD+19*REF(ADD,1)+18*REF(ADD,2)+17*REF(ADD,3)+16*REF(ADD,4)+15*REF(ADD,5)+14*REF(ADD,6)+13*REF(ADD,7)+12*REF(ADD,8)+11*REF(ADD,9)+10*REF(ADD,10)+9*REF(ADD,11)+8*REF(ADD,12)+7*REF(ADD,13)+6*REF(ADD,14)+5*REF(ADD,15)+4*REF(ADD,16)+3*REF(ADD,17)+2*REF(ADD,18)+REF(ADD,20))/210;
空方:=MA(多,10);
多空选股:=(CROSS(多,空方) OR (多>REF(多,1) AND REF(多,1)<REF(多,2))) AND (CROSS(长期,55) OR CROSS(长期,80));
多空条件:=(CROSS(多,空方) OR (多>REF(多,1) AND REF(多,1)<REF(多,2))) OR (CROSS(长期,55) OR CROSS(长期,80));
{钻石底}
VARD1:="DMI.PDI";
VARD2:="DMI.MDI";
VARD3:=VARD1>65 AND VARD1>REF(VARD1,1);
VARD4:=LLV(VARD1,0);
VARD5:=BARSLAST(VARD4=VARD1);
VARD6:=(0-REF(VARD2,4))/(VARD4-REF(VARD2,VARD5))>2;
VARD7:=VARD1>REF(VARD1,1);
VAR8:=VOL>2*MA(VOL,30);
VAR9:="DMI.ADX"(12,6);
VARA:="DMI.ADXR"(12,6);
VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARE:=0-"MACD.DIF"(7,21,3);
VARF:=TROUGHBARS(趋势,15,1)<4; {未来函数}
VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
VAR11:=IF(VARF=1,50,0);
VAR12:=CROSS(VARD2,VARD1) AND CROSS(VARA,VAR9);
VAR13:=CROSS(VARD2,VARD1) AND CROSS(VAR9,VARA);
VAR14:=VARB AND VARC AND VARD AND VAR10 AND VARD6 AND VARD7 AND VAR8*50;
VAR15:=BARSLAST(CROSS(VARD2,VARD1)=1);
VAR16:=BARSLAST(CROSS(VARD1,VARD2)=1);
VAR17:=HHV(VARD1,VAR16);
VAR18:=BARSLAST(VARD1=VAR17);
VAR19:=VARD3 OR VAR12 OR VAR13*100;
VAR1A:=VAR13*100;
{波段出击}
VAR2:=(HIGH+LOW+CLOSE*2)/4;
VAR3:=EMA(VAR2,21);
VAR4:=STD(VAR2,21);
VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;
VAR6:=(EMA(VAR5,5)-25)*1.56;
AK:=EMA(VAR6,2)*1.22;
AD:=EMA(AK,2);
AJ:=3*AK-2*AD;
VV1:=(C*2+H+L)/4*10;
VV2:=EMA(VV1,13)-EMA(VV1,34);
VV3:=EMA(VV2,5);
VV4:=2*(VV2-VV3)*5.5;
主力撤:=IF(VV4<=0,VV4,0),COLORBLUE;
VV11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-
2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线2:=EMA(VV11,3);
波买:=EXIST(LONGCROSS(欣喜,若狂,1),10) AND 欣喜>若狂;
买进:=IF(CROSS(AK,AD) AND 波买,58,20);
定买:=EXIST(VARF=1,3) AND (FILTER(多空条件,5) OR (买进 AND REF(VARF=1,1)));
DRAWTEXT(REF(主力撤,1)<0 AND 主力撤>=0 AND 趋势线2<30 AND (EVERY(主流资金>REF(主流资金,1),2) OR CROSS(主流资金,50) OR CROSS(主流资金,非主流)),L,'B点'),COLORYELLOW;
DRAWTEXT(FILTER(定买,5),神秘线,'A抄底'),COLORLIGRAY;
TYPP:=(HIGH+LOW+CLOSE)/3;
CCCI:=(TYPP-MA(TYPP,14))/(0.015*AVEDEV(TYPP,14));
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEAA:=EMA(DIFF,9);
MACDD:=(DIFF-DEAA)*2;
牛股:=CCCI>100 AND MACDD>0 AND CROSS(MA(C,26),MA(C,100)) AND C>MA(C,5);
DRAWTEXT(牛股,L*0.98,'大牛'),COLORBROWN;
DRAWICON(牛股,L*0.98,1),COLORBROWN;
LVAR1:=(CLOSE*2+HIGH+LOW)/4;
LVAR2:=EMA(LVAR1,13)-EMA(LVAR1,34);
LVAR3:=EMA(LVAR2,5);







gd30337


【下载地址隐藏】:                    点:回复可见地址
游客,如果您要查看本帖隐藏内容请回复






上一篇:「指标」通达信极品短线主图指标 无未来
下一篇:「指标」通达信买点提示指标公式
回复

举报

QQ|

GMT+8, 2024-11-24 06:39

快速回复 返回顶部 返回列表