以下是通达信冠军1号牛股猎杀池-源码

通达信冠军1号牛股猎杀池-源码

大盘SJ:=WMA(((2*INDEXC+INDEXH+INDEXL)/4-LLV(INDEXL,5))/(HHV(INDEXH,5)-LLV(INDEXL,5))*100,2);
大盘ZJ:=WMA(0.618*REF(大盘SJ,1)+0.382*大盘SJ,2);
大盘买1:=CROSS(大盘SJ,大盘ZJ) AND 大盘SJ<30;
大盘卖1:=CROSS(大盘ZJ,大盘SJ) AND 大盘SJ>70;

大盘VAR1:=4*SMA((INDEXC-LLV(INDEXL,5))/(HHV(INDEXH,5)-LLV(INDEXL,5))*100,5,1)-3*SMA(SMA((INDEXC-LLV(INDEXL,5))/(HHV(INDEXH,5)-LLV(INDEXL,5))*100,5,1),3.2,1);
大盘RSI:=SMA(MAX((INDEXC-REF(INDEXC,1)),0),3,1)/SMA(ABS(INDEXC-REF(INDEXC,1)),3,1)*100;
大盘买2:=CROSS(大盘VAR1,8);
大盘卖2:=CROSS(88,大盘RSI);

大盘RSV6:=(INDEXC-LLV(INDEXL,6))/(HHV(INDEXH,6)-LLV(INDEXL,6))*100;
大盘K6:=SMA(大盘RSV6,3,1);
大盘D6:=SMA(大盘K6,3,1);
大盘J6:=3*大盘K6-2*大盘D6;
大盘KDJ6买点:=CROSS(大盘J6,大盘D6);
大盘KDJ6卖点:=CROSS(大盘D6,大盘J6);
大盘J6买点:=CROSS(大盘J6,0);
大盘J6卖点:=CROSS(100,大盘J6);

大盘RSV9:=(INDEXC-LLV(INDEXL,9))/(HHV(INDEXH,9)-LLV(INDEXL,9))*100;
大盘K9:=SMA(大盘RSV9,3,1);
大盘D9:=SMA(大盘K9,3,1);
大盘J9:=3*大盘K9-2*大盘D9;
大盘J9买点:=CROSS(大盘J9,0);
大盘J9卖点:=CROSS(100,大盘J9);
大盘KD买点:=CROSS(大盘K9,大盘D9)&&大盘K9<20;
大盘KD卖点:=CROSS(大盘D9,大盘K9)&&大盘K9>80;

大盘MB1:=EMA(WINNER(INDEXC)*100,5);
大盘MB2:=EMA(大盘MB1,2);
大盘MB3:=EMA(大盘MB2,2);
大盘MB4:=EMA(大盘MB3,2);
大盘VAR3:=DRAWLINE(大盘MB1>=HHV(大盘MB1,5)=1,大盘MB1,大盘MB1<=LLV(大盘MB1,5)=1,大盘MB1,1);
大盘黄柱:=大盘MB1=大盘VAR3 AND 大盘MB1<大盘MB4;
大盘红柱:=REF(大盘MB1,1)=REF(大盘VAR3,1) AND 大盘MB1>REF(大盘MB1,1);

大盘UPPER:=MA(INDEXC,20)+2*STD(INDEXC,20);
大盘LOWER:=MA(INDEXC,20)-2*STD(INDEXC,20);
大盘布林买点:=CROSS(INDEXC,大盘LOWER);
大盘布林卖点:=CROSS(INDEXC,大盘UPPER);

大盘WRSI:=SMA(MAX(INDEXC-REF(INDEXC,1),0),6,1)/SMA(ABS(INDEXC-REF(INDEXC,1)),6,1)*100;
大盘强弱买点:=CROSS(大盘WRSI,20);
大盘强弱卖点:=CROSS(80,大盘WRSI);

大盘买点:=大盘买1=1 OR 大盘买2=1 OR 大盘KD买点=1 OR 大盘布林买点=1 OR 大盘强弱买点=1 OR 大盘黄柱=1 OR 大盘KD买点=1 OR 大盘J6买点=1 OR 大盘J9买点=1 OR 大盘红柱=1;
大盘卖点:=大盘布林卖点=1 OR 大盘强弱卖点=1 OR 大盘卖1=1 OR 大盘卖2=1 OR 大盘J6卖点=1 OR 大盘J9卖点=1 OR 大盘KD卖点=1 OR 大盘布林卖点=1 OR 大盘KDJ6卖点=1;
大盘YM:=EMA(SLOPE((INDEXC+INDEXH+INDEXL)/3,24)*20+(INDEXC+INDEXH+INDEXL)/3,48);
大盘YM1:=EMA(大盘YM,20);
大盘EMA:=EMA((INDEXC+INDEXH+INDEXL)/3,5);

短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+REF(H,20))/210;
短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+REF(L,20))/210;
多空线:=(短高H+短低L)/2;
多头定位:=多空线>EMA(多空线,90);

波段高:=3.2*XMA(XMA(H,60),60)-2.2*XMA(XMA(L,60),60);
波段低:=3.2*XMA(XMA(L,60),60)-2.2*XMA(XMA(H,60),60);
高:=2*XMA(XMA(H,25),25)-XMA(XMA(L,25),25);
低:=2*XMA(XMA(L,25),25)-XMA(XMA(H,25),25);
轨道振幅:=(高/低-1)*100;
获利率:=(高/((H+C)/2)-1)*100;

SJ:=WMA(((2*C+H+L)/4-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);
买1:=CROSS(SJ,ZJ) AND SJ<30;
卖1:=CROSS(ZJ,SJ) AND SJ>70;

VAR1:=4*SMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,5,1)-3*SMA(SMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,5,1),3.2,1);
RSI:=SMA(MAX((C-REF(C,1)),0),3,1)/SMA(ABS(C-REF(C,1)),3,1)*100;
买2:=CROSS(VAR1,8);
卖2:=CROSS(88,RSI);

RSV6:=(C-LLV(L,6))/(HHV(H,6)-LLV(L,6))*100;
K6:=SMA(RSV6,3,1);
D6:=SMA(K6,3,1);
J6:=3*K6-2*D6;
KDJ6买点:=CROSS(J6,D6);
J6买点:=CROSS(J6,0);
J6卖点:=CROSS(100,J6);

RSV9:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K9:=SMA(RSV9,3,1);
D9:=SMA(K9,3,1);
J9:=3*K9-2*D9;
J9买点:=CROSS(J9,0);
J9卖点:=CROSS(100,J9);
KD买点:=CROSS(K9,D9)&&K9<20;
KD卖点:=CROSS(D9,K9)&&K9>80;

MB1:=EMA(WINNER(C)*100,5);
MB2:=EMA(MB1,2);
MB3:=EMA(MB2,2);
MB4:=EMA(MB3,2);
MB5:=EMA(MB4,2);
MB6:=EMA(MB5,2);
VAR3:=DRAWLINE(MB1>=HHV(MB1,5)=1,MB1,MB1<=LLV(MB1,5)=1,MB1,1);
宝剑黄柱:=MB1=VAR3 AND MB1<MB4;
宝剑红柱:=REF(MB1,1)=REF(VAR3,1) AND MB1>REF(MB1,1);

UPPER:=MA(C,20)+2*STD(C,20);
LOWER:=MA(C,20)-2*STD(C,20);
布林买点:=CROSS(CLOSE,LOWER);
布林卖点:=CROSS(CLOSE,UPPER);

WRSI:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
相对强弱买点:=CROSS(WRSI,20);
相对强弱卖点:=CROSS(80,WRSI);

买点3:=(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));
买点定位:=买1=1 OR 买2=1 OR KD买点=1 OR 布林买点=1 OR 相对强弱买点=1 OR 宝剑黄柱=1 OR KD买点=1 OR J6买点=1 OR J9买点=1 OR 宝剑红柱=1 OR 买点3=1;

量比:=IF(CURRBARSCOUNT=1,V*240/FROMOPEN/REF(V,1)-1,V/REF(V,1)-1);

大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7);
涨跌动因:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);
大单差分:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);
主力活跃度:=LARGEINTRDVOL-LARGEOUTTRDVOL;
主力净流入:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*AMO/V/10000;
买入力度:=LARGEINTRDVOL*100/V;
卖出力度:=LARGEOUTTRDVOL*100/V;
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
资金流向:=(超B+大B+中B+小B)-(超S+大S+中S+小S);
主力:=(超B+大B+中B)-(超S+大S+中S);
机构:=(超B+大B)-(超S+大S);
私募:=(大B+中B)-(大S+中S);
大单:=大B-大S;
资金比:=(超B+大B+中B+小B)/(超S+大S+中S+小S);
大单比:=(超B+大B+中B)/(超S+大S+中S);
资金定位:=大单差分>0 AND 大单差分>0 AND 资金比>1 AND 大单比>1 AND 大单>0 AND 私募>0 AND 机构>0 AND 主力>0 AND 资金流向>0 AND DDX>0 AND 涨跌动因>0 AND 主力活跃度>0 AND 主力净流入>0 AND 买入力度>卖出力度;
资金定位1:=大单差分>0 AND 大单差分>0 AND 资金比>1.5 AND 大单比>1.5 AND 大单>0 AND 私募>0 AND 机构>0 AND 主力>0 AND 资金流向>0 AND DDX>0.2 AND 涨跌动因>10 AND 主力活跃度>0 AND 主力净流入>0 AND 买入力度>卖出力度;

DEA102:=EMA(EMA(EMA(C,4)-EMA(C,12),102)-EMA(EMA(C,4)-EMA(C,12),204),9);
DEA51:=EMA(EMA(EMA(C,4)-EMA(C,12),51)-EMA(EMA(C,4)-EMA(C,12),102),9);
DEA1818:=EMA(EMA(EMA(C,4)-EMA(C,12),18)-EMA(EMA(C,4)-EMA(C,12),36),9);
DEA66:=EMA(EMA(EMA(C,4)-EMA(C,12),6)-EMA(EMA(C,4)-EMA(C,12),12),9);

DEA1212:=EMA(EMA(EMA(C,4)-EMA(C,12),12)-EMA(EMA(C,4)-EMA(C,12),24),9);
DEA144:=EMA(EMA(C,144)-EMA(C,288),9);
DEA72:=EMA(EMA(C,72)-EMA(C,144),9);
DEA36:=EMA(EMA(C,36)-EMA(C,72),9);
DEA18:=EMA(EMA(C,18)-EMA(C,36),9);
DEA12:=EMA(EMA(C,12)-EMA(C,24),9);
DEA6:=EMA(EMA(C,6)-EMA(C,12),9);

KKK:=资金定位=1 AND 买点定位=1 AND (H-C)<(C-L) AND (C+H+L)/3<(高+低)/2 AND 多头定位=1;
股池:=KKK AND 量比>0 AND 轨道振幅>8 AND 获利率>3;
股池1:=KKK AND 量比>0.5 AND 轨道振幅>10 AND 获利率>5;

牛股启动1:=DEA72>REF(DEA72,1) AND DEA36>DEA72 AND DEA36>0 AND DEA102>0 AND DEA51>0 AND DEA51>DEA102 AND 股池=1;
牛股启动2:=DEA72>REF(DEA72,1) AND DEA36>REF(DEA36,1) AND DEA36<DEA72 AND DEA36>0 AND DEA102>0 AND DEA18>0 AND DEA51>0 AND DEA51>DEA102 AND 股池=1;
牛股启动3:=DEA72>REF(DEA72,1) AND DEA36>REF(DEA36,1) AND DEA36>DEA72 AND DEA18>DEA36 AND DEA18>0 AND DEA36<0 AND DEA102>0 AND DEA51>DEA102 AND 股池=1;
牛股启动4:=DEA72>REF(DEA72,1) AND DEA36>REF(DEA36,1) AND DEA36>DEA72 AND DEA18>DEA36 AND DEA18>0 AND DEA36>0 AND DEA102>0 AND DEA51>0 AND DEA1818>0 AND DEA102>REF(DEA102,1) AND DEA51>REF(DEA51,1) AND 股池=1;
牛股启动5:=DEA72>0 AND DEA36>0 AND DEA36<DEA72 AND DEA6>DEA12 AND DEA12>DEA18 AND DEA1818>DEA51 AND DEA1818>0 AND DEA102>REF(DEA102,1) AND DEA51>REF(DEA51,1) AND 股池=1;
牛股启动:=牛股启动1=1 OR 牛股启动2=1 OR 牛股启动3=1 OR 牛股启动4=1 OR 牛股启动5=1;

牛气冲天1:=DEA72>REF(DEA72,1) AND DEA36>DEA72 AND DEA36>0 AND DEA18>0 AND DEA18>DEA72 AND DEA18<DEA36 AND DEA102>0 AND DEA51>0 AND 股池=1;
牛气冲天2:=DEA72>REF(DEA72,1) AND DEA36>DEA72 AND DEA36>0 AND DEA18>0 AND DEA18<DEA72 AND DEA102>0 AND DEA102>0 AND DEA66>DEA1212 AND DEA1212>DEA1818 AND 股池=1;
牛气冲天:=牛气冲天1=1 OR 牛气冲天2=1;
牛股翻身:=DEA72>DEA144 AND DEA36>0 AND DEA72>0 AND DEA6>DEA12 AND DEA1212>DEA1818 AND 股池=1 AND 多头定位=1;

黑牛猎杀1:=DEA72>REF(DEA72,1) AND DEA36>0 AND DEA18>0 AND DEA72<0 AND DEA102>0 AND DEA51>0 AND DEA66>DEA1212 AND 股池=1;
黑牛猎杀2:=DEA72>REF(DEA72,1) AND DEA36>0 AND DEA18>0 AND DEA72>0 AND DEA102>0 AND DEA51>0 AND DEA18<DEA36 AND DEA36>DEA72 AND DEA72>DEA144 AND DEA144<0 AND 股池=1;
黑牛猎杀3:=DEA36>0 AND DEA18>0 AND DEA72>0 AND DEA102>0 AND DEA18<DEA36 AND DEA72>DEA144 AND DEA66>DEA1212 AND 股池=1;
黑牛猎杀:=黑牛猎杀1=1 OR 黑牛猎杀2=1 OR 黑牛猎杀3=1;

牛股定位:=股池1=1 AND 资金定位1=1;
牛股池:牛股启动=1 OR 黑牛猎杀=1 OR 牛股翻身=1 OR 牛气冲天=1;
多买牛股:牛股池=1 AND 大盘买点=1 AND 大盘EMA>大盘YM1;
多头牛股:牛股池=1 AND 大盘买点=0 AND 大盘EMA>大盘YM1;
空买牛股:牛股池=1 AND 大盘买点=1 AND 大盘EMA<大盘YM1;
空头牛股:牛股池=1 AND 大盘买点=0 AND 大盘EMA<大盘YM1 AND 大盘卖点=0;

牛气冲天池:牛气冲天=1 AND (多买牛股=1 OR 多头牛股=1 OR 空买牛股=1 OR 空头牛股=1);
黑牛猎杀池:黑牛猎杀=1 AND (多买牛股=1 OR 多头牛股=1 OR 空买牛股=1 OR 空头牛股=1);
牛股翻身池:牛股翻身=1 AND (多买牛股=1 OR 多头牛股=1 OR 空买牛股=1 OR 空头牛股=1);
牛股启动池:牛股启动=1 AND (多买牛股=1 OR 多头牛股=1 OR 空买牛股=1 OR 空头牛股=1);
 

精选牛气冲天:牛股定位=1 AND 牛气冲天=1 AND (多买牛股=1 OR 多头牛股=1 OR 空买牛股=1 OR 空头牛股=1);
精选黑牛猎杀:牛股定位=1 AND 黑牛猎杀=1 AND (多买牛股=1 OR 多头牛股=1 OR 空买牛股=1 OR 空头牛股=1);
精选牛股翻身:牛股定位=1 AND 牛股翻身=1 AND (多买牛股=1 OR 多头牛股=1 OR 空买牛股=1 OR 空头牛股=1);
精选牛股启动:牛股定位=1 AND 牛股启动=1 AND (多买牛股=1 OR 多头牛股=1 OR 空买牛股=1 OR 空头牛股=1);

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。