李雨青全系列选股公式(源码)大智慧1
大智慧软件自带选股公式源码
大智慧软件自带选股公式源码大智慧软件自带选股公式源码001指标条件选股★乖离率买入条件选股BIAS{N 12 1 100 LL -6 -40 0}(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100 < LL; 乖离率卖出条件选股{N 12 1 100 M 12 1 100}100*(C-MA(C,N))/MA(C,N)>M;★布林带买入条件选股BOLL{P 26 5 100 T 2 0.1 10}CROSS(CLOSE,"BOLL.LOWER"(P,T));布林带卖出条件选股{N 26 5 300 P 2 0.1 10}CROSS("BOLL.UPPER"(N,P),C);★随机指标买入条件选股{N 9 1 100 N1 3 2 40 N2 3 2 40}CROSS("KDJ.J"(N,M1,M2),0);随机指标卖出条件选股{N 9 1 100 N1 3 1 100 N2 3 1 100}CROSS(0,"KDJ.J"(N,N2,N3));★KD买入点条件选股{N 9 1 100 N1 3 2 40 N2 3 2 40 N3 20 1 100 }RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1);D:=SMA(K,M2,1);CROSS(K,D) AND D<N1;KD卖出条件选股{N 9 1 100 N1 3 1 100 N2 3 1 100 N3 80 1 100 }RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,N1,1);D:=SMA(K,N2,1);CROSS(D,K) AND D>N3;★均线买入条件选股{SHORT 5 1 300 LONG 10 2 300}CROSS(MA(CLOSE,SHORT),MA(CLOSE,LONG));均线卖出条件选股{N 10 1 100 M 30 1 100}CROSS(MA(C,M),MA(C,N));★MACD买入点条件选股{LONG 26 20 100 SHORT 12 5 50 M 9 2 40}DIFF := EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA := EMA(DIFF,M);MACD卖出条件选股{LONG 12 1 100 SHORT 26 5 100 M 9 1 100}DIFF := EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA := EMA(DIFF,M);CROSS(DIFF,DEA);★MTM买入条件选股{N 6 1 100 N1 6 1 100}CROSS("MTM.MTMMA"(N,N1),0);MTM卖出条件选股{N 6 1 100 N1 6 1 100}CROSS(0,"MTM.MTMMA"(N,N1));★RSI买入条件选股{N 6 2 100 LL 20 0 40}CROSS("RSI.RSI1"(N,2,2),LL);RSI卖出条件选股{N 6 1 100 N1 80 0 100}CROSS("RSI.RSI1"(N,2,2),N1);★抛物转向买入条件选股{N 4 1 50 STEP 2 1 5 MAXP 20 5 80} SARTURN(N,STEP,MAXP)=1;抛物转向卖出条件选股SAR{N 10 1 100 S 2 1 100 M 20 1 100} SAR(N,S,M)=-1;★威廉指标买入条件选股W&R{N 14 2 100 HH 80 0 100} CROSS("W&R"(N),HH);威廉指标卖出条件选股{N 14 1 100 M 20 0 100}CROSS("W&R"(N),M);002基本面选股★市盈率{n 30 10 30}dynainfo(39)<=N;★业绩选股{n 0.4 0 100}FINANCE2(3)>n;★小盘股{n 3000 700 50000}FINANCE2(37)<=N;大盘股{n 20000 15000 300000}FINANCE2(37)>=N;★净资产收益率选股{n 20 0 300}FINANCE2(5)>(N/100);★主营业务利润率选股{n 30 1 100}FINANCE2(28)/FINANCE2(27)>=(N/100);★市净率选股{n 5 1 50}C/FINANCE2(4)<N;003即时盘中选股★涨幅选股{N 0.03 0.01 0.1}DYNAINFO(14)>=N;★阶段涨幅选股{ d1 990504 900101 1331231 d2 990802 900101 1331231} A:=HHV(IF(DATE=D1,C,0),0);B:=HHV(IF(DATE=D2,C,0),0);B/A>=(1+P/100);★即时量比选股{n 1 1 100}DYNAINFO(17)>=N;★大手笔成交选股(买){n 200 1 10000}BUYVOL>=N;大手笔成交选股(卖){n 200 1 10000}SELLVOL>N;★换手率选股{n 5 0.01 100}DYNAINFO(37)>=N/100;★涨速选股{n 1 0.01 100}DYNAINFO(24)>=N/100;★振幅选股{n 5 0.1 100}DYNAINFO(13)>=N/100;004走势特征选股★均线多头排列{n 5 1 100 n1 10 1 1000 n2 20 1 1000 n3 30 1 1000}A1:=ma(close,n);A2:=ma(close,n1);A3:=ma(close,n2);A4:=ma(close,n3);Count(a1>a2 and a2>a3 and a3>a4,3)=3 and isup;★均线空头排列{n 5 1 100 n1 10 1 1000 n2 20 1 1000 n3 30 1 1000}A1:=ma(close,n);A2:=ma(close,n1);A3:=ma(close,n2);A4:=ma(close,n3);Count(a1<a2 and a2<a3 and a3<a4,3)=3 and not(isup);4 形态特征选股公式的编制(1)、均线多头排列a1:=ma(c,n1);a2:=ma(c,n2);a3:=ma(c,n3);a4:=ma(c,n4);count(a1>a2 and a2>a3 and a3>a4,3)=3 and isup;注:n1、n2、n3、n4j日均线呈多头排列,isup也可以用close>open表示。
大智慧板块选股公式
大智慧板块选股公式
大智慧板块选股公式是一种用于辅助投资者筛选股票的工具。
它通过分析特定板块的相关因素,给出相应的选股策略和公式,帮助投资者在特定行业或板块中找到具备投资潜力的个股。
在使用大智慧板块选股公式时,首先需要选择感兴趣的板块。
对于不同的投资者来说,关注的板块可能不同,例如科技、医药、能源等。
根据选择的板块,我们可以进一步分析板块内的各种因素,以确定选股策略。
大智慧板块选股公式常用的因素包括行业趋势、市场需求、相关政策、企业财务状况等。
通过系统的数据分析和量化模型,大智慧板块选股公式可以给出相应的选股指标,这些指标包括但不限于市盈率、市净率、庄家动态、资金流向等。
举个例子,对于科技行业的选股,大智慧板块选股公式可能会关注行业内的技术创新和产品研发能力。
在选择个股时,可以根据技术专利数量、研发投入比例、产品销售额增长率等指标来进行筛选。
大智慧板块选股公式的优势在于可以减少投资者的主观判断和盲目跟风,提供了一种较为科学和系统化的选股方法。
但需要注意的是,公式只是辅助工具,投资者仍然需要综合考虑其他因素,包括宏观经济环境、行业前景等,作出判断和决策。
总之,大智慧板块选股公式是一种辅助投资者筛选股票的工具,通过分析板块内相关因素,给出一套选股策略和公式。
在使用过程中,投资者应根据自身情况和需求,选择合适的板块并综合考虑其他因素进行投资决策。
李雨青的选股公式源码
李雨青的选股公式源码1.小金角技巧即10日均价线与20日均价线走出圆弧底,10日均价线上叉20日均价线,并且20日均价线也是要勾头向上的,股价在交叉点上方附近,甚至交叉点下方,10日均价线与20日均价线向上开口角度越陡,后势上涨的潜力越大。
mA5:=MA(C,5);mA10:=MA(C,10);mA20:=MA(C,20);yhd:=COUNT(ref(mA10<mA20,3),16)>=15 and count(mA5>mA10,3)>2;xg:yhd AND CROSS(mA10,mA20)AND mA20>REF(mA20,1);2.大金角技巧:就是20日均价线向上,上叉62日均价线,并且62日均价线也是要勾头向上的,这样20日和62日都是开口向上的,其是底部阳量放大的那些股票,并且开的角度越陡后期就越猛。
mA20:=MA(C,20);mA62:=MA(C,62);v1:=v>ref(v,1);CROSS(mA20,mA62)AND mA62>REF(mA62,1) and count(v1,3)>2;3.小金边技巧10日与20日均价线均向上运行,二者距离相差不大角度越陡越好;股价从10日线上方跌破10日线,接近20日均价线,最好4日线也跌破10日线;62日与133日均价线,没有反作用力最好;随后产生的成交阳量越大越好;MACD指标图形为空中加油技巧最好.小金边技巧第一次出现是最有效的,可重点寻找那些股价回落到小金边里面,4日线与20日线接近的股票小金边技巧(4死叉10配62)选股。
ma4:=ma(c,4);ma10:=ma(close,10);ma20:=ma(close,20);l1:=v>ref(v,1);v1:=count(cross(ma10,ma20),15);v2:=c<ref(close,1) and ref(close,1)<ref(close,2);xjb:v1=1 and v2 and ma10>c and c>ma20 and SLOPE(MA20,4)>0 ANDSLOPE(MA10,3)>0;xg:ref(xjb,2)=1 and ma4>ref(ma4,1) and l14.大金边技巧:当股价出现金角以后,股价会经过一段时间的上涨,股价第一次回落,跌破20日线,跌到20日和62日夹角里就是大金边!mA20:=MA(C,20);mA62:=MA(C,62);v1:=v>ref(v,1);djj:=CROSS(mA20,mA62)AND mA62>REF(mA62,1) and count(v1,3)>2;xg:count(djj,30)>0 and C<mA20 AND C>mA62 AND mA62>REF(mA62,1)5.MACD骑墙技巧:股价刚上涨时如DIF线已跨上0轴,而MACD线(或称DEA线)即将跨上但还未跨上0轴时,一旦成交放量,则上涨有望加速。
大智慧公式源码
一、精准买卖V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主力撤:IF(V4<=0,V4,0),colorblue;主力进:IF(V4>=0,V4,0),colorff00ff;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场:IF(VB>=0,VB,0),Colorred;大盘资金撤走:IF(VB<=0,VB,0),colorgreen;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-L LV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;DRAWTEXTABS(5,5,'股旁网'),linethick1,COLOR00EEff;准备现金:STICKLINE(趋势线<=13,0,20,5,0),colorcc9900;aa:=(趋势线<=13)and filter((趋势线<=13),15);drawtext(aa,30,'准备现金'),colorcc9900;买入股票:STICKLINE(趋势线<=13AND V12>13,0,50,5,0),color0099ff;bb:=(趋势线<=13AND V12>13)and filter((趋势线<=13AND V12>13),10); drawtext(bb,60,'买入股票'),color0099ff;卖临界:STICKLINE(趋势线>90and趋势线>ref(趋势线,1),100,95,15,1),COLORFFFF00;见顶清仓:filter(趋势线>90and趋势线<ref(趋势线,1)and主力进<ref(主力进,1),8);DRAWTEXT(见顶清仓,90,'逃顶'),coloryellow;cc:=(趋势线>=90AND V12)and filter((趋势线>=90AND V12),10);stickline(大盘资金进场and趋势线<13,0,30,10,0),colorred;stickline(大盘资金撤走and趋势线>90,0,30,10,0),colorgreen;stickline(主力进and趋势线<13,0,40,10,0),colorff00ff;stickline(主力撤and趋势线>90,0,40,10,0),colorblue;。
大智慧选股公式
大智慧选股公式编写条件选股公式时常用的通式。
一、放量、缩量(成交量函数为VOL)1、放量:(1).今天成交量较昨天增加了1倍,表示如下:VOL/REF(VOL,1)〉2(2).今天成交量较10个交易日平均成交量放大了1倍,表示如下:a:=ma(vol,10);Vol/a〉2或者直接用如下公式表示:vol/ma(vol,10)〉2;(3).今日的5日均量较10个交易日平均成交量放大了1倍,表示如下: a:=ma(vol,10);b:=ma(vol,5);b/a〉2;(4).今日的成交量超过了整个流通盘的5,,表示如下:vol/capital〉0.05;其中capital代表流通盘。
2、缩量(1).今日成交量较昨日减少了一半,表示如下:vol/ref(vol,1)〈0.5;(2).今日成交量较10个交易日平均成交量减少一倍,表示如下:a:=ma(vol,10);vol/a〈2;或者直接用如下公式表示:vol/ma(vol,10)〈2;(3).今日的5日均量较10个交易日平均成交量减少1倍,表示如下: a:=ma(vol,10);b:=ref(a,5);a/b〈2;(4).今日的成交量低于了整个流通盘的5,,表示如下:vol/capital〈0.05;二、上涨、下跌上涨:今天的涨幅达到5,以上,表示如下:close/ref(close,1)〉1.05;5日均价连续上涨,表示如下:a:=ma(close,5);b:=ref(a,1);b;下跌:今天的跌幅达到5,以上,表示如下:close/ref(close,1)〈0.95;5日均价连续下跌,表示如下:a:=ma(close,5);b:=ref(a,1);a〈b;(3)、K线的描述close〉open;阳线close〈open;阴线open〉ref(close,1);高开open〈ref(close,1);低开open〉ref(high,1);跳空高开(high为最高价)open〈ref(low,1);跳空低开(low为最低价)三、走势特征选股公式的编制(1)、n日内创新高hhv(high,n)=hhv(high,0) and barscount(c)〉=n;注:n为指标参数,可在参数设定范围内设定参数范围。
大智慧量化公式
大智慧量化公式
以下是大智慧股票指标公式:
1. 做空95:HHV((HIGH+LOW+OPEN+2CLOSE)/5+H-L,5),颜色为蓝色。
2. 做空68:HHV((HIGH+LOW+OPEN+2CLOSE)/52-L,5),颜色为红色。
3. 平衡点:LLV((HIGH+LOW+OPEN+2CLOSE)/5,3),颜色为灰色,DOTLINE。
4. 做多68:LLV((HIGH+LOW+OPEN+2CLOSE)/52-H,8),颜色为绿色。
5. 做多95:LLV((HIGH+LOW+OPEN+2CLOSE)/5-H+L,8),颜色为浅绿色。
6. F:=100(C-REF(C,1))/REF(C,1),表示当前收盘价与前一日收盘价的差值
占前一日收盘价的百分比。
7. 今小昨:IF(C<REF(O,1) AND f<0,1,0),表示当前收盘价小于前一日开
盘价且当前差值小于0时为1,否则为0。
8. 今小前:IF(C<REF(O,2) AND f<0,1,0),表示当前收盘价小于前两日开
盘价且当前差值小于0时为1,否则为0。
9. 真实波动范围(TR)的计算公式为TR=Max(H-L,H-PDC,PDC-L),其中
H表示当日的最高价,L表示当日的最低价,PDC表示前一日的收盘价。
以上是大智慧股票指标公式的部分示例,如需更多信息,建议查阅大智慧股票软件官网或咨询专业金融分析师。
李雨青立体操盘绝技:(整理)
李雨青立体操盘绝技:(整理)一、小金角技巧(平均移动线参数设置:4 、10 、20 ):1、是指10均线与20均线走出圆弧底形态,当10均线上叉20均线,当股价在金叉点位置附近时是买入的最好时机,而10均线与20均线开口角度越陡,后势上涨的潜力越大。
2、10均线上穿20均线形成金叉,10均线与20均线形成多头排列,便构成了金边带,当股价跌入10均线与20均线金边范围内时,这时就形成了金边买入的最好点。
3、需特别强调的是:(1)、自形成金叉以来,股价第一次跌入金边,其上涨的可信度越高,要果断买入。
(2)、若4日均线与10日均线形成死叉,同时,股价也跌入金边内,则次日是绝佳的买点。
(3)、用4日、10日、20日三条均线来表示的话。
金边买入一般有四个清晰的买入点:第一个为4日均线接近于10日均线;第二个是4日贴近10日;第三个是4日贴近于20日均线;第四个是4日跌跛20日均线;最后的这一个买点,其上升的力度己经较弱了,第一、第二波的上涨力度较大。
二、大金边买入技巧(均线参数设置:10日、20日、62日):1、是指20均线与62均线走出圆弧底形态,20均线上叉62均线,当股价在金叉点位置附近时是买入的最好时机,而20均线与62均线开口角度越陡,后势上涨的潜力越大。
2、10日与20日均线保持多头排列,在10日均线与20日均线上穿62日均线的过程中,62均线必须是走平或微升形态。
这样,当20日均线上叉62日均线,为绝佳买入点。
若在此位置,股价还继续跌,则要勇于从低吸纳。
(但是个人建议,在此交叉点位上,最好再权衡一下RSI指标和MACD指标,至少不能在超卖范围内。
)三、金边买入要注意事项:1、当10均线向上金叉20均线时,如20日均线向下运行,就有向下的反作用力,上涨的力度就会受到限制,这就要把20均线向上运行的股票挑选出来,这一点非常重要,没有反作用力的股票,上涨速度是火箭拉升式的。
有反作用力的,是一种震荡上行的,会影响上涨效果。
大智慧公式源码
1. MA5:MA(C,5), colorwhite;MA13:MA(C,13), coloryellow;MA21:MA(C,21), colormagenta;MA34:MA(C,34), colorgreen;MA55:MA(C,55), colorf00ff0, linethick2;MA89:MA(C,89), colorgray;MA144:MA(C,144), colorblue;MA233:MA(C,233), colorf0f000,linethick2;{布林曲线}MID :MA(CLOSE,26),pointdot,colorwhite;UPPER:MID + 2*STD(CLOSE,26),linethick0,coloryellow, dotline;LOWER:MID - 2*STD(CLOSE,26),linethick0,colorgreen, dotline;收口:=UPPER-LOWER;partline(MID,MID>=ref(MID,1),rgb(255,255,0),MID<ref(MID,1),rgb(0,255,0)),linethick1, dotline;partline(UPPER,UPPER>=ref(UPPER,1),rgb(255,255,0),UPPER<ref(UPPER,1),rgb(0,255,0)),linethick 1, dotline;partline(LOWER,LOWER>ref(LOWER,1),rgb(255,255,0),LOWER<=ref(LOWER,1),rgb(0,255,0)),linethick 1, dotline;{partline(UPPER,收口>=ref(收口,1),rgb(255,255,0),收口<ref(收口,1),rgb(0,255,0)),linethick1, dotline;partline(LOWER,收口>=ref(收口,1),rgb(255,255,0),收口<ref(收口,1),rgb(0,255,0)),linethick1, dotline;}{缠中说禅}分型:="chanlun@kxian"; {这个放第一个要不会出问题滴-_-\\\~~}笔:="chanlun@bi";bilast:="chanlun@bilast";段:="chanlun@duan";duanlast:="chanlun@duanlast";jxyl:="chanlun@JXYL2";jxzc:="chanlun@JXZC2";drawline(笔=1,h,笔=-1,l,0),coloryellow, linethick2;drawline(笔=-1,l,笔=1,h,0),coloryellow, linethick2;drawline(段=1,h,段=-1,l,0),colorblue, linethick2;drawline(段=-1,l,段=1,h,0),colorblue, linethick2;DRAWTEXT(笔=1, h, ''+h+'/T'+bilast+'/MA:'+jxyl), coloryellow, align1, valign2;DRAWTEXT(笔=-1, l, ''+l+'/T'+bilast+'/MA:'+ jxzc), colorCyan, align1;2. DIF : EMA(CLOSE,short) - EMA(CLOSE,long);DEA : EMA(DIF,mid);MACD : 2*(DIF-DEA), COLORSTICK;{面积计算}绿面积:IF (MACD<0,SUM(MACD,BARSLAST(MACD>0)) * 100,0),linethick0,colorblue;红面积:IF (MACD>0,SUM(MACD,BARSLAST(MACD<0)) * 100,0),linethick0,colorred;红显示:=CROSS(DEA, DIF);绿显示:=CROSS(DIF, DEA);DRAWTEXT( 红显示, DEA*1.03, NUMTOSTRN(REF(红面积, 1), 0)), colorred,valign2; DRAWTEXT( 绿显示, DEA*0.97, NUMTOSTRN(REF(绿面积, 1), 0)), colorgreen;{当前面积}DRAWTEXT(BARSTATUS=2 and macd>0, -macd*0.03, NUMTOSTRN(红面积, 0)), coloryellow,valign0, align2;DRAWTEXT(BARSTATUS=2 and macd<=0, -macd*0.03, NUMTOSTRN(绿面积, 0)),COLORFFCC66,valign2,align2;多空线: 0, colorwhite, dotline;stickline(MACD<0 and MACD>=REF(MACD, 1), 0, macd, 0, 0), COLORFFCC66;stickline(MACD<0 and MACD<REF(MACD, 1), 0, macd, 0, 0), COLORGREEN;stickline(MACD>=0 and MACD>REF(MACD, 1), 0, macd, 0, 0), COLORRed;stickline(MACD>=0 and MACD<=REF(MACD, 1), 0, macd, 0, 0), COLORYellow;partline(dif,dif>=ref(dif,1),rgb(255,0,0),dif<ref(dif,1),rgb(0,255,0)),linethick1;3. 中 : MA(CLOSE,N),colorgray, dotline;上: 中+ P*STD(CLOSE,N),colorgray, dotline;下: 中 - P*STD(CLOSE,N),colorgray, dotline;MA1:MA(CLOSE,P1),colorwhite;MA2:MA(CLOSE,P2),coloryellow;MA3:MA(CLOSE,P3),colorred;MA4:MA(CLOSE,P4),colorgreen;MA5:MA(CLOSE,P5),colorf00ff0;MA6:MA(CLOSE,P6),colorblue;分型:="chanlun@kxian";笔:="chanlun@bi";bilast:="chanlun@bilast";段:="chanlun@duan";duanlast:="chanlun@duanlast";jxyl:="chanlun@JXYL2";jxzc:="chanlun@JXZC2";DRAWTEXT(笔=1, h, ''+h+'/T'+bilast), colorCyan, align1, valign2; DRAWTEXT(笔=-1, l, ''+l+'/T'+bilast), colorCyan, align1;4. 上证_开:"SH000001$OPEN",LINETHICK0,colorwhite;上证_高:"SH000001$HIGH",LINETHICK0,colorwhite;上证_低:"SH000001$LOW",LINETHICK0,colorwhite;上证_收:"SH000001$CLOSE",LINETHICK0,colorred;STICKLINE(上证_收>=上证_开,上证_开,上证_收,7,0),COLORRED;STICKLINE(上证_收>=上证_开,上证_高,上证_低,0.1,0),COLORRED;STICKLINE(上证_收<=上证_开,上证_开,上证_收,7,0),COLORGREEN;STICKLINE(上证_收<=上证_开,上证_高,上证_低,0.1,0),COLORGREEN; 五:MA(上证_收,5),colorwhite;十:MA(上证_收,10),coloryellow;三十:MA(上证_收,20),colorred;六十:MA(上证_收,60),colorgreen;一百二十:MA(上证_收,120),colorf00ff0;二百五十:MA(上证_收,250),colorblue;主图公式:kx:="chanlun@kxian"; {这个放第一个要不会出问题滴-_-\\\~~}kxg:="chanlun@kxg";kxd:="chanlun@kxd";kxfx:="chanlun@kxfx";kxno:"chanlun@kxno", linethick0, coloryellow;kxnobh:"chanlun@kxnobh", linethick0, coloryellow;笔:="chanlun@bi";bilast:"chanlun@bilast", linethick0, coloryellow;段:="chanlun@duan";duanlast:"chanlun@duanlast", linethick0, coloryellow;bifx:=-REF(笔,bilast);duanfx:=-REF(段,duanlast);{笔高低点周期力度提示}DRAWTEXT(笔=1, h, ''+h+'/T'+bilast+'/+'+(h-REF(l,bilast))),colorgreen, align1, valign2; DRAWTEXT(笔=-1, l, ''+l+'/T'+bilast+'/'+(l-REF(h,bilast))), colorred, align1;{当下提示周期}DRAWTEXT(BARSTATUS=2 AND bifx=1 AND bilast>4, h*1.008, 'T'+bilast+'/+'+(c-REF(l,bilast))), colorMagenta, align0, valign2;DRAWTEXT(BARSTATUS=2 AND bifx=-1 AND bilast>4, l*0.992,'T'+bilast+'/'+(c-REF(h,bilast))), colorGreen, align0;主图公式:N P P1中 : MA(CLOSE,N),colorgray, dotline;压: 中+ P*STD(CLOSE,N),colorgray, dotline;支: 中 - P*STD(CLOSE,N),colorgray, dotline;MA1:MA(CLOSE,5),colorwhite;MA2:MA(CLOSE,10),coloryellow;MA3:MA(CLOSE,30),colorgreen;MA4:MA(CLOSE,60),colorred;MA5:MA(CLOSE,120),colorf00ff0;MA6:MA(CLOSE,250),colorblue;kx:="chanlun@kxian"; {这个放第一个要不会出问题滴-_-\\\~~}kxg:="chanlun@kxg";kxd:="chanlun@kxd";kxfx:="chanlun@kxfx";kxno:"chanlun@kxno", linethick0, coloryellow;kxnobh:"chanlun@kxnobh", linethick0, coloryellow;笔:="chanlun@bi";bilast:"chanlun@bilast", linethick0, coloryellow;段:="chanlun@duan";duanlast:"chanlun@duanlast", linethick0, coloryellow;bifx:=-REF(笔,bilast);duanfx:=-REF(段,duanlast);{笔高低点周期力度提示}DRAWTEXT(笔=1, h, ''+h+'/T'+bilast+'/+'+(h-REF(l,bilast))),colorred, align1, valign2; DRAWTEXT(笔=-1, l, ''+l+'/T'+bilast+'/'+(l-REF(h,bilast))), colorgreen, align1;{当下提示周期}DRAWTEXT(BARSTATUS=2 AND bifx=1 AND bilast>4, h*1.008, 'T'+bilast+'/+'+(c-REF(l,bilast))), colorMagenta, align0, valign2;DRAWTEXT(BARSTATUS=2 AND bifx=-1 AND bilast>4, l*0.992,'T'+bilast+'/'+(c-REF(h,bilast))), colorGreen, align0;主图公式:kx:="chanlun@kxian"; {这个放第一个要不会出问题滴-_-\\\~~}kxg:="chanlun@kxg";kxd:="chanlun@kxd";kxfx:="chanlun@kxfx";kxno:"chanlun@kxno", linethick0, coloryellow;kxnobh:"chanlun@kxnobh", linethick0, coloryellow;笔:="chanlun@bi";bilast:"chanlun@bilast", linethick0, coloryellow;段:="chanlun@duan";duanlast:"chanlun@duanlast", linethick0, coloryellow;bifx:=-REF(笔,bilast);duanfx:=-REF(段,duanlast);{笔高低点周期力度提示}DRAWTEXT(笔=1, h, ''+h+'/T'+bilast+'/+'+(h-REF(l,bilast))),colorred, align1, valign2; DRAWTEXT(笔=-1, l, ''+l+'/T'+bilast+'/'+(l-REF(h,bilast))), colorgreen, align1;kxian:="chanlun@kxian"; {初始化}kxg:="chanlun@kxg";kxd:="chanlun@kxd";bi:="chanlun@bi";duan:="chanlun@duan";duanfx:="chanlun@duanfx";{当下提示周期}DRAWTEXT(BARSTATUS=2 AND bifx=1 AND bilast>4, h*1.008, 'T'+bilast+'/+'+(c-REF(l,bilast))), colorMagenta, align0, valign2;DRAWTEXT(BARSTATUS=2 AND bifx=-1 AND bilast>4, l*0.992,'T'+bilast+'/'+(c-REF(h,bilast))), colorGreen, align0;MA60:MA(CLOSE,60);partline(MA60,MA60>=ref(MA60,1),rgb(255,0,0),MA60<ref(MA60,1),rgb(0,250,0)),linethick1;MACDMJ:DIF : EMA(CLOSE,short) - EMA(CLOSE,long);DEA : EMA(DIF,mid);MACD : 2*(DIF-DEA), COLORSTICK;{面积计算}绿面积:IF (MACD<0,SUM(MACD,BARSLAST(MACD>0)) * 100,0),linethick0,colorblue;红面积:IF (MACD>0,SUM(MACD,BARSLAST(MACD<0)) * 100,0),linethick0,colorred;红显示:=CROSS(DEA, DIF);绿显示:=CROSS(DIF, DEA);DRAWTEXT( 红显示, DEA*1.03, NUMTOSTRN(REF(红面积, 1), 0)), colorgreen ,valign2; DRAWTEXT( 绿显示, DEA*0.97, NUMTOSTRN(REF(绿面积, 1), 0)),colorred ;{当前面积}DRAWTEXT(BARSTATUS=2 and macd>0, -macd*0.03, NUMTOSTRN(红面积, 0)), coloryellow,valign0, align2;DRAWTEXT(BARSTATUS=2 and macd<=0, -macd*0.03, NUMTOSTRN(绿面积, 0)),COLORFFCC66,valign2,align2;多空线: 0, colorwhite, dotline;stickline(MACD<0 and MACD>=REF(MACD, 1), 0, macd, 0, 0), COLORFFCC66;stickline(MACD<0 and MACD<REF(MACD, 1), 0, macd, 0, 0), COLORGREEN;stickline(MACD>=0 and MACD>REF(MACD, 1), 0, macd, 0, 0), COLORRed;stickline(MACD>=0 and MACD<=REF(MACD, 1), 0, macd, 0, 0), COLORYellow;partline(dif,dif>=ref(dif,1),rgb(255,0,0),dif<ref(dif,1),rgb(0,255,0)),linethick1;gamo:AMOUNT,VOLSTICK;{MA1:MA(AMOUNT,N1);MA2:MA(AMOUNT,N2)MA3:MA(AMOUNT,N3)};DRAWTEXTABS(0,3,'换手率:'),colorgray,LINETHICK1;当日换手率:=sum(100*v/capital,1);DRAWTEXTABS(80,3,'今日换手率:'+NUMTOSTRN(当日换手率,2)+'%'),colorgray,LINETHICK1;五日换手率:=sum(100*v/capital,5);DRAWTEXTABS(210,3,'5日换手率:'+NUMTOSTRN(五日换手率,2)+'%'),colorgray,LINETHICK1;十日换手率:=SUM(VOL,10)*100/CAPITAL;DRAWTEXTABS(330,3,'10日换手率:'+NUMTOSTRN(十日换手率,2)+'%'),colorgray,LINETHICK1;DRAWTEXTABS(0,20,'所属板块:'+' '+BKNAME),colorgray,LINETHICK1;G:kx:="chanlun@kxian"; {这个放第一个要不会出问题滴-_-\\\~~}kxg:="chanlun@kxg";kxd:="chanlun@kxd";kxfx:="chanlun@kxfx";kxno:"chanlun@kxno", linethick0, coloryellow;kxnobh:"chanlun@kxnobh", linethick0, coloryellow;笔:="chanlun@bi";bilast:"chanlun@bilast", linethick0, coloryellow;段:="chanlun@duan";duanlast:"chanlun@duanlast", linethick0, coloryellow;bifx:=-REF(笔,bilast);duanfx:=-REF(段,duanlast);{笔高低点周期力度提示}DRAWTEXT(笔=1, h, ''+h+'/T'+bilast+'/+'+(h-REF(l,bilast))),colorgreen, align1, valign2; DRAWTEXT(笔=-1, l, ''+l+'/T'+bilast+'/'+(l-REF(h,bilast))), colorred, align1;{当下提示周期}DRAWTEXT(BARSTATUS=2 AND bifx=1 AND bilast>4, h*1.008, 'T'+bilast+'/+'+(c-REF(l,bilast))), colorMagenta, align0, valign2;DRAWTEXT(BARSTATUS=2 AND bifx=-1 AND bilast>4, l*0.992,'T'+bilast+'/'+(c-REF(h,bilast))), colorGreen, align0;底分型V00:= HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);V01:= HIGH<REF(HIGH,1) AND LOW>REF(LOW,1);V02:= HIGH>REF(HIGH,1) AND LOW<REF(LOW,1);V03:= HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);V04:= REF(HIGH,2) < HIGH AND REF(LOW,2) < LOWAND REF(HIGH,2) > REF(HIGH,1) AND REF(LOW,2) < REF(LOW,1);V1:= COUNT(V00,6)>=3 AND COUNT(V01 OR V02,5)=0 AND LLVBARS(LOW,6) = 1 AND HHVBARS(HIGH,6) >= 5 AND V03;V2:= COUNT(V00,7)>=3 AND COUNT(V01 OR V02,6)=1 AND LLVBARS(LOW,7) = 2 AND HHVBARS(HIGH,7) >= 6 AND V04;V3:= COUNT(V00,7)>=3 AND COUNT(V01 OR V02,6)=1 AND LLVBARS(LOW,7) = 1 AND HHVBARS(HIGH,7) >= 6 AND V03;V4:= COUNT(V00,8)>=3 AND COUNT(V01 OR V02,7)<=2 AND LLVBARS(LOW,8) = 2 AND HHVBARS(HIGH,8) >= 7 AND V04;V5:= COUNT(V00,8)>=3 AND COUNT(V01 OR V02,7)<=2 AND LLVBARS(LOW,8) = 1 AND HHVBARS(HIGH,8) >= 7 AND V03;V6:= COUNT(V00,9)>=3 AND COUNT(V01 OR V02,8)<=3 AND LLVBARS(LOW,9) = 2 AND HHVBARS(HIGH,9) >= 8 AND V04;V7:= COUNT(V00,9)>=3 AND COUNT(V01 OR V02,8)<=3 AND LLVBARS(LOW,9) = 1 AND HHVBARS(HIGH,9) >= 8 AND V03;V8:= COUNT(V00,10)>=3 AND COUNT(V01 OR V02,9)<=4 AND LLVBARS(LOW,10) = 2 AND HHVBARS(HIGH,10) >= 9 AND V04;V9:= COUNT(V00,10)>=3 AND COUNT(V01 OR V02,9)<=4 AND LLVBARS(LOW,10) = 1 AND HHVBARS(HIGH,10) >= 9 AND V03;V10:= COUNT(V00,11)>=3 AND COUNT(V01 OR V02,10)<=5 AND LLVBARS(LOW,11) = 2 AND HHVBARS(HIGH,11) >= 10 AND V04;XG:CURRENTTIME>092530 AND (V1 OR V2 OR V3 OR V4 OR V5 OR V6 OR V7 OR V8 OR V9 OR V10)AND STRFIND(stkname,'ST',1)=0 AND STRFIND(stkname,'S',1)=0 AND DYNAINFO(4)<>0;顶分型V00:= HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);V01:= HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);V02:= REF(HIGH,2) > HIGH AND REF(LOW,2) > LOW AND REF(HIGH,2) > REF(HIGH,1) AND REF(LOW,2) < REF(LOW,1);V1:= COUNT(V00,4)>=2 AND HHVBARS(HIGH,4) = 1 AND V01;V2:= COUNT(V00,5)>=2 AND HHVBARS(HIGH,5) = 2 AND V02;V3:= COUNT(V00,5)>=2 AND HHVBARS(HIGH,5) = 1 AND V01;V4:= COUNT(V00,6)>=2 AND HHVBARS(HIGH,6) = 2 AND V02;XG:CURRENTTIME>092530 AND (V1 OR V2 OR V3 OR V4)AND STRFIND(stkname,'ST',1)=0 AND STRFIND(stkname,'S',1)=0 AND DYNAINFO(4)<>0;买卖点REFLINE: 0, 2;MA26:=EMA(C,26);MA13:=EMA(C,13);var1:="chzhshch@kxian";var2:="chzhshch@bi";分型:=var1;笔:=var2;a1:=barslast(var2<>0);{上个顶底到现在的时间}a2:=ref(var2,a1); {是顶还是底}aa1:=ref(a1+1,1); {上个顶底到现在的时间}aa2:=-ref(a2,1); {1 上涨, -1下跌}方向:aa2, linethick0,colorwhite;aa3:=AA1+REF(AA1+1,AA1);AA4:=AA3+REF(AA1+1,AA3);H1:=barslast(var2=1);H2:=ref(var2,H1);HH1:=ref(H1+1,1); HH2:=-ref(H2,1);L1:=barslast(var2=-1);L2:=ref(var2,L1);LL1:=ref(L1+1,1); LL2:=-ref(L2,1);{高低点}GG:=REF(H,h1);GG1:=REF(H,HH1);GG2:=REF(GG1,HH1);GG3:=REF(GG2,HH1);GG4:=REF(GG3,HH1);GG5:=REF(GG4,HH1);DD:=REF(L,l1);DD1:=REF(L,LL1);DD2:=REF(DD1,LL1);DD3:=REF(DD2,LL1);DD4:=REF(DD3,LL1);DD5:=REF(DD4,LL1);{买点}{主要是从形态考虑TJA,空间做为次要条件KJ提高成功率 }{一买}{反弹高点站不上26天线就}{利用形态抓下+盘+下}一买TJ1:=方向=1 AND L<MA13 AND LL1<=5;一五段下跌:=DD1<GG1 AND DD1<DD2 AND DD1<DD3 AND GG1<GG2 AND GG1<GG3;一买TJA:=GG1<DD3; {存在缺口}一买A:一买TJ1 AND 一五段下跌 AND 一买TJA, linethick0, colorred; {89%}一买KJA:=GG1-DD1<GG2-DD2 AND GG1-DD1>GG3-DD3 AND GG3-DD3<GG2-DD2 AND GG2-DD2>(GG1-DD1)*1.618; 一买AAA:一买TJ1 AND 一五段下跌 AND 一买TJA AND 一买KJA, linethick0, colorred; {93%}一买TJB:=GG1>DD3; {不存在缺口}一买KJB:=GG3-DD3>GG1-DD1 AND GG3-DD3>GG2-DD2 AND GG2-DD2<GG1-DD1;一买B:一买TJ1 AND 一五段下跌 AND 一买TJB AND 一买KJB, linethick0, colorred; {85}{强二买}{思路是利用形态抓上+盘+(上)}{注意有这两个条件成功率提高很多 GG1>GG2 AND DD1>DD2}强二买TJ:=方向=1 AND C<MA13 AND LL1<=8;强二买TJ2:=DD1<GG1 AND DD3<DD2 AND DD3<DD1 AND DD3<DD4;强二买KJ:=GG2-DD3>GG2-DD2 AND GG2-DD3>GG1-DD1;强二买A:强二买TJ AND 强二买TJ2 AND 强二买KJ, linethick0, colorRED; {85}强二买TJA:=GG1>GG2 AND DD1>DD2 AND GG2-DD3>(GG2-DD2)*1.618;{力度大概影响3个点左右}强二买AAA:强二买A AND 强二买TJA, linethick0, colorRED; {最强买} {90}{二买1:OK:PASS}{二买}买TJ1:=方向=1 AND L<MA26 AND LL1<=8;二买TJ:=DD1<GG1 AND DD1>DD2; {二买形态}三段下跌:=GG3>GG2 AND DD3>DD2; {三段式下跌}二买TJA1:=GG1>DD3; {第一段上涨至少回到前中枢内}二买A:买TJ1 AND 二买TJ AND 三段下跌 AND 二买TJA1, linethick0, coloryellow; {77.5}五段下跌:=GG4>GG3 AND GG4>GG2 AND DD2<DD3 AND DD2<DD4; {五段下跌}二买TJB1:=GG2<DD4 AND GG1>DD3; {存在缺口}二买TJB2:=GG2>DD4; {不存在缺口}二买B1:买TJ1 AND 二买TJ AND 五段下跌 AND 二买TJB1, linethick0, coloryellow;{91.7 - 3}二买B2:买TJ1 AND 二买TJ AND 五段下跌 AND 二买TJB2, linethick0, coloryellow;{75.8}二买AAA:二买B1, linethick0, coloryellow;{三买}三买TJ:=DD1<GG1 AND DD1>DD2;三买TJA1:=方向=1 AND L<MA13 AND LL1<=5;三买TJA2:=DD1>MIN(GG2,GG3) AND GG3>DD2 AND DD4<MAX(DD2,DD3) AND DD1>DD4 ; {GG2 GG3 在同一中枢内}三买A: 三买TJ AND 三买TJA1 AND 三买TJA2 , linethick0, colormagenta; {如果DD1>GG4成功率更高}{卖点}{主要是从形态考虑买点的逆向思维不考虑空间}{一卖}一卖TJ1:=方向=-1 AND H>MA13 AND HH1<=5;一五段上涨:=GG1>GG2 AND GG1>GG3 AND DD1>DD2 AND DD1>DD3;一卖TJA:=DD1>GG3; {缺口}一卖A:一卖TJ1 AND 一五段上涨 AND 一卖TJA,linethick0, colorgreen;一卖TJB:=DD1<GG3 AND GG1-DD1>GG2-DD2 AND GG3-DD3-GG2-DD2;一卖B:一卖TJ1 AND 一五段上涨 AND 一卖TJB,linethick0, colorgreen;一卖TJC:=GG1>GG2 AND GG2>GG3 AND GG3>GG4 AND GG4>GG5 AND DD1>DD2 AND DD2>DD3 AND DD3>DD4 AND DD4>DD5; {连涨4段}一卖C:一卖TJ1 AND 一卖TJC,linethick0, colorgreen; {27 - 68}{二卖}卖TJ1:=方向=-1 AND H>MA13 AND HH1<=8;二卖TJ:=GG1>DD1 AND GG1<GG2; {二卖形态}三段上涨:=GG3<GG2 AND DD3<DD2; {三段式上涨}二卖TJA1:=DD1>GG3; {第一段下跌至少回到前中枢内}二卖A:卖TJ1 AND 二卖TJ AND 三段上涨 AND 二卖TJA1, linethick0, colorf0f000; {44-50}五段上涨:=GG2>GG3 AND GG2>GG4 AND DD4<DD3 AND DD4<DD2; {五段上涨}二卖TJB1:=GG4<DD2 AND DD1<GG3; {存在缺口}二卖TJB2:=GG4>DD2; {不存在缺口}二卖B1:卖TJ1 AND 二卖TJ AND 五段上涨 AND 二卖TJB1, linethick0, colorf0f000;{38 - 48}二卖B2:卖TJ1 AND 二卖TJ AND 五段上涨 AND 二卖TJB2, linethick0, colorf0f000;{39 - 48}一段上涨:=GG2>GG3 AND GG2>GG4 AND DD1>MIN(GG3, GG4); {在下跌时有点三卖的感觉}二卖C1:卖TJ1 AND 二卖TJ AND 一段上涨, linethick0, colorf0f000; {41 47}{三卖}三卖TJ:=DD1<GG1 AND GG1<GG2;三卖TJA1:=方向=-1 AND H>MA13 AND HH1<=5;三卖TJA2:=GG1<MAX(DD2,DD3) AND GG2>DD3 AND GG4>MIN(GG2,GG3) AND GG1<GG4 ; {GG2 GG3 在同一中枢内}三卖A: 三卖TJ AND 三卖TJA1 AND 三卖TJA2 , linethick0, colorwhite; {GG1<DD4成功率更高}{买卖点提示}一买:一买A OR 一买B, colorred;强二买:强二买A, colorred;二买:二买A OR 二买B1 OR 二买B2, coloryellow;三买:三买A, colormagenta;一卖:一卖A OR 一卖B OR 一卖C, colorgreen;二卖:二卖A OR 二卖B1 OR 二卖B2 OR 二卖C1, colorF0F000;三卖:三卖A, colorwhite;二三买合:二买 AND 三买, linethick0, colormagenta; {85 信号量少}二三卖合:二卖 AND 三卖, colorF0F000,linethick0; {13-87}高成功率:一买AAA OR 二买AAA OR 强二买AAA, linethick0;次高成功:二三买合, linethick0;清仓:二三卖合,linethick0;STICKLINE(高成功率, 0, 0.7, 5, 501), colorred;STICKLINE(次高成功, 0, 0.7, 5, 501), colormagenta;STICKLINE(清仓, 0, 0.7, 5, 501), colorgreen, linethick2;DRAWTEXT(一买 AND FILTER(一买, 8), 1, '1B'), colorred, valign2,linethick2;DRAWTEXT(强二买 AND FILTER(强二买, 8), 1, '2BQ'), colorred, valign2,linethick2; DRAWTEXT(二买 AND FILTER(二买, 8), 1, '2B'), coloryellow, valign2,linethick2;DRAWTEXT(三买 AND FILTER(三买, 8), 1, '3B'), colormagenta, valign2,linethick2;DRAWTEXT(一卖 AND FILTER(一卖, 8), 1, '1S'), colorgreen, valign2;DRAWTEXT(二卖 AND FILTER(二卖, 8), 1, '2S'), colorF0F000, valign2;DRAWTEXT(三卖 AND FILTER(三卖, 8), 1, '3S'), colorwhite, valign2;{方向提示}持股:0, colorgreen;PARTLINE(持股, 方向=1, RGB(255,0,0), 方向=-1, RGB(0,255,0)), linethick3;主图kx:="chanlun@kxian"; {这个放第一个要不会出问题滴-_-\\\~~}kxg:="chanlun@kxg";kxd:="chanlun@kxd";kxfx:="chanlun@kxfx";kxno:"chanlun@kxno", linethick0, coloryellow;kxnobh:"chanlun@kxnobh", linethick0, coloryellow;笔:="chanlun@bi";bilast:"chanlun@bilast", linethick0, coloryellow;段:="chanlun@duan";duanlast:"chanlun@duanlast", linethick0, coloryellow;bifx:=-REF(笔,bilast);duanfx:=-REF(段,duanlast);{笔高低点周期力度涨幅提示}上涨幅度:= (kxg-REF(kxd,bilast))*100/REF(kxd,bilast);下跌幅度:= (kxd-REF(kxg,bilast))*100/REF(kxg,bilast);DRAWTEXT(笔=1, kxg, ''+kxg+'/T'+bilast+'/+'+(kxg-REF(kxd,bilast))+'(+'+NUMTOSTRN(上涨幅度, 1)+'%)'), colorCyan, align1, valign2;DRAWTEXT(笔=-1, kxd, ''+kxd+'/T'+bilast+'/'+(kxd-REF(kxg,bilast))+'('+NUMTOSTRN(下跌幅度, 1)+'%)'), colorCyan, align1;{当下提示周期}DRAWTEXT(BARSTATUS=2 AND bifx=1 AND bilast>4, h*1.008, 'T'+bilast+'/+'+(c-REF(l,bilast))), colorMagenta, align0, valign2;DRAWTEXT(BARSTATUS=2 AND bifx=-1 AND bilast>4, l*0.992,'T'+bilast+'/'+(c-REF(h,bilast))), colorGreen, align0;买卖点REFLINE: -3,-2, -1, 0, 1, 2,3;kxian:="chanlun@kxian";bi:="chanlun@bi";duan:="chanlun@duan";s_lqs:"chanlun@s_lqs", colorgreen;b_bi:"chanlun@b_bi", linethick0;b_duan:"chanlun@b_duan",linethick0;{这个无实用性滞后纯用来验证}b_pz:"chanlun@b_pz", colorwhite;b_1b:"chanlun@b_1b", colorred, linethick2;b_2b:"chanlun@b_2b", coloryellow;b_3b:"chanlun@b_3b", colormagenta, linethick2;b_lqs:"chanlun@b_lqs", colorred;b_l3b:"chanlun@b_l3b", colormagenta;BB: b_pz>0 OR b_1b>0 OR b_2b>0 OR b_3b>0 OR b_lqs>0 OR b_l3b>0, linethick0;底分型: BB AND REF(BB,1)>0, linethick0;P_PBASEKX:"chanlun@kxian";KXG:"chanlun@kxg";KXD:"chanlun@kxd";BI:"chanlun@bi";中枢kx:="chanlun@kxian"; {这个放第一个要不会出问题滴-_-\\\~~}kxg:="chanlun@kxg";kxd:="chanlun@kxd";kxfx:="chanlun@kxfx";kxno:"chanlun@kxno", linethick0, coloryellow;kxnobh:"chanlun@kxnobh", linethick0, coloryellow;笔:="chanlun@bi";bilast:"chanlun@bilast", linethick0, coloryellow;段:="chanlun@duan";duanlast:"chanlun@duanlast", linethick0, coloryellow;bifx:=-REF(笔,bilast);duanfx:=-REF(段,duanlast);{笔高低点周期力度提示}DRAWTEXT(笔=1, h, ''+h+'/T'+bilast+'/+'+(h-REF(l,bilast))),colorred, align1, valign2; DRAWTEXT(笔=-1, l, ''+l+'/T'+bilast+'/'+(l-REF(h,bilast))), colorgreen, align1;kxian:="chanlun@kxian"; {初始化}kxg:="chanlun@kxg";kxd:="chanlun@kxd";bi:="chanlun@bi";duan:="chanlun@duan";duanfx:="chanlun@duanfx";{当下提示周期}DRAWTEXT(BARSTATUS=2 AND bifx=1 AND bilast>4, h*1.008, 'T'+bilast+'/+'+(c-REF(l,bilast))), colorMagenta, align0, valign2;DRAWTEXT(BARSTATUS=2 AND bifx=-1 AND bilast>4, l*0.992,'T'+bilast+'/'+(c-REF(h,bilast))), colorGreen, align0;{中枢笔构成的中枢}zs:="chanlun@zs";zsgg:="chanlun@zsgg";zsdd:="chanlun@zsdd";zszg:="chanlun@zszg";zszd:="chanlun@zszd";zszz:="chanlun@zszz";zskslast:="chanlun@zskslast";zsjslast:="chanlun@zsjslast";{以直线方式画中枢}{上涨中枢}DRAWLINE(zskslast=1 AND duanfx=1, zszg, zsjslast=1 AND duanfx=1, zszg, 0), colormagenta, linethick1,dotline;DRAWLINE(zskslast=1 AND duanfx=1, zszd, zsjslast=1 AND duanfx=1, zszd, 0), colormagenta, linethick1,dotline;STICKLINE(zskslast=1 AND duanfx=1, zszg, zszd, 1, -501), colormagenta, linethick1,dotline; STICKLINE(zsjslast=1 AND duanfx=1, zszg, zszd, 1, 501), colormagenta, linethick1,dotline; {下跌中枢}DRAWLINE(zskslast=1 AND duanfx=-1, zszg, zsjslast=1 AND duanfx=-1, zszg, 0), colorCyan, linethick1,dotline;DRAWLINE(zskslast=1 AND duanfx=-1, zszd, zsjslast=1 AND duanfx=-1, zszd, 0), colorCyan, linethick1,dotline;STICKLINE(zskslast=1 AND duanfx=-1, zszg, zszd, 1, -501), colorCyan, linethick1,dotline; STICKLINE(zsjslast=1 AND duanfx=-1, zszg, zszd, 1, 501), colorCyan, linethick1,dotline;; {中枢震荡监视器}DRAWLINE(zskslast=1, zszz, zsjslast=1, zszz, 0), coloryellow,linethick1,dotline;;{画中枢END}zslx:="chanlun@zslx"(duan);{走势类型中枢段构成的中枢}zslxzs:="chanlun@zslxzs";zslxzsgg:="chanlun@zslxzsgg";zslxzsdd:="chanlun@zslxzsdd";zslxzszg:="chanlun@zslxzszg";zslxzszd:="chanlun@zslxzszd";zslxzszz:="chanlun@zslxzszz";zslxzskslast:="chanlun@zslxzskslast";zslxzsjslast:="chanlun@zslxzsjslast";{画中枢Begin}DRAWLINE(zslxzskslast=1, zslxzszg, zslxzsjslast=1, zslxzszg, 0), colorGreen, linethick2; DRAWLINE(zslxzskslast=1, zslxzszd, zslxzsjslast=1, zslxzszd, 0), colorGreen, linethick2; STICKLINE(zslxzskslast=1, zslxzszg, zslxzszd, 1, -501), colorGreen, linethick2; STICKLINE(zslxzsjslast=1, zslxzszg, zslxzszd, 1, 501), colorGreen, linethick2;{中枢震荡监视器}DRAWLINE(zslxzskslast=1, zslxzszz, zslxzsjslast=1, zslxzszz, 0), colorGreen;{画中枢End}{高级别走势类型中枢本级别走势构成的中枢}zslxA:="chanlun@zslx"(zslx);zslxzsA:="chanlun@zslxzs";zslxzsggA:="chanlun@zslxzsgg";zslxzsddA:="chanlun@zslxzsdd";zslxzszgA:="chanlun@zslxzszg";zslxzszdA:="chanlun@zslxzszd";zslxzszzA:="chanlun@zslxzszz";zslxzskslastA:="chanlun@zslxzskslast";zslxzsjslastA:="chanlun@zslxzsjslast";{画中枢Begin}DRAWLINE(zslxzskslastA=1, zslxzszgA, zslxzsjslastA=1, zslxzszgA, 0), colorRed, linethick2; DRAWLINE(zslxzskslastA=1, zslxzszdA, zslxzsjslastA=1, zslxzszdA, 0), colorRed, linethick2; STICKLINE(zslxzskslastA=1, zslxzszgA, zslxzszdA, 1, -501), colorRed, linethick2; STICKLINE(zslxzsjslastA=1, zslxzszgA, zslxzszdA, 1, 501), colorRed, linethick2;{中枢震荡监视器}DRAWLINE(zslxzskslastA=1, zslxzszzA, zslxzsjslastA=1, zslxzszzA, 0), colorRed;{画中枢End}{笔段走势类型}drawline(bi=1, kxg, bi=-1, kxd, 0),colorgreen, dotline;drawline(bi=-1, kxd, bi=1, kxg, 0),colorred,dotline;drawline(duan=1, kxg, duan=-1, kxd, 0),colorgreen, dotline;drawline(duan=-1, kxd, duan=1, kxg, 0),colorred,dotline;drawline(zslx=1, kxg, zslx=-1, kxd, 0),colorgreen, dotline;drawline(zslx=-1, kxd, zslx=1, kxg, 0),colorred,dotline;drawline(zslxA=1, kxg, zslxA=-1, kxd, 0),colorgreen, dotline;drawline(zslxA=-1, kxd, zslxA=1, kxg, 0),colorred,dotline;分型:="chanlun@kxian";笔:="chanlun@bi";bilast:="chanlun@bilast";段:="chanlun@duan";duanlast:="chanlun@duanlast";jxyl:="chanlun@JXYL2";jxzc:="chanlun@JXZC2";MA60:MA(CLOSE,60);partline(MA60,MA60>=ref(MA60,1),rgb(255,0,0),MA60<ref(MA60,1),rgb(0,250,0)),linethick1;。
大智慧指标公式源码精品打包
大智慧指标公式源码精品打包1.MACD指标:MACD是移动平均线收敛/发散指标的缩写。
计算MACD指标需要用到指数移动平均线(EMA)。
下面是计算MACD指标的源码:```pythondef calculate_macd(close_price, fast_period=12,slow_period=26, signal_period=9):ema_fast = close_price.ewm(span=fast_period,adjust=False).meanema_slow = close_price.ewm(span=slow_period,adjust=False).meanmacd_line = ema_fast - ema_slowsignal_line = macd_line.ewm(span=signal_period,adjust=False).meanhistogram = macd_line - signal_linereturn macd_line, signal_line, histogram```2.RSI指标:RSI是相对强弱指标的英文缩写,用来衡量市场超买或超卖的程度。
计算RSI指标需要用到价格的涨跌幅和移动平均线(SMA)。
下面是计算RSI指标的源码:```pythondef calculate_rsi(close_price, n=14):delta = close_price.diffup = delta.copydown = delta.copyup[up < 0] = 0down[down > 0] = 0average_gain = up.rolling(window=n).meanaverage_loss = abs(down.rolling(window=n).mean()rs = average_gain / average_lossrsi = 100 - (100 / (1 + rs))return rsi```3.KDJ指标:KDJ指标是一种超买超卖指标,用来衡量市场的超买超卖情况。
大智慧选股指标原码(图)
大智慧选股指标原码(图)大智慧选股指标原码(图)【字体:大中小】发布日期:2009-5-31 发布者:股票知识来源:龙头股票网浏览次数:1686大智慧选股指标原码顶压:HHv(ma(h,11),50),Color00FFFF;短压:HHv(ma(h,11),15),Color0090E0;XL1:=llv(ma(h,11),1);趋势:IF(XL1>=短压,短压,XL1),ColorFFFFFF;x1:=(3*C+H+L+O)/6;x2:=EMA(x1,10);x3:=REF(x2,1);x4:=(REF(HIGH,1)+REF(LOW,1))/2;x5:=MA(CLOSE,21)+2*STD(CLOSE,21);x6:=REF(CLOSE,1);{出货}x7:=SMA(MAX(CLOSE-x6,0),7,1)/SMA(ABS(CLOSE-x6),7,1)*100;x8:=CROSS(79,x7);x9:=FILTER(x8,4);{40}WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);{减}WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;Dk:=SMA(WZ4,3,1)*1.5;DD:=SMA(Dk,3,1);DJ:=3*Dk-2*DD;WZ5:= EMA(CLOSE,12) - EMA(CLOSE,26);WZ6:= EMA(WZ5,9);WZ7:= 2*(WZ5-WZ6);{50}WZ8:= ref(WZ7,1);WZ9:= CROSS(WZ8,WZ7) and WZ8>0;DRAWTEXT(WZ9 and dj>250,H,'←减'),ColorBCFF8B;var11:=EMA(CLOSE,8);{起步}var2:=EMA(var11,20);var3:=CROSS(var11,var2);var4:=var11<MA(CLOSE,120);var5:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;{逃命}var6:=SMA(var5,5,1);var7:=SMA(var6,8,1);{60}var8:=CROSS(var6,var7) AND var7<20;var9:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND var8;varA:=IF(CLOSE>1000,var8,var9);起步:= var3 AND var4;逃遁:= varA;stickLINE(x2>x3,x2*0.98,x2,6,1),Color0000FF,LINETHICK2;stickLINE(x2<x3,x2*0.98,x2,6,1),ColorF10011,LINETHICK2;Ww1:= sum( ma(c,10),9)/10.110,coloryellow;Xx1:=MA(LOW,2)*0.96;Xx2:=MA(LOW,26)*0.85;Xx3:= REF(Xx1,1)<Xx2 AND REF(Xx1,1)<Xx1 AND REF(Xx1,1)<REF(Xx1,2);var1:=INDEXC;var12:=MA(var1,6);var13:=MA(var1,24);var14:=MA(var1,32);var15:=MA(var1,62);var16:=MA(var1,105);var17:=var15<REF(var15,1) AND var6<REF(var16,1) AND var15<var6*0.98;var18:=var14>var12*1.11 AND var13>var12*1.095;var19:=var12>var1*0.95;var111:=EMA(WINNER(CLOSE)*70,3);var112:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);var113:=CLOSE/MA(CLOSE,40)*100<76;var114:=CLOSE/MA(CLOSE,60)*100<74;var115:=HIGH>LOW*1.051;var116:=var115 AND COUNT(var15,5)>1;var117:=var17 AND var8 AND var19 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND CLOSE>0.1 OR var16 AND (var113 OR var114) AND var112<20 AND var111<20 AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5 or TROUGHBARS(3,15,1)<4AND CROSS(EMA(CLOSE,21)-EMA(CLOSE,8),EMA(EMA(CLOSE,21)-EMA(CLOSE,8),5));XL11:=EMA(CLOSE,10)/100;{70}XL2:= MA((XL11-REF(XL11,10))/REF(XL11,10),3)*100;XL3:= MA(XL2,3);XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) and x2>x3,l-0.1,'←●反弹'),COLORGREEN;DRAWTEXT(IF(CROSS((var11-LLV(var1,4))/(HHV(var11,4)-LLV(var11,4))*4*25,87.5) ANDvar1<40,87,0) and x2>x3,l-0.2,'←●短买'),ColorFFBBD8;DRAWTEXT(CROSS(var1,10) and x2>x3,l-0.3,'←●买'),Color89B2FF;DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12) -EMA((CLOSE*2+HIGH+LOW)/4,26)-EMA(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2))*5.8,0.47),LOW,0) and x2>x3,l-0.4,'←●加仓'),ColorFF5ED8;{80}Ll1:=(EMA(CLOSE,3) - EMA(CLOSE,13));Ll2:=EMA(Ll1,9);Ll3:=BARSLAST(cross(Ll1,Ll2));Ll4:=ref(Ll3,Ll3+1);Ll5:=Ll2<ref(Ll2,Ll4);变盘:=cross(Ll1,Ll2) and Ll5;DRAWTEXT(起步>0,L,'★起步?'),Color00FF00;STICKLINE(起步>0,C*1.05,C,7,0),COLORred;DRAWTEXT(逃遁>0,H*1.04,'●←逃'),Color7FFFD6;。
大智慧经典版 指标及选股公式
选股公式金叉MACDDIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; 低位金叉OR 二次金叉;红进绿出V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);V AR5:=3*V AR3-2*VAR4;AA:CROSS(V AR5,V AR3) AND V AR3<2.1 AND C>O;仓位增减空:=EMA(C,5);均衡:=EMA(空,5);中轨:=HHV(MA(H,13),13);加仓:FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11);夺宝奇兵买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);v1:=ema(close,5);v2:=ema(ema(close,29)*1.01,10);买进条件and cross(v1,v2);中华方圆▲★{红▲、红★同时出现选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);红▲:=CROSS(Y,X);c1:=(CLOSE+LOW+HIGH)/3;c2:=EMA(c1,6);c3:=EMA(c2,5);红★:=CROSS(c2,c3);红▲and 红★;中华方圆□V AR1:=LLV(LOW,21);V AR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - V AR1) / (V AR2 - V AR1)) * 100),5); AK:=EMA((((CLOSE - VAR1) / (V AR2 - V AR1)) * 50),13); AB:=CROSS(AK1,AK);V AR3:=LLV(LOW,55);V AR4:=HHV(HIGH,34);V AR5:=EMA((((CLOSE - V AR3) / (V AR4 - V AR3)) * 100),3); V AR6:=((AK + V AR5) / 2);V AR8:=EMA(V AR6,5);BB:=EMA(((0.667 * REF(V AR8,1)) + (0.333 * V AR8)),2); BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);白色□:AB =1;中华方圆▲{红▲选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);红▲:CROSS(Y,X);中华方圆★{红★选股}c1:=(CLOSE+LOW+HIGH)/3;c2:=EMA(c1,6);c3:=EMA(c2,5);c4:=CROSS(c2,c3);红★:c4;黑马王N:=20;V AR2:=(CLOSE+HIGH+LOW)/(3);V AR3:=(EMA(V AR2,10));V AR4:=(REF(VAR3,1));V AR5:=((REF(HIGH,1)+REF(LOW,1))/(2));V AR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));xg:CROSS(V AR3,V AR4);红柱初现X4:=(L+H+C*4)/6;x6:=EMA(x4,19);x9:=(x6-REF(x6,1))/REF(x6,1)*100;红柱初现:=x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1);第1个红柱:红柱初现and ref(红柱初现,1)<1;紫黄同现A1:=EMA(C,7)-EMA(C,21); A2:=MA(A1,4); 买入:cross(A1,A2) AND A1-A2>0.03 and A2<-0.1;布林宝塔线QJJ:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));XVL:=(IF((CLOSE>OPEN),(QJJ*(HIGH-LOW)),IF((CLOSE<OPEN),(QJJ*((HIGH-OPEN)+(CLOSE-LOW))), (VOL/2)))+IF((CLOSE>OPEN),(0-(QJJ*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE<OPEN),(0-(QJJ*(HIGH-LOW))),(0-(VOL/2)))));ZLL:=(VOL/CAPITAL);HSL:=((XVL/20)/1.15);攻击流量:=(((HSL*0.55)+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));LLJX:=EMA(攻击流量,3);B1:=REF(C,1);B2:=REF(C,2);SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(C<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2) AND REF(C,2)>REF(C,1),2,IF(C<REF(C,2) AND REF(C,2)<REF(C,1),-2,0))));SM:=IF(REF(SS,1)<>0,REF(SS,1),IF(REF(SS,2)<>0,REF(SS,2),IF(REF(SS,3)<>0,REF(SS,3),IF(REF(SS,5)<>0,REF(SS,5),IF(REF(SS,6)<>0,REF(SS,6),IF(REF(SS,7)<>0,REF(SS,7),0))))));DK:=IF(REF(SS,1)<>0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2)));C>REF(C,1)*1.035 AND C>AMOUNT/100/V AND COUNT(CROSS(LLJX,0),2)=1 AND CROSS(C,DK)AND C>SAR(10,2,20) AND C>MA(C,14) AND C>MA(C,20)AND BETWEEN(V/CAPITAL,0.01,0.08) AND CAPITAL<=2000000;上穿就买上升趋势:=EMA(CLOSE,5);支撑压力:=EMA(CLOSE,21);XG:CROSS(上升趋势,支撑压力);三线交汇B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分水岭:=IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),,;操作线:=分水岭-(EMA(C,3)-分水岭);CROSS(分水岭,操作线);立桩量AAA:=(3*C+H+L+O)/6;V AR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>V AR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:=TJ2=1;TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法则:=TJ3=1;成立:=三天法则AND 突破;条件成立:FILTER(成立,3);低进高出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;X:=LLV(J,2)=LLV(J,8);CROSS(J,REF(J+0.01,1)) AND X AND J<19;财出水面V AR2:=(-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);操盘:=3*VAR3-2*VAR4;xg:CROSS(操盘,V AR3) AND V AR3<2.1 and c>o;绝对牛股Var1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(Var1,13)-EMA(Var1,73);SD:= EMA(SK,2);V1:(cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03)or (cross(sk,sd) and sk<=-0.14 ) or (cross(sk,sd) and sk<=0.05and (v/ma(v,5)>2 or c/ref(c,1)>0.035));关注DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:=(MACD超跌* "MACD.MACD"(26,12,9))*(-1);MACD金叉:=CROSS(DIFF,DEA);关注: (MACD金叉AND (REF(MACD,1) < 0)) ;关注买MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA65:=MA(CLOSE,65);MA250:=MA(CLOSE,250);均线流:=(((((MA5 > MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 < MA30)) * 0.3); PL1:=(((CLOSE - MA60) / MA60) < 0.1);PL2:=(((CLOSE - MA250) / MA250) < 0.3);偏离率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:=(MACD超跌* "MACD.MACD"(26,12,9))*(-1);目标:=IF(均线流=0.3 AND MACD AND 偏离率=0.2 ,0.8,0);MBSJ:=BARSLAST((目标= 0.8));放量上涨:=(((VOL / REF(VOL,1)) >= 1.1) AND ((CLOSE / REF(CLOSE,1)) >= 1.01));SZSJ:=BARSLAST((放量上涨= 1));MACD金叉:=CROSS(DIFF,DEA);JCSJ:=BARSLAST((MACD金叉= 1));启动:((((MBSJ <= 20) AND (SZSJ <= 1)) AND (JCSJ <= 1)) * 1);老鸭头MA5 := MA(close,5);MA10 := MA(close,10);MA60 := MA(close,60);pday1 := barslast(cross(ma5,ma60));pday2 := barslast(cross(ma10,ma60));pday3 := barslast(high=hhv(high,pday2));pday4 := barslast(cross(ma10,ma5){ or (ref(ma10,1)<ref(ma5,1) and ma5=ma10)});pday5 := barslast(cross(ma5,ma10){ or (ref(ma5,1)=ref(ma10,1) and ma5>ma10)});a1:= pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;a2:= count(cross(ma10,ma5),pday2)=1;a3:=ma5>ma60 and ma10>ma60;(A1 AND A2 and a3) and FILTER(A1 AND A2 and a3 ,5);主升行情顶:=85;V AR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;CC:=SMA(V AR5,20,1);CC1:=SMA(CC,5,1);出击:CROSS(CC,CC1) AND (CC1 < 顶) ;超越庄股K2:=EMA(C,5);K3:=EMA(C,10);K5:=EMA(C,30);K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);CROSS(K8,0);强势拉升Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);跨越:=EMA(Q3, 3);V AR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线:=SMA(V AR12,3,1);CROSS(跨越,机构做空能量线);吸庄血{底部笑脸的信号买入}V AR1:=4*SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1),3.2,1); V AR2:=8;CROSS(V AR1,V AR2);智能操盘K2:=EMA(C,5);K3:=EMA(C,10);K5:=EMA(C,30);K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);买入:CROSS(K8,0);财富拐点ma3:=ema(c,3);ma5:=ema(c,5);var1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);Var2:=REF(Var1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var3:=REF(Var2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var4:=REF(Var3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var5:=REF(Var4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var6:=REF(Var5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var7:=REF(Var6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var8:=REF(Var7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var9:=REF(Var8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VarA:=REF(Var9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VarB:=REF(VarA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VarC:=REF(VarB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VarD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VarE:=REF(VarD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VarF:=REF(VarE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var10:=REF(VarF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var11:=REF(Var10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var12:=REF(Var11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var13:=REF(Var12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var14:=REF(Var13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var15:=REF(Var14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var16:=REF(Var15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var17:=REF(Var16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var18:=REF(Var17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var19:REF(VarD OR VarE OR VarF OR Var10 OR Var11 OR Var12 OR Var13 OR V ar14 OR Var15 OR Var16 OR Var17 OR Var18,1) AND V ar1 AND CROSS(MA3,MA5);金牌逃顶V AR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;V AR2:=SMA(V AR1,9,1)+100;V AR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V AR4:=SMA(V AR3,3,1);V AR5:=SMA(V AR4,3,1)+100;V AR6:=V AR5-V AR2;趋势:=IF(V AR6>45,V AR6-45,0);第一个粉色:ref(REF(趋势,1) >趋势,1) and REF(趋势,1)< 趋势;领头羊{绿线上穿白线}白色:=SMA(HIGH,21,2)*1.05;绿色:=SMA(CLOSE,2,1);领头羊:CROSS(绿色,白色);财神到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;J1:=REVERSE(J);AA:=REF(MA(C,1),10)>REF(MA(C,60),10);买点:CROSS(J,J1) AND AA;MACD提示DIFF:=(EMA(CLOSE,3) - EMA(CLOSE,13));DEA:=EMA(DIFF,9);绿变红:CROSS(DIFF,DEA)变色MACDDIF:=EMA(CLOSE,8)-EMA(CLOSE,13);DEA:=EMA(DIF,9),;买卖频谱买线:=EMA(C,3);卖线:=EMA(SLOPE(C,21)*20+C,55);N:CROSS(买线,卖线);底部爆发V AR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5); V AR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);V AR03:=CROSS(V AR02,V AR01);V AR04:=REF(V AR02,2)<REF(V AR02,1) AND V AR02<REF(V AR02,1);V AR05:=COUNT(V AR03,7)>0 AND V AR04;V AR06:V AR05 AND COUNT(V AR05,5)=1;顶天立地V AR26:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);V AR27:=REVERSE(V AR26);V AR28:=SMA(VAR26,3,1);快线:=SMA(V AR28,3,1);慢线:=SMA(快线,3,1);金叉买:CROSS(快线,慢线) AND (快线<40);短线套利MA6:=MA(C,6);MA18:=MA(C,18);买进价:=((C-REF(MA6,1))/6+MA6)*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);加码价:=((C-REF(MA18,1))/18+MA18)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);(ref(买进条件,1) and 加码条件) OR (ref(加码条件,1) and 买进条件) ;雷电交加V ARF:=TROUGHBARS(3,15,1)<4;FILTER(V ARF=1,3);买必涨diff:=EMA(CLOSE,12)-EMA(CLOSE,26);dea:=EMA(diff,9);买入:CROSS(diff,dea);金叉:CROSS(DIF,DEA) AND DIF<0.3;要涨停陡峭度:=IF((BARSCOUNT(CLOSE) > 7),(100)*((MA(CLOSE,7))/(LLV(MA(CLOSE,7),7)) - 1),1); N:=IF((陡峭度> 0.35),6,65);V AR1:=((-((100)*(HHV(HIGH,N) - CLOSE))/(HHV(HIGH,N) - LLV(LOW,N))))*((DATE < 20170110)); 要涨停:(30)*(CROSS(V AR1,(-2)));指标公式涨停{参数M1 2 1000 5M2 2 1000 10M3 2 1000 20M4 2 1000 30M5 2 1000 60M6 2 1000 120M7 2 1000 250}MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);MA5:MA(CLOSE,M5);MA6:MA(CLOSE,M6);MA7:MA(CLOSE,M7);C3:=REF(C,1); 涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),2,0);STICKLINE(涨停,OPEN,CLOSE,5,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),2,0);STICKLINE(跌停,OPEN,CLOSE,5,0),COLORGREEN;黑马王N:=20;N1:=7;N2:=69;M3:=EMA(CLOSE,3);M8:EMA(CLOSE,8),CoLor008000;M13:EMA(M8,13),CoLor0000FF;M62:EMA(M8,55),CoLorF0F000;V AR1:=EMA(M13,62);M81:EMA(M62,81),CoLor00FFFF;M144:EMA(V AR1,144),Linethick2,CoLor0000FF;M250:EMA(V AR1,250),POINTDOT,Linethick2,CoLorF00FF0;V AR2:=(CLOSE+HIGH+LOW)/(3);V AR3:=(EMA(V AR2,10));V AR4:=(REF(VAR3,1));STICKLINE((V AR3>V AR4),V AR3,V AR4,4,0),CoLor00FFFF;STICKLINE((V AR3<V AR4),V AR3,V AR4,4,0),CoLorFF0000;V AR5:=((REF(HIGH,1)+REF(LOW,1))/(2));V AR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));DRAWTEXT(CROSS(VAR3,V AR4),(V AR3)*(0.98),'★'),CoLor00FFFF;DRAWTEXT(CROSS(VAR5,V AR6),(HIGH)*(1.04),'↓卖'),CoLor008000;V AR7:=REF(CLOSE,1);V AR8:=((SMA(MAX(CLOSE-V AR7,0),N1,1))/(SMA(ABS(CLOSE-V AR7),N1,1)))*(100);V AR9:=CROSS(N2,V AR8);V ARA:=(FILTER(V AR9,4));DRAWTEXT(V ARA,(HIGH)*(1.04),'↓卖'),CoLorFFFFFF;V ARB:=((2)*(CLOSE)+HIGH+LOW)/(4);V ARC:=LLV(LOW,34);V ARD:=HHV(HIGH,34);V ARE:=(EMA(((V ARB-VAR1)/(V AR5-V AR1))*(100),7));V ARF:=(EMA((0.667)*(REF(V ARE,1))+(0.333)*(VARE),5));DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((V ARE>=V ARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),CoLorFF00FF; DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((V ARE>V ARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),CoLor00FFFF;V AR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3));DRAWTEXT(IF((CLOSE<V AR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),CoLor0000FF;金叉MACDDIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:=2*(DIFF-DEA);STICKLINE(MACD>=0,MACD,0,4,1),COLORF00FF0;STICKLINE(MACD<0,MACD,0,4,1),COLORWHITE;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4,0 ),COLOR00AAFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3.3,0 ),COLOR00BBFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR00CCFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.65,0 ),COLOR00DDFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.1,0 ),COLOR00EEFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.55,0 ),COLOR00FFFF;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4 ,0 ),COLOR0000AA;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3.3 ,0 ),COLOR0011BB;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR0022CC;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.65 ,0 ),COLOR0033DD;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.1 ,0 ),COLOR0044EE;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.55 ,0 ),COLOR0055FF;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORAA00BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORBB11BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORCC22BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.65,0 ),COLORDD33BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.1,0 ),COLOREE44BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFF55BB;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORFFAA00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORFFBB11;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORFFCC22;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.65 ,0 ),COLORFFDD33;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.1 ,0 ),COLORFFEE44;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFFFF55;IF(DIFF<0,DIFF,0),COLORRED,LINETHICK1;IF(DIFF<0,0,DIFF),COLORYELLOW,LINETHICK1;IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK1;IF(DIFF>DEA,DEA,DEA),COLORWHITE,LINETHICK1;↑低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;STICKLINE(↑低位金叉,0,-0.5,2,0),COLORYELLOW;DRAWTEXT(↑低位金叉,-0.4,' ↑低位金叉'),COLORYELLOW;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));↑二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;STICKLINE(↑二次金叉,0,-0.2,5,0),COLORFF00FF;DRAWICON(↑二次金叉,DEA*1.2,11) ;DRAWTEXT(↑二次金叉,-0.2,' ↑二次金叉'),COLORFF00FF;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));↑底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); STICKLINE(↑底背离,0,0.2,3,0),COLOR00FF00;DRAWLINE(A1=0,DEA,↑底背离,DEA,0),COLORRED,LINETHICK2;DRAWTEXT(↑底背离,0.2,' ↑底背离'),COLOR00FF00;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));↑顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF); DRAWLINE(A2=0,DEA,↑顶背离,DEA,0),COLORGREEN,LINETHICK2红进绿出V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);V AR5:=3*V AR3-2*VAR4;AA:=CROSS(VAR5,V AR3) AND V AR3<2.1 AND C>O;V AR6:=(2*CLOSE+HIGH+LOW)/4;V AR7:=LLV(LOW,13);V AR8:=HHV(HIGH,13);V AR9:=EMA((V AR6-V AR7)/(V AR8-V AR7)*100,13);V ARA:=EMA(0.667*REF(V AR9,1)+0.333*V AR9,2);多:V AR9,COLORRED,POINTDOT;空:EMA(0.382*REF(VAR9,2)+0.618*V AR9,12),COLORGREEN;STICKLINE(V AR9>V ARA,V AR9,V ARA,6,0),COLORRED;STICKLINE(V AR9<=V ARA,V AR9,V ARA,6,0),COLORGREEN;DRAWTEXT(AA,10,'底'),COLORYELLOW;战无不胜危机线:85,colorred;中间线:50,colorwhite;安全线:15,colorgreen;v1:=(2*close+high+low)/4;v2:=llv(low,34);va:=hhv(high,34);防线b:=ema((v1-v2)/(va-v2)*100,13);防线bb:=ema((0.667*ref(防线b,1)+0.333*防线b),2);战术线:防线b,coloryellow,pointdot;战略线:ema(0.382*ref(防线b,2)+0.618*防线b,12),coloryellow;stickline(防线b>防线bb,防线b,防线bb,6,0),colorred;stickline(防线b<=防线bb,防线b,防线bb,6,0),;紫黄同现{紫黄同现股票将大涨}JJ :=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);SD := EMA(SK,3);SP := EMA(SK,10);A1:=EMA(C,7)-EMA(C,21);B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);B1,COLORSTICK;X1:=V/SUM(V,13);X2:=DMA(C,X1);X3:=(C-X2)/X2*40;L2:=MA(AMOUNT/(100*V),13);CYS13:= (C-L2)/L2*100;做多:IF(A1>=B1,A1,B1),LINETHICK2,COLORFF00FF;做空:IF(B1-A1,B1,A1),COLORGREEN,LINETHICK2;强庄:STICKLINE(CYS13>5,0,-做空,2,0 ),COLORYELLOW;主力强度:STICKLINE(X3>0 AND 做多>0,做多+0.1,做多,1,0),COLORFF80FF;C>MA(C,30),COLORFF80FF,LINETHICK2;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J1:=DIFF;J2:=DEA;J3:=K;J4:=D;VL:=REF(LOW,1); VH:=REF(H,1);V AR1:=SMA(ABS(H-VH),13,1)/SMA(MAX(H-VH,0),13,1)*100;V AR2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;V AR3:=REF(CLOSE,1);V AR4:=MA(V AR2,13);V AR5:=LLV(L,34);V AR6:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;V AR7:=CROSS(93,V AR6);V AR8:=EMA(IF(L<=VAR5,V AR4,0),3);V AR9:=H>LLV(L,0)*7;V AR10:=(SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1));V AR11:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - (V AR10 * 10.9);上攻:FILTER(CROSS(J1,J2) AND VOL>REF(SUM(VOL,5),1),3),COLOR0066FF,LINETHICK2;WR10:=-100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10)),COLORWHITE,LINETHICK1;WR45:=-100*(HHV(HIGH,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45)),COLORFFB900,LINETHICK1;WR99:=-100*(HHV(HIGH,99)-CLOSE)/(HHV(HIGH,99)-LLV (LOW,99)),COLORRED,LINETHICK1;顶:= 0, LINETHICK2 ,COLOR446600;底1:=-95, LINETHICK2 ,COLOR446600;红柱初现工作线:MA(CLOSE,14),COLORRED,LINETHICK2;操盘线:MA(CLOSE,26),Color00A800,LINETHICK2;X1:=MA(C,1);X2:=SMA(SMA(SMA(x1,2,1),2,1),2,1);X3:=MA(x2,3);X4:=(L+H+C*4)/6;X5:=EMA(x4,12);x6:=EMA(x4,19);x7:=(x5-REF(x5,1))/REF(x5,1)*100;x9:=(x6-REF(x6,1))/REF(x6,1)*100;G:=BARSLAST(CROSS(x7,0));X8:=REF(x4,G);A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30)) *100,5);A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;A5:=EMA(CLOSE,12)-EMA(CLOSE,26);A6:=EMA(A5,9);A7:=(A5-A6);STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),HIGH,LOW,0.5,0),color0000CD;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,8,0),color070084;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,7,0),color0000A3;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,6,0),color0000B7;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,5,0),color0000CD;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,4,0),color0000E9;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,2,0),color0754E9;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,0.6,0),Color68B8FF;Z1:MA(CLOSE,5),COLORYELLOW,;Z2:MA(CLOSE,55){,ColorFF8080},Color00FF00,LINETHICK2;玄黄吉星XF: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);V AR2:=MA(CLOSE,80)-MA(CLOSE,13)/3;神奇趋势线:=MA((CLOSE-V AR2)/V AR2,1);狙击:DRAWTEXT(CROSS(神奇趋势线,0) AND LOW/REF(HIGH,1)<1.012,LOW,'狙击'),COLORYELLOW;盈利临界: DRAWTEXT(COUNT(神奇趋势线>REF(神奇趋势线,1),3)=3 AND COUNT(神奇趋势线<0,10)=10 AND REF(神奇趋势线,3)=LLV(神奇趋势线,10),LOW,'盈利临界'),COLORYELLOW;参与: DRAWTEXT(REF(神奇趋势线,2)=LLV(神奇趋势线,20) AND REF(神奇趋势线,2)<0.071 AND REF(神奇趋势线,2)<REF(神奇趋势线,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1),LOW,'参与'),COLORYELLOW;DRAWICON(CROSS(EMA(CLOSE,8),EMA(EMA(CLOSE,8),20)) AND EMA(CLOSE,8)<MA(CLOSE,120),LOW,1),COLORRED;DRAWTEXT((WINNER(CLOSE)-WINNER(OPEN))*100>=17 AND VOL/CAPITAL*100<=2,LOW,'无量长阳,谨慎'),COLORWHITE;V AR1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR21:=SMA(VAR1,20,1);V AR3:=SMA(V AR21,15,1);V AR4:=100-3*VAR21+2*V AR3;V AR5:=(3*VAR21+2*V AR3)/4;V AR6:=ABS(ABS(V AR5)-ABS(V AR4));V AR7:=ABS(ABS(V AR5)-ABS(V AR6));阴跌区域:=V AR4-V AR7;见顶区域:=阴跌区域<0;均衡:=V AR5-V AR7;DRAWTEXT(CROSS(阴跌区域,均衡),LOW,'阴跌延续'),COLORGREEN;DRAWTEXT(CROSS(阴跌区域,-0.1),LOW,'见顶回落'),COLORWHITE;STICKLINE(C>=O,C,H,0.1,0),COLORRED;TTZF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 {AND TTZF>=ZF};STICKLINE(TTZF>=2.50 ,O ,C ,8,0),COLOR00FFFF;中轨:HHV(MA(H,11),15),COLORRED;趋势:LLV(MA(H,11),1),COLORGREEN;三合成RSI6:SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,colorwhite;DIFF:=EMA(C,5)-EMA(C,20);DEA:=EMA(DIFF,10);MACD:800*(DIFF-DEA)/EMA(C,30),colorSTICK,linethick3;RSV:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;K20:SMA(RSV,5,1),COLORyellow;D20:SMA(K20,5,1),COLORFF00ff;20;50;80;DRAWICON(count(c>ref(c,1),5)=5,h*1.01,3);DRAWICON(count(c<ref(c,1),5)=5,l*0.995,1);机构能量做多能量线: SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;做空能量线: SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3; 20,pointdot,colorf00ff0;50,pointdot,colorgreen;80,pointdot,colorwhite;短线之星Var1:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));Var2:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));Var3:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),28);买入信号: IF(Var2<MA(Var3,6),MA(Var3,6),Var2),colorred ;卖出信号: IF(Var1>MA(Var3,6),MA(Var3,6),Var1),colorgreen ;强弱线: MA(Var3,6),coloryellow ,linethick2 ;极品逃顶V AR2:=LLV(LOW,10);V AR3:=HHV(HIGH,25);阶段卖出: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓卖出: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-V AR2)/(V AR3-V AR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00; 底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2); DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);强弱分界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:动力线,COLORA8A8A8;超级逃顶Var2:=llv(low,10);var3:=hhv(high,25);3.5,color0088ff;清仓卖出: 3.5;动力线:= ema((close-var2)/(var3-var2)*4,4);stickline(动力线>ref(动力线,1) ,动力线,ref(动力线,1),8 ,1),colorred;stickline(动力线<=ref(动力线,1) ,动力线,ref(动力线,1),8 ,1),colorgreen;底部介入:0.2,colorgreen;重点关注:0.5, coloryellow;drawicon( filter(cross(动力线,重点关注),20),动力线+0.02 ,1);drawicon( filter(cross(清仓卖出,动力线),20),动力线+0.02,2);drawicon( filter(cross(动力线,底部介入),20),动力线+0.02 ,1);drawicon( filter(cross(JDMC,动力线),20),动力线+0.02,2);强弱分界线:1.75,pointdot,linethick2,colordddddd;抄底逃顶趋势: 5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW ,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,2 7)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLOR7F52AF;趋势1: EMA(MA(趋势,5),3),LINETHICK0,COLORA6B8C1;STICKLINE(趋势>=趋势1,趋势,趋势1,5,0),COLOR7F52AF;STICKLINE(趋势<趋势1,趋势,趋势1,5,0),COLORA6B8C1;STICKLINE(趋势>108 AND 趋势>=趋势1,趋势,108,5,0),COLORFF0000;STICKLINE(趋势1>108 AND 趋势<趋势1,趋势1,108,5,0),COLORFFFFFF;STICKLINE(趋势<0 AND 趋势<趋势1,趋势,0,5,0),COLORF00FF0;STICKLINE(趋势1<0 AND 趋势>趋势1,趋势1,0,5,0),COLORF0F000;V1:= MA(CLOSE,5)=HHV(MA(CLOSE,5),20);V2:= MA(CLOSE,5)>MA(CLOSE,20);V3:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险: IF(V1 AND V2 AND V3,30,0),LINETHICK0,STICK,COLOR00FF00;V11:= MA(CLOSE,5)=HHV(MA(CLOSE,5),120);V21:= MA(CLOSE,5)>MA(CLOSE,120);V31:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险1: IF(V11 AND V21 AND V31,60,0),LINETHICK0,STICK,COLORF0F000;底部: 5,LINETHICK0,COLOR00FFFF;抄底: IF(CROSS(趋势,底部),60,0),LINETHICK2,STICK,COLOR00FFFF;DRAWTEXT(抄底,50,'抄底'),COLOR0000FF;天线: 108,LINETHICK0,COLORFF9D00;逃顶: IF(CROSS(天线,趋势),1,0),LINETHICK0,STICK,COLORFF9D00;STICKLINE(CROSS(天线,趋势),90,108,3,0),COLORFF9D00;DRAWTEXT(CROSS(天线,趋势),85,'逃顶'),COLORFF9D00;金牌黑马A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))黑马线:EMA(A1,5),LINETHICK2,COLOR6600FF;A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;A3:=EMA(C,5);A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A2<0,7),黑马线,'跑'),COLOR00FF00;DRAWTEXT(CROSS(A1,黑马线)AND 黑马线<A5,黑马线,'黑马');DRAWTEXT(CROSS(黑马线,A5)AND 趋势线<80,黑马线,'追涨');DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大黑马');底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED;DRAWICON(底部AND A3>REF(A3,1),25,4);机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0; 大势已去:IF(CROSS(黑马线,A1)AND 黑马线>70 AND 趋势线>80,90,100),COLORFF0000;中短长线90,COLOR9966FF,LINETHICK2;80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;长期线:MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100,color9900FF;短期线:-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100,color888888;中期线:EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100,coloryellow,linethick2;见顶:(ref(中期线,1)>85 and ref(短期线,1)>85 and ref(长期线,1)>65) and cross(长期线,短期线) ;顶部区域:(中期线<ref(中期线,1) and ref(中期线,1)>80) and (ref(短期线,1)>95 or ref(短期线,2)>95 ) and 长期线>60 and 短期线<83.5and 短期线<中期线and 短期线<长期线+4;顶部:=filter(顶部区域,4);底部区域:(长期线<12 and 中期线<8 and (短期线<7.2 or ref(短期线,1)<5) and (中期线>ref(中期线,1) or 短期线>ref(短期线,1)))or (长期线<8 and 中期线<7 and 短期线<15 and 短期线>ref(短期线,1)) or (长期线<10 and 中期线<7 and 短期线<1) ;stickline( 顶部,99,103,20,1 ),colorred,linethick2;stickline( 底部区域,-4,0,22,0 ),colorgreen;低位金叉:长期线<15 and ref(长期线,1)<15 and 中期线<18 and 短期线>ref(短期线,1) and cross(短期线,长期线) and 短期线>中期线and (ref(短期线,1)<5 or ref(短期线,2)<5 ) and (中期线>=长期线or ref( 短期线,1)<1 );stickline( 低位金叉,0,5,11,0 ),colorred;仓位增减(主图)。
大智慧选股公式的源码
大智慧选股公式的源码下面是172个大智慧选股公式的源码,使用这些源码,可以做出符合自己选股策略的N种组合。
1、30个交易日内,股价跌幅达到一半的股票:xg:(hhv(c,30)-c)/hhv(c,30)>0.5;2、今天的量是5天平均的2倍以上xg:v>ma(v,5)*2;缩量vol/ma(vol,10)<0.3;3、两天内,累计下跌等于或超过20%选股.xg:(ref(c,2)-c)/c>0.2;4、股价是25天以来新低.xg:c<ref(llv(c,25),1);< p="">5、选股:EXPMA5日与10日金叉,并且第二天的收盘价在expma的5日线以上.cross(ref(ema(c,5),1),ref(ema(c,10),1)) and c>ema(c,5);6、买入公式:1. 将BIAS指标的参数设置为24日,将KD指标的参数设置为9;3;3。
2. BIAS指标要小于-6,这只是确认该股超跌的初选条件。
3. KD指标产生黄金交叉,K线上穿D线。
4. KD交叉同时,KD指标中的D值要小于16。
BIAS3 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,colorff00ff;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;xg:BIAS3<-6 and cross(k,d) and d<16;7、要求是量大、换手率达到3左右,涨幅>7个点。
xg:v/capital*100>3 and (c/ref(c,1)>1.07;8、个股分时图上都有一条黄线,叫做均价线a/capital*100;9、"阴转阳"的公式(也就是昨天收阴线,今天收阳线)xg:ref(c,1)o;10、股价回抽20日均线选股公式xg:ref(c,1)>ma(c,20) and cross(ma(c,20),c);11、一根大阳线,至少有5个点以上,再连着出现二根振幅不大于5的十字星或是小K线xg:(ref(c,3)-ref(c,4))/ref(c,3)>0.05 and count((h-l)/l<0.05,2)=2;12、行情信息里的“涨幅”的原码(c-ref(c,1))/c*100;13、kdj的J从上向下穿越O轴发出信号RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;xg:cross(0,j);14、股价4天中有两天在10日线上count(c>ma(c,10),4)=2;15、选出10天内出现了涨停的个股count(c/ref(c,1)>1.1,10)>0;又:今涨停:=C/REF(C,1)>1.09;选股:count(今涨停,n);16、一阳上穿10,20,30日线,量能是前一天3倍。
大智慧公式源代码【共172个】
1、30个交易日内,股价跌幅达到一半的股票:xg:(hhv(c,30)-c)/hhv(c,30)>0.5;2、今天的量是5天平均的 2倍以上xg:v>ma(v,5)*2;缩量vol/ma(vol,10)<0.3;3、两天内,累计下跌等于或超过20%选股.xg:(ref(c,2)-c)/c>0.2;4、股价是25天以来新低.xg:c<ref(llv(c,25),1);5、选股:EXPMA5日与10日金叉,并且第二天的收盘价在expma的5日线以上. cross(ref(ema(c,5),1),ref(ema(c,10),1)) and c>ema(c,5);6、买入公式:1. 将BIAS指标的参数设置为24日,将KD指标的参数设置为9;3;3。
2. BIAS指标要小于-6,这只是确认该股超跌的初选条件。
3. KD指标产生黄金交叉,K线上穿D线。
4. KD交叉同时,KD指标中的D值要小于16。
BIAS3 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,colorff00ff;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;xg:BIAS3<-6 and cross(k,d) and d<16;7、要求是量大、换手率达到3左右,涨幅>7个点。
xg:v/capital*100>3 and (c/ref(c,1)>1.07;8、个股分时图上都有一条黄线,叫做均价线a/capital*100;9、"阴转阳"的公式(也就是昨天收阴线,今天收阳线)xg:ref(c,1)<ref(o,1) and c>o;10、股价回抽20日均线选股公式xg:ref(c,1)>ma(c,20) and cross(ma(c,20),c);11、一根大阳线,至少有5个点以上,再连着出现二根振幅不大于5的十字星或是小K线 xg:(ref(c,3)-ref(c,4))/ref(c,3)>0.05 and count((h-l)/l<0.05,2)=2; 12、行情信息里的“涨幅”的原码(c-ref(c,1))/c*100;13、kdj的J从上向下穿越O轴发出信号RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;xg:cross(0,j);14、股价4天中有两天在10日线上count(c>ma(c,10),4)=2;15、选出10天内出现了涨停的个股count(c/ref(c,1)>1.1,10)>0;又:今涨停:=C/REF(C,1)>1.09;选股:count(今涨停,n);16、一阳上穿10,20,30日线,量能是前一天3倍。
李雨青实战教材第一册
1、HYS01 一线选股MA(10)技巧解析:10日均价线从下跌转为走平并开始有所微升,股价在均价线上方不远处位置止跌、盘整、上涨时买入。
注意事项:1、长期均价线如果有反作用力则上涨力度会受到限制。
如10日均线形成圆弧底,20日均价线在10日均价线上方,且向下运行,则股价上涨会受到影响。
2、买点出现后,后市成交量能有效配合为最佳。
3、此技巧也可以在小时图等日内图中应用,为短线操作的买点参照。
4、此技巧也可用于周线图等日外线图,判断股价较长周期内的走势。
示意图:实例图:600284 浦东建设当股价经过一段时间的下跌后,跌势变缓,并开始稳步回升,此时10日均价线也由下跌转为走平并开始上涨,这个时候,通过小红旗提示,可买入。
2、HYS02 一线选股MA(20)技巧解析:20日均价线从下跌转为走平并开始有所微升,股价在均价线上方不注意事项:1、长期均价线如果有反作用力则上涨力度会受到限制。
如20日均线形成圆弧底,62日均价线在20日均价线上方,且向下运行,则股价上涨会受到影响。
2、买点出现后,后市成交量能有效配合为最佳。
3、此技巧也可以在小时图等日内图中应用,为短线操作的买点参照。
4、此技巧也可用于周线图等日外线图,判断股价较长周期内的走势。
示意图:实例图:000429 粤高速A 09年1月23日当股价经过一段时间的下跌后,缓慢爬升,此时20日均价线也由下跌转为走平并开始上涨,这个时候,通过小红旗提示,可买入,后市展开拉升行情。
3、HYS03 一线选股MA(62)技巧解析:62日均价线从下跌转为走平并开始有所微升,股价在均价线上方不注意事项:1、长期均价线如果有反作用力则上涨力度会受到限制。
如62日均线形成圆弧底,133日均价线在62日均价线上方,且向下运行,则股价上涨会受到影响。
2、买点出现后,后市成交量能有效配合为最佳。
3、此技巧也可以在小时图等日内图中应用,为中期操作的买点参照。
4、此技巧也可用于周线图等日外线图,判断股价较大周期的走势。
很牛很好用的大智慧技术指标公式源码
很牛很好用的大智慧公式源码奉献给大家,共享(方法是只要你复制以下公式到大智慧公式编辑器即可):一、专吸庄血(公式源码)N:=5;VAR1:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),,1),COLORYELLOW,LINETHICK0; VAR2:8,COLORGREEN,LINETHICK0;上升在即: IF(CROSS(VAR1,VAR2),80,0),STICK,COLOR0000CC,LINETHICK2;专吸庄血: IF(VAR1<=8,25,0),STICK,COLORWHITE,LINETHICK2;DRAWTEXT(CROSS(VAR1,VAR2),80,'准备买入'),COLOR00FFFF;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),80,100) ,COLOR00CCFF,LINETHICK1;0,LINETHICK2 ,COLORFFCC00;二、资金判牛(公式源码)做空能量线:SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3;做多能量线: SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3; 短线通道:15,COLORGREEN;强弱分界:45,COLOR00FFFF;短线顶部:85,COLORFF00FF;FILLRGN(做多能量线,短线通道,做多能量线<=短线通道),COLORRED;FILLRGN(做空能量线,短线顶部,做空能量线>=短线顶部),COLORRED;FILLRGN(做空能量线,短线通道,做空能量线<=短线通道),COLORBLUE;FILLRGN(做多能量线,短线顶部,做多能量线>=短线顶部),COLORBLUE;3、主力进场(公式源码)VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),LINETHICK0,COLORRED; STICKLINE(VAR5>REF(VAR5,1),0,VAR5,6,0 ),COLORRED;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,5,0 ),COLOR000055; STICKLINE(VAR5>REF(VAR5,1),0,VAR5,4,0 ),COLOR000077; STICKLINE(VAR5>REF(VAR5,1),0,VAR5,,0 ),COLOR000099;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,,0 ),COLOR0000BB;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,,0 ),COLOR0000DD;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1,0 ),COLOR0000FF;洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),LINETHICK0,COLORGREEN; STICKLINE(VAR5<REF(VAR5,1),0,VAR5,6,0),COLORGREEN;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,5,0),COLOR005500;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,4,0),COLOR007700; STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR009900;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,,0),COLOR00BB00;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,,0),COLOR00DD00;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1,0),COLOR00FF00;VAR12:=SMA(ABS(VAR1-H),13,1)/SMA(MAX(VAR1-H,0),10,1);VAR13:=EMA(VAR12,10);VAR14:=HHV(H,33);VAR15:=EMA(IF(H>=VAR14,VAR13,0),3);冲顶:IF(VAR15>REF(VAR15,1),VAR15,0),LINETHICK0,COLORFF00FF; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,6,0),COLORFF00FF; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,5,0 ),COLOR550055; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,4,0 ),COLOR770077; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,3,0 ),COLOR990099; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,,0 ),COLORBB00BB; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,,0 ),COLORDD00DD; STICKLINE(VAR15>REF(VAR15,1),0,VAR15,1,0 ),COLORFF00FF;主力出场:IF(VAR15<REF(VAR15,1),VAR15,0),LINETHICK0,COLORYELLOW;STICKLINE(VAR15<REF(VAR15,1),0,VAR15,6,0 ),COLORYELLOW; STICKLINE(VAR15<REF(VAR15,1),0,VAR15,5,0),COLOR005555; STICKLINE(VAR15<REF(VAR15,1),0,VAR15,4,0),COLOR007777; STICKLINE(VAR15<REF(VAR5,1),0,VAR15,3,0),COLOR009999; STICKLINE(VAR15<REF(VAR15,1),0,VAR15,,0),COLOR00BBBB; STICKLINE(VAR15<REF(VAR15,1),0,VAR15,,0),COLOR00DDDD; STICKLINE(VAR15<REF(VAR15,1),0,VAR15,1,0),COLOR00FFFF;A1:=REF(CLOSE,2);A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100; 波段介入点:IF(A2<19,19,0),COLORWHITE;4、新VOL(公式源码)当日:VOL;量5:MA(VOL,5),colorred;量10:MA(VOL,10);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),Color0 000FF,STICK;主动卖盘:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),Color0 0E521,STICK;买卖盘比:主动买盘/主动卖盘;WJ:=(HIGH+LOW+CLOSE)/3;VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));VD5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);VD6:=(VD1*VD5);VD7:=(VD2*VD5);VD8:=(VD3*VD5);VD9:=(VD4*VD5);买入量:=(VD9+VD8);卖出量:=(VD6+VD7);买入资金:=买入量*close/100;卖出资金:=卖出量*close/100;资金进出:=买入资金-卖出资金;买卖资金比:=买入资金/卖出资金;挂单买盘:=MA(主动买盘,3);挂单卖盘:=(MA(主动卖盘,3));STICKLINE((主动买盘 > 0),0,主动买盘,8,0),color0000FF;STICKLINE((主动买盘 > 0),0,主动买盘,,0),color0018FF;STICKLINE((主动买盘 > 0),0,主动买盘,,0),color001BFF;STICKLINE((主动买盘 > 0),0,主动买盘,,0),color0022FF;STICKLINE((主动买盘 > 0),0,主动买盘,7,0),color0035FF;STICKLINE((主动买盘 > 0),0,主动买盘,,0),color0041FF;STICKLINE((主动买盘 > 0),0,主动买盘,,0),color0050FF;STICKLINE((主动买盘> 0),0,主动买盘,,0),color0059FF;STICKLINE((主动买盘 > 0),0,主动买盘,6,0),color0062FF;STICKLINE((主动买盘 > 0),0,主动买盘,,0),color006CFF;STICKLINE((主动买盘> 0),0,主动买盘,,0),color007AFF;STICKLINE((主动买盘 > 0),0,主动买盘,,0),color0080FF;STICKLINE((主动买盘 > 0),0,主动买盘,5,0),color0089FF;STICKLINE((主动买盘 > 0),0,主动买盘,,0),color0095FF;STICKLINE((主动买盘 > 0),0,主动买盘,,0),color009CFF;STICKLINE((主动买盘 > 0),0,主动买盘,3,0),color00ABFF;STICKLINE((主动买盘> 0),0,主动买盘,,0),color00C0FF;STICKLINE((主动买盘 > 0),0,主动买盘,,0),color00D1FF;STICKLINE((主动买盘> 0),0,主动买盘,1,0),color00EAFF;STICKLINE((主动买盘 > 0),0,主动买盘,,0),color00FFFF;STICKLINE((主动卖盘 > 0),0,主动卖盘,8,0),color006800;STICKLINE((主动卖盘 > 0),0,主动卖盘,,0),color007F00;STICKLINE((主动卖盘 > 0),0,主动卖盘,7,5),color008B00;STICKLINE((主动卖盘 > 0),0,主动卖盘,7,3),color008B00;STICKLINE((主动卖盘> 0),0,主动卖盘,7,0),color009000;STICKLINE((主动卖盘 > 0),0,主动卖盘,,0),color009500;STICKLINE((主动卖盘> 0),0,主动卖盘,,0),color009C00;STICKLINE((主动卖盘> 0),0,主动卖盘,,0),color00A300;STICKLINE((主动卖盘 > 0),0,主动卖盘,6,0),color00AB00;STICKLINE((主动卖盘 > 0),0,主动卖盘,,0),color00AF00;STICKLINE((主动卖盘 > 0),0,主动卖盘,,0),color00B900;STICKLINE((主动卖盘 > 0),0,主动卖盘,,0),color00C000;STICKLINE((主动卖盘 > 0),0,主动卖盘,5,0),color00C100;STICKLINE((主动卖盘 > 0),0,主动卖盘,,0),color00CA00;STICKLINE((主动卖盘> 0),0,主动卖盘,,0),color00D300;STICKLINE((主动卖盘> 0),0,主动卖盘,3,0),color00DB00;STICKLINE((主动卖盘> 0),0,主动卖盘,,0),color00EA00;STICKLINE((主动卖盘> 0),0,主动卖盘,,0),color00FF00;DRAWTEXTABS(1,1,'【买卖盘解量(手)】');DRAWTEXTABS(1,30,'┃当日买卖量='+NUMTOSTR(VOL)),ColorFF00FF;DRAWTEXTABS(1,60,'┃当日主动买量='+NUMTOSTR(主动买盘)),Color00ff00; DRAWTEXTABS(1,90,'┃当日主动卖量='+NUMTOSTR(主动卖盘)),Coloryellow; DRAWTEXTABS(1,120,'┃当日买卖盘比='+NUMTOSTR(买卖盘比)),ColorFF00FF; DRAWTEXTABS(250,30,'┃买入资金累计万元: '+NUMTOSTR(买入资金)),Colorred,LINETHICK1;DRAWTEXTABS(250,60,'┃卖出资金累计万元: '+NUMTOSTR(卖出资金)),Color00ff00,LINETHICK1; DRAWTEXTABS(250,90,'┃资金进出万元: '+NUMTOSTR(资金进出)),Coloryellow,LINETHICK1; DRAWTEXTABS(250,120,'┃买卖资金比: '+NUMTOSTR(买卖资金比)),Coloryellow,LINETHICK1; DRAWTEXTABS(1,150,'┃当日挂单买盘: '+NUMTOSTR(挂单买盘)),Colorred,LINETHICK1; DRAWTEXTABS(250,500,'┃当日挂单卖盘: '+NUMTOSTR(挂单卖盘)),Color00ff00,LINETHICK1;5、猎庄端窝(公式源码)DRAWTEXTREL(10,900,'..'),linethick1,COLOR00EEff;DRAWGBKLAST(1,STRIP(RGB(4,1,28),RGB(4,1,35),0));N:=5;N1:=21;VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N) )/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),,1);小试牛刀: IF(CROSS(VAR1,8),8,0),STICK,COLORRED;DRAWICON(小试牛刀>0,8,7);发现庄迹: IF(VAR1<=8,15,0),STICK,COLORCYAN,LINETHICK2;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),100,118) ,COLOR00CCFF,LINETHICK1;CD1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(L,9));CD2:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9));CD3:=SMA(SMA(CD2,3,1),3,1);CD4:=(CD3-SMA(CD1,9,1));CD5:=IF(CD4>,CD4,;CD6:=REF(CD5,1);VAR81:=MA(C,9);空头1:=IF(CD6-CD5,CD6,CD5);VAR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2A:=SMA(VAR1A,9,1)+100;VAR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4A:=SMA(VAR3A,3,1);VAR5A:=SMA(VAR4A,3,1)+100;VAR6A:=VAR5A-VAR2A;端庄窝:IF(VAR6A>N1,VAR6A-N1,0),COLORRED;果断出击:IF(CROSS(端庄窝,,18,0),STICK,COLOR0000CC,LINETHICK2;DRAWICON(果断出击>0,18,7);XG:=CROSS(端庄窝,;选底:IF(XG=1,16,0),STICK,LINETHICK3;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;E:=CROSS(83,RSI);减仓空仓:10*(CROSS(CD6,CD5) OR E),COLORGREEN;DRAWICON(减仓空仓>0,113,8);STICKLINE(REF(端庄窝,1)<端庄窝,端庄窝,REF(端庄窝,1),7,0),COLORRED;STICKLINE(REF(端庄窝,1)>端庄窝,端庄窝,REF(端庄窝,1),7,0),COLOR00FF00;红持绿空:0,COLORGREEN;6、买点决策(公式源码)input:N(60,1,111);a1:=INDEXC;a2:=INDEXO;a3:=DISPSTATUS=1;a4:=BARSLAST(a3);a5:=(REF(a1,a4))/(REF(CLOSE,a4));a6:=IF(a3,CLOSE,(REF(CLOSE,a4)));a7:=IF(a3,(a1/a5),(REF((a1/a5),a4))); a8:=a6-a7;a9:=a2/a5;a10:=INDEXH/a5;a11:=INDEXL/a5;a12:=(CLOSE>OPEN)OR((CLOSE=OPEN)AND(CLOSE>(REF(CLOSE,1))));a13:=(a1>a2)OR((a1=a2)AND(a1>(REF(a1,1))));大盘:STICKLINE(a13,(a10 +a8),(a11 +a8),0,0),colorRed;STICKLINE(a13,((a1/a5) +a8),(a9 +a8),5,0),colorRed;STICKLINE(NOT(a13),(a11+a8),(a10+a8),0,0),colorGreen;STICKLINE(NOT(a13),((a1/a5)+a8),(a9+a8),5,0),colorGreen;PARTLINE(CLOSE,CLOSE>(a1/a5),RGB(255,0,0)),linethick2,colorRed;PARTLINE(CLOSE,CLOSE>(a1/a5)AND(CLOSE<(REF(CLOSE,1))),RGB(255,0,255)),linethick2,colorMagent a;PARTLINE(CLOSE,(CLOSE>(a1/a5)AND((MA(CLOSE,30))>(REF((MA(CLOSE,30)),1))))AND((MA((a1/a5),30) )<(REF((MA((a1/a5),30)),1))),RGB(255,255,0)),linethick2,colorYellow;STICKLINE((((REF(a1,1))<(REF(a2,1)))AND(a1>(REF(a1,1)))),((a1/a5)+a8),CLOSE,1,1),Color606060;STICKLINE((((REF(a1,1))>(REF(a2,1)))AND(a1<(REF(a1,1)))),((a1/a5)+a8),CLOSE,1,1),Color606060 ;a14:=MA(CLOSE,10);a15:=(((EMA(CLOSE,5))*7)+((EMA(CLOSE,10))* 3))/10;a16:=((SMA((MAX((CLOSE-(REF(CLOSE,1))),0)),6,1))/(SMA(ABS((CLOSE-(REF(CLOSE,1)))),6,1)))* 100;DRAWTEXT(((DATE >700101)AND(CROSS(84,a16))),HIGH,'▼'),colorGreen;a17:=(((2*CLOSE)+HIGH)+LOW)/4;a18:=LLV(LOW,34);a19:=HHV(HIGH,34);a20:=EMA((((a17-a18)/(a19-a18))*100),6);a21:=EMA((*(REF(a20,1)))+*a20)),4);a22:=LLV(LOW,120);a23:=HHV(HIGH,120);a24:=a23-a22;a25:=HHVBARS(CLOSE,N);REF(CLOSE,a25),POINTDOT,ColorFF0000;突破:FILTER(((CROSS(CLOSE,((REF(REF(CLOSE,a25),1))*))AND(REF((a25>=5),1))),10),POINTDOT,linethick0;STICKLINE(突破,(CLOSE*,CLOSE,5,0),ColorF600A9;DRAWTEXT((((SUM((突破>0),0))=1)AND 突破),(CLOSE*,'最佳买点'),colorWhite;DRAWTEXT((((SUM((突破>0),0))=2)AND 突破),(CLOSE*,'次佳买点'),colorWhite;DRAWTEXT((((SUM((突破>0),0))=3)AND 突破),(CLOSE*,'理想买点'),colorWhite;DRAWTEXT((((SUM((突破> 0),0))=4)AND 突破),(CLOSE * ,'及格买点'),colorWhite;DRAWTEXT((((SUM((突破> 0),0))>=5) AND 突破),(CLOSE * ,'突破'),colorWhite;a26:=(CLOSE<(a1/a5))AND(CROSS(80,a16));DRAWICON(a26,CLOSE,8);DRAWICON((CLOSE>(a1/a5)AND(CROSS(a16,17))),CLOSE,7);DRAWICON((CROSS(a16,10)),CLOSE,7);DRAWICON((CROSS(90,a16)),CLOSE,8);DRAWICON((CROSS(CLOSE,(a1/a5))),CLOSE,11);DRAWTEXT(((IF(((((((COUNT((CLOSE<(REF(CLOSE,1))),8))/8)>AND(COUNT((a20>a21),3)))AND((REF(LOW,1))=a22))AND(CLOSE>OPEN)),1,0))AND(CROSS(a16,15))),LOW, '★小底'),ColorFF8080;a27:=DYNAINFO(3);a28:=SMA(CLOSE,2,1);a29:=SMA(CLOSE,6,1);a30:=2*(a28-a29);DRAWTEXTABS(10,200,'■所属板块:'+BKNAME),ColorYELLOW,linethick1;流通盘大小:=FINANCE2(37)/1000000*100;DRAWTEXTABS(280,220,'流通盘大小:'+NUMTOSTRN(流通盘大小,2)+'亿'),LINETHICK1,ColorYELLOW; 每股收益:=FINANCE2(3);每股市盈率:=DYNAINFO(39);每股净资产:=FINANCE2(4);销售毛利率:=FINANCE2(12);主营收入同比:=FINANCE2(11);净利润同比增长:=FINANCE2(10);DRAWTEXTABS(170,220,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),COLOR00FF00;DRAWTEXTABS(170,240,'每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),COLORRED;DRAWTEXTABS(170,260,'每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),COLORRED;DRAWTEXTABS(20,220,'销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),LINETHICK1,COLOR00FF00; DRAWTEXTABS(20,240,'主营收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),LINETHICK1,COLOR00FF00;DRAWTEXTABS(20,260,'净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),LINETHICK1,COLOR00FF00;7、数据投机(指标源码){计算股价}input:股数(0,0,),买入价(0,0,500),预期涨幅(0,0,100),服务费(0,0,100){根据各证券所收费不同,自行调节};预卖价位:=买入价*(预期涨幅*+1);买入收费:=买入价*股数*{各证券所收费不同,自行调节}+服务费;卖出收费:=预卖价位*股数*{各证券所收费不同,自行调节}+服务费;预期盈利:=预卖价位*股数-买入价*股数-买入收费-卖出收费;DRAWTEXTREL(320,850,'¤预卖价位: '+NUMTOSTRN(预卖价位,2)+' 元'),LINETHICK5,COLORAFAFAF; DRAWTEXTREL(540,850,'¤预期盈利: '+NUMTOSTRN(预期盈利,2)+' 元'),LINETHICK5,COLORAFAFAF; {庄家实力}cyc0:=MAXCYC;庄家实力:c/cyc0,precis2,LINETHICK0,COLORC68CFF;DRAWTEXTREL(100,70,'☆庄家实力: '+NUMTOSTRN(庄家实力,2)+' 级'),LINETHICK5,COLORC68CFF;{精确风险系数}rsv:=(c-llv(l,15))/(hhv(h,15)-llv(l,15))*100;kk:=sma(rsv,10,1);dd:=sma(kk,5,1);zlcm:=intpart(sma(rsv,10,1));shcm:=intpart(sma(kk,5,1));风险系数:zlcm+shcm-70,precis0,LINETHICK0,COLOR66FFFF;DRAWTEXTREL(320,70,'※风险系数: '+NUMTOSTRN(风险系数,2)+' 级'),LINETHICK5,COLOR66FFFF;{历史价位系数}历史价位:(c-llv(l,0))/(hhv(h,0)-llv(l,0))*100,precis0,LINETHICK0,COLORFFBB77; DRAWTEXTREL(755,70,'⊙历史价位: '+NUMTOSTRN(历史价位,2)+' %'),LINETHICK5,COLORFFBB77;{量能饱和度}饱和量度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20) )*100),precis0,LINETHICK0,COLORE07EAA;DRAWTEXTREL(60,270,'§饱和量度: '+NUMTOSTRN(饱和量度,2)+' ℃'),LINETHICK5,COLORE07EAA;{股价倾斜系数}hot:=ma(c,13);倾斜系数:atan(hot-ref(hot,1))**100,precis0,LINETHICK0,COLORFFCC62;DRAWTEXTREL(245,270,'∥倾斜系数: '+NUMTOSTRN(倾斜系数,2)+' 度'),LINETHICK5,COLORFFCC62; {获利比例}获利比例:WINNER(CLOSE)*100,precis0,LINETHICK0,COLOR79A5FF;浮筹比例:(winner(c*-winner(c*)/winner(hhv(h,0))*100,precis0,LINETHICK0,COLORFFCC62; DRAWTEXTREL(430,270,'◇获利比例: '+NUMTOSTRN(获利比例,2)+' %'),LINETHICK5,COLOR79A5FF; DRAWTEXTREL(615,270,'□浮筹比例: '+NUMTOSTRN(浮筹比例,2)+' %'),LINETHICK5,COLORFFCC62;{人均持股}人均持股:=INTPART(FINANCE2(36)/extradata('散户线')*10000);DRAWTEXTREL(800,270,'〓人均持股: '+NUMTOSTRN(人均持股,0)+' 股'),LINETHICK5,COLOR79A5FF; {止损价位}LC:=REF(CLOSE,1);止损价位:=(LC**97+/;DRAWTEXTREL(100,850,'☆止损价位: '+NUMTOSTRN(止损价位,2)+' 元'),LINETHICK5,colorWHITE;{成本预测}建仓成本:MAXCYC,precis2,LINETHICK0,COLORFFBB77;心理价位:DMA(AMOUNT/(100*VOL),VOL/(100*FINANCE2(37)))*,precis2,LINETHICK0,COLORC78EFF; DRAWTEXTREL(60,470,'○建仓成本: '+NUMTOSTRN(建仓成本,2)+' 元'),LINETHICK5,COLORFFBB77; DRAWTEXTREL(60,660,'◎心理价位: '+NUMTOSTRN(心理价位,2)+' 元'),LINETHICK5,COLORC78EFF; {上升空间}上升空间:100-c/(心理价位-建仓成本)*10,precis0,LINETHICK0,COLOR79A5FF;DRAWTEXTREL(540,70,'‖上升空间: '+NUMTOSTRN(上升空间,2)+' %'),LINETHICK5,COLOR79A5FF; {股价预测}VC:=(HIGH+LOW+OPEN+2*CLOSE)/5;明日阻力:=2*VC-LOW;明日支撑:=2*VC-HIGH;明日突破:=VC+(HIGH-LOW);明日反转:=VC-(HIGH-LOW);今日阻力:=REF(明日阻力 , 1);今日支撑:=REF(明日支撑 , 1);今日突破:=REF(明日突破 , 1);今日反转:=REF(明日反转 , 1);DRAWTEXTREL(245,470,'↑今日支撑: '+NUMTOSTRN(今日支撑,2)+' 元'),LINETHICK5,COLOR5959FF; DRAWTEXTREL(430,470,'↓今日阻力: '+NUMTOSTRN(今日阻力,2)+' 元'),LINETHICK5,COLOR61FE78; DRAWTEXTREL(615,470,'♂今日突破: '+NUMTOSTRN(今日突破,2)+' 元'),LINETHICK5,COLOR66FFFF; DRAWTEXTREL(800,470,'♀今日反转: '+NUMTOSTRN(今日反转,2)+' 元'),LINETHICK5,COLORFC878F; DRAWTEXTREL(245,660,'↑明日支撑: '+NUMTOSTRN(明日支撑,2)+' 元'),LINETHICK5,COLOR5959FF; DRAWTEXTREL(430,660,'↓明日阻力: '+NUMTOSTRN(明日阻力,2)+' 元'),LINETHICK5,COLOR61FE78; DRAWTEXTREL(615,660,'♂明日突破: '+NUMTOSTRN(明日突破,2)+' 元'),LINETHICK5,COLOR66FFFF; DRAWTEXTREL(800,660,'♀明日反转: '+NUMTOSTRN(明日反转,2)+' 元'),LINETHICK5,COLORFC878F; {实际盈亏}实际盈亏:c*股数-买入价*股数-买入收费-卖出收费,precis2,LINETHICK0,colorWHITE; DRAWTEXTREL(755,850,'¥实际盈亏: '+NUMTOSTRN(实际盈亏,2)+' 元'),LINETHICK5,colorWHITE;。
大智慧公式源代码共个定稿版
大智慧公式源代码共个定稿版大智慧公式源代码共个HUA system office room 【HUA16H-TTMS2A-HUAS8Q8-HUAH1688】1、30个交易日内,股价跌幅达到一半的股票:xg:(hhv(c,30)-c)/hhv(c,30)>0.5;2、今天的量是5天平均的 2倍以上xg:v>ma(v,5)*2;缩量vol/ma(vol,10)<0.3;3、两天内,累计下跌等于或超过20%选股.xg:(ref(c,2)-c)/c>0.2;4、股价是25天以来新低.xg:c<ref(llv(c,25),1);< p="">5、选股:EXPMA5日与10日金叉,并且第二天的收盘价在expma的5日线以上.cross(ref(ema(c,5),1),ref(ema(c,10),1)) and c>ema(c,5);6、买入公式:1. 将BIAS指标的参数设置为24日,将KD指标的参数设置为9;3;3。
2. BIAS指标要小于-6,这只是确认该股超跌的初选条件。
3. KD指标产生黄金交叉,K线上穿D线。
4. KD交叉同时,KD指标中的D值要小于16。
BIAS3 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,colorff00ff;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;xg:BIAS3<-6 and cross(k,d) and d<16;7、要求是量大、换手率达到3左右,涨幅>7个点。
xg:v/capital*100>3 and (c/ref(c,1)>1.07;8、个股分时图上都有一条黄线,叫做均价线a/capital*100;9、"阴转阳"的公式(也就是昨天收阴线,今天收阳线)xg:ref(c,1)o;10、股价回抽20日均线选股公式xg:ref(c,1)>ma(c,20) and cross(ma(c,20),c);11、一根大阳线,至少有5个点以上,再连着出现二根振幅不大于5的十字星或是小K线xg:(ref(c,3)-ref(c,4))/ref(c,3)>0.05 and count((h-l)/l<0.05,2)=2;12、行情信息里的“涨幅”的原码(c-ref(c,1))/c*100;13、kdj的J从上向下穿越O轴发出信号RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;xg:cross(0,j);14、股价4天中有两天在10日线上count(c>ma(c,10),4)=2;15、选出10天内出现了涨停的个股count(c/ref(c,1)>1.1,10)>0;又:今涨停:=C/REF(C,1)>1.09;选股:count(今涨停,n);16、一阳上穿10,20,30日线,量能是前一天3倍。
大智慧一阳指选股指标公式源码编程思路破译及成功率回测数据
大智慧一阳指选股指标公式源码编程思路破译及成功率回测数
据
编程思路破译
A1赋值:1日前的收盘价/1日前的开盘价>1.03 AND 1日前的收盘价>1日前的开盘价AND 1日前的最高价>1日前的收盘价AND 1日前的最低价=1日前的开盘价
A2赋值:2日前的最低价/1日前的最低价>1.02 AND 最低价<1日前的最高价
A3赋值:收盘价>1日前的收盘价AND 收盘价>收盘价的5日简单移动平均
A4赋值:1日前的最低价=7日内最低价的最低值
A5赋值:最高价>收盘价的5日简单移动平均AND 最高价>收盘价的10日简单移动平均AND 最高价>收盘价的20日简单移动平均AND 最高价>收盘价的60日简单移动平均
输出XG:A1 AND A2 AND A3 AND A4 AND A5
条件选股:大智慧一阳指[日线]成功率测试
测试股票数:5008
共发出信号:1271 成功信号:732 失败信号:531 未完成信号:8
信号发出率:18.45% 平均成功率:57.96% 成功率达到50%的股票数有:62.45%
利润1总平均:17.18% 最大平均利润1: 132.26% 最小平均利润1: 0.00%
利润2总平均:4.14% 最大平均利润2: 119.03% 最小平均利润2: -60.79%。
大智慧无敌选股公式
大智慧无敌选股公式(原创版)目录1.介绍大智慧无敌选股公式2.大智慧无敌选股公式的原理3.大智慧无敌选股公式的实际应用4.大智慧无敌选股公式的优缺点5.总结正文一、介绍大智慧无敌选股公式大智慧无敌选股公式是一种基于股票市场的技术分析方法,其主要目的是通过分析历史数据,找出具有投资价值的股票。
这种选股公式以大智慧公司的同名软件为平台,利用独特的算法,帮助投资者在众多股票中筛选出具有较高投资收益可能性的股票。
二、大智慧无敌选股公式的原理大智慧无敌选股公式主要通过对股票的历史价格、成交量、市盈率等数据进行分析,筛选出符合一定条件的股票。
其原理主要包括以下几个方面:1.趋势分析:通过观察股票价格的走势,判断其是否处于上升趋势。
一般来说,处于上升趋势的股票具有较高的投资价值。
2.资金流向分析:通过分析成交量,判断股票是否受到市场的关注。
大量资金流入的股票通常具有较高的投资价值。
3.基本面分析:通过分析市盈率等财务指标,判断股票的估值是否合理。
低估值的股票通常具有较高的投资价值。
三、大智慧无敌选股公式的实际应用在实际应用中,投资者可以通过大智慧无敌选股公式,快速地筛选出具有投资价值的股票。
这种选股方法适用于各种投资策略,如短线投资、中线投资等。
四、大智慧无敌选股公式的优缺点1.优点:(1)高效:大智慧无敌选股公式能够快速地筛选出符合条件的股票,提高投资者的工作效率。
(2)客观:该选股公式基于历史数据进行分析,较为客观地反映股票的投资价值。
(3)适用性广:适用于各种投资策略和市场环境。
2.缺点:(1)依赖历史数据:选股公式的分析结果受到历史数据的影响,可能无法完全反映股票的实时投资价值。
(2)需要专业知识:投资者需要具备一定的股票市场知识和计算机操作技能,才能有效地运用大智慧无敌选股公式。
五、总结大智慧无敌选股公式是一种具有一定参考价值的股票筛选工具,能够帮助投资者在众多股票中快速地找到具有投资价值的股票。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
李雨青全系列选股公式(源码)大智慧1
1小金角技巧
即10日均价线与20日均价线走出圆弧底,10日均价线上叉20日均价线,并且20日
均价线也是要勾头向上的,股价在交叉点上方附近,甚至交叉点下方,10日均价
线与20日均价线向上开口角度越陡,后势上涨的潜力越大。
mA5:=MA(C,5);
mA10:=MA(C,10);
mA20:=MA(C,20);
yhd:=COUNT(ref(mA10<mA20,3),16)>=15 and count(mA5>mA10,3)>2;
xg:yhd AND CROSS(mA10,mA20)AND mA20>REF(mA20,1);
2大金角技巧:
就是20日均价线向上,上叉62日均价线,并且62日均价线也是要勾头向上的,这
样20日和62日都是开口向上的,其是底部阳量放大的那些股票,并且开的角度越陡
后期就越猛。
mA20:=MA(C,20);
mA62:=MA(C,62);
v1:=v>ref(v,1);
CROSS(mA20,mA62)AND mA62>REF(mA62,1) and count(v1,3)>2;
3小金边技巧
10日与20日均价线均向上运行,二者距离相差不大角度越陡越好;股价从10日线
上方跌破10日线,接近20日均价线,最好4日线也跌破10日线;62日与133日均价
线,没有反作用力最好;随后产生的成交阳量越大越好;MACD指标图形为空中加
油技巧最好.小金边技巧第一次出现是最有效的,可重点寻找那些股价回落到小金
边里面,4日线与20日线接近的股票小金边技巧(4死叉10配62)选股。
ma4:=ma(c,4);
ma10:=ma(close,10);
ma20:=ma(close,20);
l1:=v>ref(v,1);
v1:=count(cross(ma10,ma20),15);
v2:=c<ref(close,1) and ref(close,1)<ref(close,2);
xjb:v1=1 and v2 and ma10>c and c>ma20 and SLOPE(MA20,4)>0 AND SLOPE(MA10,3)>0; xg:ref(xjb,2)=1 and ma4>ref(ma4,1) and l1;
4大金边技巧:
当股价出现金角以后,股价会经过一段时间的上涨,股价第一次回落,跌破20日
线,跌到20日和62日夹角里就是大金边!
mA20:=MA(C,20);
mA62:=MA(C,62);
v1:=v>ref(v,1);
djj:=CROSS(mA20,mA62)AND mA62>REF(mA62,1) and count(v1,3)>2;
xg:count(djj,30)>0 and C<mA20 AND C>mA62 AND mA62>REF(mA62,1);
5MACD骑墙技巧:
股价刚上涨时如DIF线已跨上0轴,而MACD线(或称DEA线)即将跨上但还未跨上0轴时,一旦成交放量,则上涨有望加速。
DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
DIF>=0 AND cross(dif,dea) AND V/MA(V,5)>1.5;
6半山水库技巧:
当20线上穿60线,并且60线的趋势向上,则该均线粘合点为买入点
MA20:=MA(C,20);
MA60:=MA(C,60);
xg:cross(ma20,ma60) and ma60>ref(ma60,1);
7隔谷底背离技巧:
当股价第一次下跌到一定程度时,然后反弹拉升,上升到一定程度时,又开始第
二次下跌,并且第二次下跌比第一次更深;同时,第一次下跌时最低点对应的
MACD指标为绿色柱状,而第二次下跌时最低点对应的MACD指标为红色柱状。
这样
,同时满足以上四个条件,第二次下跌时的最低点即为买入的最佳点
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA), COLORSTICK,LINETHICK2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1) and macd<0);
底背离:REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS
(DIFF,DEA) and macd>0;
8海豚张嘴技巧:
20日线上穿62日线,20日线趋势向上;且4日线在经过一个小幅拉高回调盘整后,
于20日,62日粘合;并在交叉点上放量,且超过5日甚至10均量;后市就容易形成
多头排列,快速拉升。
网上已有现成的,下面是两个,请选用
一,
MA62:=MA(CLOSE,62);
MA20:=MA(CLOSE,20);
var1:=slope(ma20,3)>0;
var2:=abs(slope(ma62,3))<0.19;
var3:=slope(ma62,3)>ref(slope(ma62,3),1);
v1:=ma62<ma20;
v2:=count(cross(ma20,ma62),10);
选股:c>ma62 and c<ref(close,1) and ref(close,1)<ref(close,2) and var1 and var2 and var3 and v1 and v2=1;
二,
A4:=MA(C,4);
A20:=MA(C,20);
A62:=MA(C,62);
CROSS(A20,A62)AND A20>REF(A20,1)AND COUNT(A4/A20>1.05,10)>5 AND ABS(A4/A20-1)<0.02 AND V/MA(V,5)>1.5;
9金足底技巧
谢谢无影无形提供的完整的金足底定义
一。
何谓“金足底”?
“底”——一定是跌到最低点,此时均线系统通常处于下跌趋势。
“足”——脚下的意思。
“金”——获利的表示。
连接起来就是:在最低点(脚底下的价位)买入的股票能让我们获利。
二。
形成特征:
1。
经过了一段时间的下跌。
2。
下跌导致均线系统走坏,出现破位。
3。
一定要在震荡后的第二个底部买进。
三。
把握:
1。
10日线勾头向上。
2。
20日线由下跌走平。
3。
成交阳量突破5日均量。
4。
当4日线向下时会压制股价的上升,假如发现股价在4日线之上,而4日线由下跌转为向上,即可判断会有上涨。
此时,若成交阳量大于5日均量,就该果断买进。
5。
当4日线下叉20日线,并折向下时,4日线与10日线粘合时,为好的买点。
6。
当4日线向下接近10日线,最好在4日线能够下叉10日线时,去买进股票,因为那时是形成前脚掌的时侯,是最好的买点。
MA4:=MA(C,4);
MA10:=MA(C,10);
MA20:=MA(C,20);
W1:=MA10>REF(MA10,1);
W2:=MA20>=REF(MA20,1);
W3:=V>MA(V,5);
XG:(MA4<MA20 AND MA4>=REF(MA4,1) AND C>MA4 AND W1 AND W2 AND W3);。