同花顺指标代码
同花顺公式源码
同花顺公式源码
同花顺公式源码指的是同花顺财经软件中使用的各种数学公式的程序代码。
这些公式包括技术指标计算公式、统计学方法、金融工程公式等等,用于辅助投资者进行股票、期货、外汇等金融市场的分析与决策。
例如,MACD指标计算公式的同花顺代码如下:
EMA(CLOSE,SHORT) AS SHORT_EMA;
EMA(CLOSE,LONG) AS LONG_EMA;
DIF:SHORT_EMA-LONG_EMA;
DEA:EMA(DIF,MACD);
MACD:(DIF-DEA)*2;
这段代码使用了指数平均数(EMA)的计算方法,通过输入不同的参数可以计算出不同时期的MACD指标。
同样地,同花顺还提供了多种其他技术指标的计算公式,比如KD指标、RSI指标、均线等等。
除了技术指标,同花顺还提供了多种常用统计学方法的公式,如回归分析、因子分析、聚类分析等等,以及金融工程中常用的期权定价模型、风险价值计算、股票期权策略等公式。
总之,同花顺公式源码是金融软件中非常重要的一部分,能够为投资者提供多方面、全方位的数据支持和分析工具。
同花顺 游资、主力状态代码
同花顺游资、主力状态代码买点:文字标注“始”。
卖点:文字标注“终”。
1、当有连续多个“始”,以第一个“始”做为买点,忽略后面的信号。
2、当有连续多个“终”,以第一个“终”做为卖点,忽略后面的信号。
3、最优指标成功率、收益率的统计也是以第一个“始”与第一个“终”做为统计点。
A:=IF((CLOSE > 126.32),(AMOUNT / 100000),VOL);主力:MA(A,4),LINETHICK0,color00FFFF;游资:MA(A,8),LINETHICK0,color00FF00;大户:MA(A,16),LINETHICK0,color0000FF;散户:MA(A,32),LINETHICK0,colorFFFF00;主力比例:CEILING(((主力 / (((主力 + 游资) + 大户) + 散户)) * 100)),LINETHICK0,color00FFFF;游资比例:CEILING(((游资 / (((主力 + 游资) + 大户) + 散户)) * 100)),LINETHICK0,color00FF00;大户比例:CEILING(((大户 / (((主力 + 游资) + 大户) + 散户)) * 100)),LINETHICK0,color0000FF;散户比例:CEILING(((散户 / (((主力 + 游资) + 大户) + 散户)) * 100)),LINETHICK0,colorFFFF00;警戒线:MA(A,180),colorFF00FF;STICKLINE((主力 > 0),0,主力,8,0),color0000FF; STICKLINE((主力 > 0),0,主力,7.8,0),color0018FF; STICKLINE((主力 > 0),0,主力,7.5,0),color001BFF; STICKLINE((主力 > 0),0,主力,7.3,0),color0022FF; STICKLINE((主力 > 0),0,主力,7,0),color0035FF; STICKLINE((主力 > 0),0,主力,6.8,0),color0041FF; STICKLINE((主力 > 0),0,主力,6.5,0),color0050FF; STICKLINE((主力 > 0),0,主力,6.3,0),color0059FF; STICKLINE((主力 > 0),0,主力,6,0),color0062FF; STICKLINE((主力 > 0),0,主力,5.7,0),color006CFF; STICKLINE((主力 > 0),0,主力,5.5,0),color007AFF; STICKLINE((主力 > 0),0,主力,5.3,0),color0080FF; STICKLINE((主力 > 0),0,主力,5,0),color0089FF; STICKLINE((主力 > 0),0,主力,4.5,0),color0095FF; STICKLINE((主力 > 0),0,主力,3.5,0),color009CFF; STICKLINE((主力 > 0),0,主力,3,0),color00ABFF; STICKLINE((主力 > 0),0,主力,2.5,0),color00C0FF; STICKLINE((主力 > 0),0,主力,1.5,0),color00D1FF; STICKLINE((主力 > 0),0,主力,1,0),color00EAFF; STICKLINE((主力 > 0),0,主力,0.7,0),color00FFFF; STICKLINE((游资 > 0),0,游资,8,0),color006800;STICKLINE((游资 > 0),0,游资,7.8,0),color007F00; STICKLINE((游资 > 0),0,游资,7,5),color008B00; STICKLINE((游资 > 0),0,游资,7,3),color008B00; STICKLINE((游资 > 0),0,游资,7,0),color009000; STICKLINE((游资 > 0),0,游资,6.8,0),color009500; STICKLINE((游资 > 0),0,游资,6.5,0),color009C00; STICKLINE((游资 > 0),0,游资,6.3,0),color00A300; STICKLINE((游资 > 0),0,游资,6,0),color00AB00; STICKLINE((游资 > 0),0,游资,5.7,0),color00AF00; STICKLINE((游资 > 0),0,游资,5.5,0),color00B900; STICKLINE((游资 > 0),0,游资,5.3,0),color00C000; STICKLINE((游资 > 0),0,游资,5,0),color00C100; STICKLINE((游资 > 0),0,游资,4.5,0),color00CA00; STICKLINE((游资 > 0),0,游资,3.5,0),color00D300; STICKLINE((游资 > 0),0,游资,3,0),color00DB00; STICKLINE((游资 > 0),0,游资,2.5,0),color00EA00; STICKLINE((游资 > 0),0,游资,1.5,0),color00FF00; STICKLINE((大户 > 0),0,大户,8,0),color102088; STICKLINE((大户 > 0),0,大户,7,0),color102099; STICKLINE((大户 > 0),0,大户,6,0),color1020AA; STICKLINE((大户 > 0),0,大户,5,0),color1020BB; STICKLINE((大户 > 0),0,大户,4,0),color1020CC;STICKLINE((大户 > 0),0,大户,3,0),color1020DD; STICKLINE((大户 > 0),0,大户,2,0),color1020EE; STICKLINE((大户 > 0),0,大户,1,0),color1020FF; STICKLINE((大户 > 0),0,大户,8,0),color102088; STICKLINE((大户 > 0),0,大户,7,0),color102099; STICKLINE((大户 > 0),0,大户,6,0),color1020AA; STICKLINE((大户 > 0),0,大户,5,0),color1020BB; STICKLINE((大户 > 0),0,大户,4,0),color1020CC; STICKLINE((大户 > 0),0,大户,3,0),color1020DD; STICKLINE((大户 > 0),0,大户,2,0),color1020EE; STICKLINE((大户 > 0),0,大户,1,0),color1020FF; STICKLINE((散户 > 0),0,散户,8,0),colorFF7700; STICKLINE((散户 > 0),0,散户,7,0),colorFF8800; STICKLINE((散户 > 0),0,散户,6,0),colorFF9900; STICKLINE((散户 > 0),0,散户,5,0),colorFFAA00; STICKLINE((散户 > 0),0,散户,4,0),colorFFBB00; STICKLINE((散户 > 0),0,散户,3,0),colorFFCC00; STICKLINE((散户 > 0),0,散户,2,0),colorFFDD00; STICKLINE((散户 > 0),0,散户,1,0),colorFFEE00; STICKLINE((散户 > 0),0,散户,8,0),colorFF7700; STICKLINE((散户 > 0),0,散户,7,0),colorFF8800; STICKLINE((散户 > 0),0,散户,6,0),colorFF9900;STICKLINE((散户 > 0),0,散户,5,0),colorFFAA00; STICKLINE((散户 > 0),0,散户,4,0),colorFFBB00; STICKLINE((散户 > 0),0,散户,3,0),colorFFCC00; STICKLINE((散户 > 0),0,散户,2,0),colorFFDD00; DRAWTEXT(CROSS(游资,主力),游资,'始'); DRAWTEXT(CROSS(主力,游资),主力,'终').。
同花顺自编指标
同花顺自编指标
同花顺自编指标是指在同花顺软件中用户可以自行编写的技术指标。
用户可以根据自己的需求和交易策略,使用同花顺提供的公式编辑器编写自己的指标。
同花顺自编指标的编写语言是一种类似于C语言的脚本语言,称为同花顺公式语言(THSFL)。
下面是一些常用的同花顺自编指标的示例:
1. 移动平均线(MA):
MA(CLOSE, N):计算收盘价的N日简单移动平均线
2. 指数移动平均线(EMA):
EMA(CLOSE, N):计算收盘价的N日指数移动平均线
3. 相对强弱指标(RSI):
RSI(CLOSE, N):计算收盘价的N日相对强弱指标
4. 布林带(BOLL):
BOLL(CLOSE, N, P):计算收盘价的N日布林带,P为布林带的标准差倍数
5. 随机指标(KDJ):
KDJ(HIGH, LOW, CLOSE, N, M1, M2):计算最高价、最低价和收盘价的N日随机指标,M1和M2为KDJ的平滑参数
6. MACD指标:
MACD(CLOSE, SHORT, LONG, M):计算收盘价的MACD指
标,SHORT、LONG和M分别为MACD的短期、长期和平滑参数
以上只是一些常见的示例,同花顺自编指标的编写还支持更多的计算方法和参数设置。
用户可以根据自己的需要,在同花顺软件中使用公式编辑器编写自己的指标,并进行相关的技术分析和交易决策。
同花顺指标
同花顺指标DRAWGBK(CLOSE>0,STRIP(RGB(0,150,220),RGB(0,0,60),0));MA5:MA(CLOSE,5);ma10:MA(C,10);MA20:MA(CLOSE,20);MA30:MA(CLOSE,30);ma60:MA(C,60);MA120:MA(CLOSE,120);MA250:MA(CLOSE,250),colorred;STICKLINE(C>1.099*REF(C,1),O,C,8,0),coloryellow;{C1:=EMA(INDEXC,500)/EMA(C,500);D4:=INDEXC/c1;}STICKLINE(C>1.099*REF(C,1),O,C,8,0),coloryellow;{上火车轨:=MA10>MA20 AND MA10>REF(MA10,1) AND MA20>REF(MA20,1) AND ma10-ma20>REF(ma10-ma20,1);下火车轨:=MA10<MA20 AND MA10<REF(MA10,1) AND MA20<REF(MA20,1) AND ma20-ma10>REF(ma20-ma10,1);FILLRGN(ma10,ma20,上火车轨,RGB(255,69,0),下火车轨,RGB(0,100,0)),LAYER7;}上火车轨:=MA20>MA30 AND MA20>REF(MA20,1) AND MA30>REF(MA30,1) AND ma20-ma30>REF(ma20-ma30,1);下火车轨:=MA20<MA30 AND MA20<REF(MA20,1) AND MA30<REF(MA30,1) AND ma30-ma20>REF(ma30-ma20,1);FILLRGN(ma20,ma30,上火车轨,RGB(255,69,0),下火车轨,RGB(0,100,0)),LAYER7;//{波动性突破}Var1:=(H-L)/L*100;Var2:=REF(Var1,1) ;Var3:=REF(Var1,2);Var4:=Var2-Var3;var5:=Var2+Var4;DRAWTEXT((C/REF(C,1)-1)>Var5 AND ma20>REF(ma20,1) AND C>O,L*0.95,'←波动突破'),colorred;//{金印组合}QH:=REF(H,2);QL:=REF(L,2);QO:=REF(O,2);QC:=REF(C,2);ZO:=REF(O,1);ZC:=REF(C,1);JYZHK:= ABS(QO-QC)/QO<0.02 AND ZO/ZC>1.03 AND ABS(O-C)/O<0.02 AND C>MA(C,30);JYZHV:=V<REF(V,1) ;JYZH:=JYZHK AND JYZHV;DRAWTEXT(JYZH,L,'←金印');//{金冠组合}JGZHK:=ABS(QO-QC)/QO<0.02 AND ZC/ZO>1.05 AND ABS(O-C)/O<0.02 AND C>MA(C,30);JGZHV:=REF(V,1)>=2*REF(V,2);JGZH:=JGZHK AND JGZHV;DRAWTEXT(JGZH,H*1.02,'←金冠'),coloryellow;DRAWTEXT(VOL=HHV(VOL,20) ,C ,'←-------量能平台'),coloryellow;C1:=EMA(INDEXC,500)/EMA(C,500);D5:MA(INDEXC/c1,5);D20:MA(INDEXC/c1,20);PARTLINE(D20,D20>REF(D20,1),RGB(255,0,0),D20<REF(D20, 1),RGB(0,255,50)),linethick2;{FILLRGN(D5,D20,D5>D20,RGB(255,0,0),D5<D20,RGB(0,250, 0)),LAYER7;}FILLRGN(D5,D20,D5>D20,RGB(150,0,50),D5<D20,RGB(0,30,1 50)),LAYER7;//{红柱}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,Color0344BC;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,Color0453E6;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,Color1A68FB;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,Color4484FB;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,Color5992FB;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,Color5992FB;//{阴柱}STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),Color00AA00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),Color00D500;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),Color00FF00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),Color2BFF2B;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),Color40FF40;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),Color40FF40;。
同花顺必涨指标,真实可用
同花顺必涨指标,真实可用VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;VARA:=BARSCOUNT(CLOSE);VARB:=VAR8<20 AND VAR9<23 AND VARA>35;VARC:=VARB AND COUNT(VARB,1)=1;VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);VARE:=EMA(VARD,5);VARF:=TROUGHBARS(3,6,1)<4 AND CROSS(VARD,VARE);VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR1E:=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));VAR21:=CROSS(VAR1E,LOW);选股买点: VAR10, coloryellow;组合买: (VAR11+VAR13+VAR15+VAR17), colorred;组合卖: (VAR12+VAR14+VAR16+VAR18), colorgreen;黑马线: IF(MONTH<2008 AND VAR1B>0.1,VAR1C,0)*1, COLOR6699CC;黑马信号介入点: 选股买点 AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5<2 AND VAR6=0, COLORFFFF99;DRAWTEXT(VAR13,0.6,'●'), colorred;DRAWICON(组合买,组合买,1);DRAWICON(组合卖,组合卖,9);DRAWTEXT(黑马信号介入点>0,4.5,'●我的黑马介入点'), colorred;DRAWICON(选股买点>0,4.2,1);DRAWTEXT(选股买点 AND VARF AND VARC,2.8,' 30%下单莫错过!'), colormagenta;DRAWTEXT(VAR18,3,'空仓'), colorgreen;DRAWTEXT(VAR20<-110 AND 选股买点>0,2,'选股买点'), coloryellow;DRAWTEXT(VAR17,1.3,'发现黑马'), COLORFF6600;DRAWTEXT(选股买点AND VAR20<-100 AND VARF AND VARC>0,4.1,'★组合5分钟线选股思路获利5%以上'), colorred;-10;。
同花顺 python指标
同花顺 python指标同花顺是一款非常知名的股票行情分析软件,具有强大的数据分析和指标计算功能。
在同花顺中,有许多常用的指标可以帮助投资者进行股票的技术分析,以辅助投资决策。
本文将介绍同花顺中几个常用的Python指标。
一、均线指标均线是股市中最常用的技术指标之一,用来平滑股价的波动,以便更好地观察股价的走势。
同花顺中的Python指标可以帮助我们计算简单移动平均线(MA)和指数移动平均线(EMA)。
简单移动平均线是将一段时间内的股价相加,然后除以这段时间的天数,得到的结果就是均线。
同花顺中的Python指标可以通过以下代码计算简单移动平均线:```pythonma = MA(close, timeperiod=20, matype=0)```指数移动平均线是对股价进行加权,最近的数据权重较大。
同花顺中的Python指标可以通过以下代码计算指数移动平均线:```pythonema = EMA(close, timeperiod=20)二、相对强弱指标相对强弱指标(RSI)是一种常用的股票技术分析工具,用来衡量股价的涨跌幅度,判断股票的买卖信号。
同花顺中的Python指标可以帮助我们计算RSI指标。
RSI指标的计算公式较为复杂,但在同花顺中的Python指标可以通过以下代码简单实现:```pythonrsi = RSI(close, timeperiod=14)```三、MACD指标MACD指标是一种常用的股票技术分析指标,用来判断股票的买入和卖出信号。
同花顺中的Python指标可以帮助我们计算MACD指标。
MACD指标由快速线(DIF)、慢速线(DEA)和MACD柱线组成。
同花顺中的Python指标可以通过以下代码计算MACD指标:```pythonmacd, signal, hist = MACD(close, fastperiod=12, slowperiod=26, signalperiod=9)四、布林带指标布林带指标是一种常用的股票技术分析指标,用来判断股票的超买和超卖信号。
同花顺炒股指标代码
用法说明:1、有箭头向上显示,显示资金进场,能通过图形临控资金的力度,提前预知主力拉升票:Var1:=EMA(HHV(HIGH,500),21);Var2:=EMA(HHV(HIGH,250),21);Var3:=EMA(HHV(HIGH,90),21);Var4:=EMA(LLV(LOW,500),21);Var5:=EMA(LLV(LOW,250),21);Var6:=EMA(LLV(LOW,90),21);Var7:=EMA((Var4*0.96+Var5*0.96+Var6*0.96+Var1*0.558+Var2* 0.558+Var3*0.558)/6,21);Var8:=EMA((Var4*1.25+Var5*1.23+Var6*1.2+Var1*0.55+Var2*0. 55+Var3*0.65)/6,21);Var9:=EMA((Var4*1.3+Var5*1.3+Var6*1.3+Var1*0.68+Var2*0.68 +Var3*0.68)/6,21);VarA:=EMA((Var7*3+Var8*2+Var9)/6*1.738,21);VarB:=REF(LOW,1);VarC:=SMA(ABS(LOW-VarB),3,1)/SMA(MAX(LOW-VarB,0),3,1)*100; VarD:=EMA(IF(CLOSE*1.35<=VarA,VarC*10,VarC/10),3);VarE:=LLV(LOW,30);VarF:=HHV(VarD,30);Var10:=IF(MA(CLOSE,58),1,0);资金入场: EMA(IF(LOW<=VarE,(VarD+VarF*2)/2,0),3)/618*Var10;资金入场: IF(资金入场>0,资金入场,0),STICK,linethick2, COLOR0000ff;今量: 资金入场;a1:IF(资金入场>0,今量*1.2,0),STICK,linethick5, COLOR0000ff;a2:IF(资金入场>0,今量*0.8,0),STICK,linethick5, COLOR0066ff;a3:IF(资金入场>0,今量*0.6,0),STICK,linethick5, COLOR0099ff;a4:IF(资金入场>0,今量*0.4,0) ,STICK,linethick5,COLOR00ccff;a5:IF(资金入场>0,今量*0.2,0) ,STICK,linethick5,COLOR00ffff;一. 操盘神手五彩K线主图源码MA5:MA(CLOSE,5),ColorCCCCCC;MA10:MA(CLOSE,10),Color00BBBB;MA21:MA(CLOSE,21),Color00AA00;MA30:MA(CLOSE,30),Color990099;MA60:MA(CLOSE,60),Color000088;MA120:MA(CLOSE,120),Color777700;买线:=ZIG(3,10);卖线:=MA(买线,3);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT(bu,L*0.99,'买'),linethick1,color00aaff; DRAWTEXT(sel,H*1.01,'卖'),linethick1,color00ff00;DRAWTEXT("X09A.T">0,L*0.99,'B'),linethick1,colorFFffff; DRAWTEXT("X09A.T1">0,L*0.99,'B'),linethick1,color0000ff;STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),color0000CC; STICKLINE(买线>=卖线,CLOSE,OPEN,7,0),color0000CC;STICKLINE(买线<卖线,CLOSE,OPEN,7,0),colorCCCC00; STICKLINE(买线<卖线,LOW,HIGH,0.1,0),colorCCCC00;STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,7,0),color00AAFF;STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,7,0),color00DD00;指标用法:可直接按照买卖点做参考操作,红柱区域表示为股价上涨阶段(其中的绿柱由红色点缀代表是正常调整),绿柱区域表示为股价下跌阶段(其中的红柱由绿色点缀代表是诱多行为),指标镶入步骤:工具→公式管理→常用→五彩K线→新建→名称和描述→粘贴指标源码→确定四.神奇捉底买卖王指标源码V AR8:=VOL>2*MA(VOL,30);V AR9:="DMI.ADX"(10,6);V ARA:="DMI.ADXR"(10,6);V ARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;V ARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);V ARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CL OSE,10),MA(CLOSE,5)));V ARE:=0-"MACD.DIFF"(7,21,3);V ARF:=TROUGHBARS(3,15,1)<4;V AR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);V AR11:=IF(VARF=1,50,0);多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*1 00,3),colorwhite;0,colorred;STICKLINE(FILTER(V ARF=1,5) AND 多空<-10,50,0,15,0),colorf00ff0;STICKLINE(FILTER(V ARF=1,5),50,0,8,0),coloryellow;DRAWTEXT(FILTER(V ARF=1,3),25,'大量★买入'),colorred ;STICKLINE(多空<-10,0,多空,0.85,0),coloryellow;STICKLINE(多空>10,0,多空,0.95,0),colorred;指标用法:可直接按照本指标给出的大量☆买入点参考操作。
我常用的几个指标(同花顺)
sg:=mmb>0 AND REF(mmb,1)<mmb;
上攻周期:COUNT(sg,5),colorwhite;
FILLRGN(3,上攻周期,上攻周期>3,RGB(200,0,120));
jsc:=上攻周期<1;
dbqd:=FILTER(COUNT(jsc,5)>3 AND NOT(jsc),10);
STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),color0000CC;
STICKLINE(买线>=卖线,CLOSE,OPEN,7,0),color0000CC;
STICKLINE(买线<卖线,CLOSE,OPEN,7,0),colorCCCC00;
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));
STICKLINE((VARC=1),(-14),0,4,0),Color0000FF;
STICKLINE((((AA12 >= AA10) AND (BB10 <= 1)) AND (BB10 <= 1)),AA10,AA12,4,0),COLOR00FF00;
X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
DRAWTEXT(sel,H*1.01,'卖'),linethick1,color00ff00;
同花顺共振指标源代码
同花顺共振指标源代码可以根据技术指标的公式进行编写,这里提供一个简单的示例代码:# 定义变量M = 10 # 计算均线的周期N1 = 21 # RSI指标的周期N2 = 5 # 短J指标的周期# 计算技术指标def calculate_indicator(high, low, close):typ = (high + low + close) / 3cc1 = (typ - ma(typ, M)) / (0.015 * avedev(typ, M))c1 = sma(cc1, 3, 1)c2 = sma(c1, 3, 1)c3 = 3 * c1 - 2 * c2cb1 = ema(c3, 5)cb2 = ref(cb1, 1)cc2 = (typ - ma(typ, M)) / (0.015 * avedev(typ, M))rsi1 = sma(max(close - ref(close, 1), 0), N1, 1) / sma(abs(close - ref(close, 1)), N1, 1) * 100rsi = rsi1 - 50r1 = sma(rsi, 3, 1)d1 = sma(r1, 3, 1)j1 = 3 * r1 - 2 * d1rr1 = ema(j1, 5)rr2 = ref(rr1, 1)rr = rr1 > rr2rsv = (close - min(low, ref(low, N2))) / (max(high, ref(high, N2)) - min(low, ref(low, N2))) * 100k = sma(rsv, 3, 1)k1 = k - 50sma_k1 = sma(k1, 3, 1)d2 = sma_k1j2 = 3 * sma_k1 - 2 * d2bb1 = ema(j2, 5)bb2 = ref(bb1, 1)return cc1, rsi, rr, k, bb1 # 可以根据需要返回其他指标的值这个示例代码中,calculate_indicator函数用于计算技术指标,包括TYP、CC1、RSI、RR和KDJ等。
同花顺买卖点指标
同花顺买卖点指标VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100; VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100; VARA:=BARSCOUNT(CLOSE);VARB:=VAR8<20 AND VAR9<23 AND VARA>35;VARC:=VARB AND COUNT(VARB,1)=1;VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);VARE:=EMA(VARD,5);VARF:=TROUGHBARS(3,6,1)<4 AND CROSS(VARD,VARE);VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR1E:=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));VAR21:=CROSS(VAR1E,LOW);选股买点:VAR10,coloryellow;组合买:(VAR11+VAR13+VAR15+VAR17),colorred;组合卖:(VAR12+VAR14+VAR16+VAR18),colorgreen;黑马线:IF(VAR1B>0.1,VAR1C,0)*1;黑马信号介入点:选股买点 AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5<2 AND VAR6=0,COLORFFFF99; DRAWTEXT(VAR13,0.6,'●'),colorred;DRAWICON(组合买,组合买,1);DRAWICON(组合卖,组合卖,9);DRAWTEXT(黑马信号介入点>0,4.5,'●我的黑马介入点'),colorred;DRAWICON(选股买点>0,4.2,1);DRAWTEXT(选股买点 AND VARF AND VARC,2.8,' 30%下单莫错过!'),colormagenta;DRAWTEXT(VAR18,3,'空仓'),colorgreen;DRAWTEXT(VAR20<-110 AND 选股买点>0,2,'选股买点'),coloryellow;DRAWTEXT(VAR17,1.3,'发现黑马'),COLORFF6600;DRAWTEXT(选股买点 AND VAR20<-100 AND V ARF AND VARC>0,4.1,'★组合5分钟线选股思路获利5%以上'),colorred;。
同花顺准确实用指标源码(转)
同花顺准确实⽤指标源码(转)⼀. 操盘神⼿五彩K线主图源码MA5:MA(CLOSE,5),ColorCCCCCC;MA10:MA(CLOSE,10),Color00BBBB;MA21:MA(CLOSE,21),Color00AA00;MA30:MA(CLOSE,30),Color990099;MA60:MA(CLOSE,60),Color000088;MA120:MA(CLOSE,120),Color777700;买线:=ZIG(3,10);卖线:=MA(买线,3);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT(bu,L*0.99,'买'),linethick1,color00aaff;DRAWTEXT(sel,H*1.01,'卖'),linethick1,color00ff00;DRAWTEXT("X09A.T">0,L*0.99,'B'),linethick1,colorFFffff;DRAWTEXT("X09A.T1">0,L*0.99,'B'),linethick1,color0000ff;STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),color0000CC;STICKLINE(买线>=卖线,CLOSE,OPEN,7,0),color0000CC;STICKLINE(买线<卖线,CLOSE,OPEN,7,0),colorCCCC00;STICKLINE(买线<卖线,LOW,HIGH,0.1,0),colorCCCC00;STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,7,0),color00AAFF;STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,7,0),color00DD00;指标⽤法:可直接按照买卖点做参考操作,红柱区域表⽰为股价上涨阶段(其中的绿柱由红⾊点缀代表是正常调整),绿柱区域表⽰为股价下跌阶段(其中的红柱由绿⾊点缀代表是诱多⾏为),指标镶⼊步骤:⼯具→公式管理→常⽤→五彩K线→新建→名称和描述→粘贴指标源码→确定......................................................................................................................⼆. 主⼒多空副图指标源码MAV:=(C*2+H+L)/4;SK:= EMA(MAV,13) - EMA(MAV,34);SD := EMA(SK,5);中轴:0;空⽅主⼒ : (-2*(SK-SD))*3.8,colorgreen;多⽅主⼒ : (2*(SK-SD))*3.8,colorred;指标⽤法:多⽅主⼒线从低位向上掉头且成交量有所放⼤,则为买⼊信号。
同花顺指标代码
MACD指标DIFF :EMA(CLOSE,SHORT) —EMA(CLOSE,LONG);DEA : EMA(DIFF,M);MACD : 2*(DIFF—DEA);Zero : 0;KDJ指标RSV=(CLOSE—LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;a=SMA(RSV,M1,1);b=SMA(a,M2,1);e=3*a—2*b;K:a;D:b;J:e;精准买卖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—LLV(L,55))/(HHV(H,55)—LLV(L,55))*100,5,1),3,1);趋势线:EMA(V11,3);V12:=(趋势线—REF(趋势线,1))/REF(趋势线,1)*100;准备现金: 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;短线窥测VAR1:=(CLOSE+HIGH+LOW)/3;VAR2:=EMA(VAR1,10);VAR3:=REF(VAR2,1);绿探底震仓:IF(VAR2,10,DRAWNULL),colorgreen,LINETHICK9;红买:IF(VAR2〉VAR3,10,DRAWNULL), colorred,LINETHICK9;蓝卖: IF(VAR2〈VAR3,10,DRAWNULL),COLORFFFF00,LINETHICK9;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;上穿买:SMA(RSV,3,1),colorred;下穿卖:SMA(上穿买,3,1),COLORFFFF00;缠背驰var1:=MA(C,p1)—MA(C,P2);IF((var1>=0),var1,0),STICK,colorred;IF((var1<0),var1,0),STICK,colorgreen;正:=IF((var1〉=0),var1,0),colorred;负:=IF((var1〈0),var1,0),colorgreen;zheng:=0;fu:=0;var2:=0;i:=0;IF (var1>0) THEN BEGINvar2:=var1;WHILE(var2〉0)DO BEGINzheng:=zheng+var2;i:=i+1;var2:=REF(var1,i);IF (i〉P3)THEN BREAK;ENDENDELSEBEGINvar2:=var1;WHILE(var2<0)DOBEGINfu:=fu+var2;i:=i+1;var2:=REF(var1,i);IF(i>P3) THEN BREAK;ENDEND{涨势面积和:zheng;}涨势平均力度:zheng*p4/i,coloryellow;{跌势面积和:fu;}跌势平均力度:fu*p4/i,colorwhite;中轴:0;指点未来VAR1:=((CLOSE - LLV(LOW,15))/(HHV(HIGH,15) - LLV(LOW,15)))*(100); VAR2:=REVERSE(VAR1);VAR3:=SMA(VAR1,5,1);K:=SMA(VAR3,3,1);D:=SMA(K,3,1);85,STICK,Linethick7,ColorFF0000;DRAWTEXT(CROSS(K,D) AND (D 〈18),15,’买'),Color00FF00;DRAWTEXT(CROSS(D,K)AND (D 〉75),85,'卖’),ColorFFFFFF;STICKLINE((K >= D),K,D,6,0),Color0000A8;STICKLINE((K 〉= D),K,D,5,0),Color0000C0;STICKLINE((K 〉= D),K,D,4,0),Color0000E0;STICKLINE((K 〉= D),K,D,3,0),Color0000F0;STICKLINE((K 〉= D),K,D,2,0),Color0000D0;STICKLINE((K 〉= D),K,D,1,0),Color8080FF;STICKLINE((K 〈= D),K,D,6,0),Color008800;STICKLINE((K 〈= D),K,D,5,0),Color009900;STICKLINE((K 〈= D),K,D,4,0),Color00AA00;STICKLINE((K 〈= D),K,D,3,0),Color00BB00;STICKLINE((K <= D),K,D,2,0),Color00CC00;STICKLINE((K <= D),K,D,1,0),Color00DD00;见好就收波段操作input:N(1,110,15);生命线:98,linethick1,coloryellow;生命禁区:95,linethick1,colorred;股价泥潭:20,linethick1,colorblue;生死线:50,linethick2,colorwhite;C0:=(H+L+C)/3;a1:=HHV(C0,n);a2:=LLV(C0,n);a3:=a1—a2;a4:=EMA((C0—a2)/a3,2)*100;b1:=HHV(C0,4*n);b2:=LLV(C0,4*n);b3:=b1—b2;b4:=EMA((C0—b2)/b3,2)*100;C1:=HHV(C0,16*n);C2:=LLV(C0,16*n);C3:=C1-C2;C4:=EMA((C0—C2)/C3,2)*100;短期:a4,colorgreen,linethick1;中期:b4,coloryellow,linethick2;长期:C4,colorred,linethick3;DRAWICON(CROSS(生命禁区,短期)AND REF(短期,1)>短期,短期*1。
同花顺炒股软件指标代码大全(2016最新版本)
常用指数代码 0 00 03(F3) 04(F4) 399006 000300 999 666 711 800 06(F6) 006 90 91 92 93 94 95 1 2 3 4 5 6 7 8 9 80 81 82 83 84 85 86 87 88 89 综合首页 沪深指数对比 上证指数 深证成指 创业板指 沪深300指数 重要指数 沪深指数 期货综合屏 基本外汇 回到自选股 自选股同列 多窗看盘 主力大单 阶段统计 强弱分析 板块分析 指标排行
个股K线分析操作
光标快速右移10个周期 光标快速左移10个周期 光标快速右移30个周期 光标快速左移30个周期 锁定光标时间轴位置向上翻页 个股历史成交 量价分布 K线图与分时图切换 分钟线与周线年线之间切换 牛叉诊股 公司资讯 公司基本资料 星空图 超级盘口 用大字体显示股价 多周期图 财务图示 两股对比 向前复权 向后复权 四股K线 九股K线 十六股K线 缩放右侧单元表 一图组合 二图组合 三图组合 四图组合 五图组合 六图组合 九图组合
其他快捷代码 399001 399002 399003 399004 399005 399006 399007 399008 399009 399010 399011 399012 399013 399014 399015 深证成指 深证成指R 成份B指 深证100R 中小板指(002中小板个股) 创业板指(300创业板个股) 深证300 中小300 深证200 深证700 深证1000 创业300 深市精选 无 中小创新 F1 F2 F5 F8 F9 F10 F11 XKT Ctrl+T Ctrl+F6 其它快捷键 Esc 返回上一画面 返回上一画面 加入自选股 从自选股中删除 自动翻页 股灵通 画线 查看快捷键列表 输出到图片 Alt+1 Ctrl+N 新建 保存页面 全屏显示 调出信息地雷内容 锁定主图光标时间轴 快速隐藏(默认) 这是什么?(跟随帮助) 退出程序 显示/隐藏K线页均线 Alt+2 Alt+3 Alt+4 Alt+5 Alt+6 Alt+9 Ctrl+S Ctrl+W 空格键 Scroll Lock Alt+Z Shift+F1 Alt+F4 Tab Backspace Insert Delete Ctrl+A Ctrl+G Ctrl+X(HX) Ctrl+K Ctrl+M Ctrl+F8 Ctrl+F11 Ctrl+L Ctrl+Q Ctrl+B Ctrl+4 Ctrl+9 Ctrl+6 Ctrl+Z
同花顺dde大单净量指标代码
同花顺dde大单净量指标代码同花顺(DDE)大单净量指标是投资者非常关注的一个技术指标,它通过统计买卖双方大单的净量,为投资者提供了一个判断市场趋势的重要参考。
DDE指标以一定的时间周期内(一般为5天、10天或20天)的大单买入净量和大单卖出净量之差作为计算依据。
大单买入净量表示在该周期内大单买入交易的总量,而大单卖出净量则表示大单卖出交易的总量。
通过计算这两者的差值,我们可以得到DDE指标的数值。
DDE指标的计算公式如下:DDE = ∑(大单买入净量) - ∑(大单卖出净量)DDE指标的数值可以正值、负值或接近零。
当DDE为正值时,表示在该时间周期内买方力量较强,市场呈现出积极的买入情绪。
反之,当DDE为负值时,说明卖方力量相对较强,市场呈现出悲观的卖出情绪。
而当DDE接近零时,表示买卖双方力量相对平衡,市场处于横盘整理的状态。
DDE指标在股票市场中的应用非常广泛。
首先,投资者可以通过观察DDE指标的数值变化来判断市场的短期走势。
当DDE指标的数值持续为正,并且呈现上升趋势时,这意味着市场买入氛围浓厚,投资者可以积极参与买入操作。
相反,当DDE指标的数值持续为负,并且呈现下降趋势时,这表明市场处于卖出氛围较浓的状态,投资者应慎重考虑是否减仓或离场。
其次,DDE指标还可以用于判断股票个股的强弱。
当某只股票的DDE指标保持较高并持续上升时,说明这只股票在市场中的买盘力量较强,表明市场对该股票的看好程度较高,投资者可以适当加仓。
相反,当某只股票的DDE指标持续为负并且下降时,说明该股票的卖盘力量较强,市场对该股票的信心下降,投资者应慎重处理或减仓离场。
最后,DDE指标还可以与其他技术指标结合使用,以提高分析的准确性。
例如,与均线指标结合使用,可以更好地捕捉市场的短期买卖信号;与MACD指标结合使用,可以更准确地判断股票的买卖时机。
总之,同花顺(DDE)大单净量指标是一个非常重要的技术指标,它通过统计大单买入净量和大单卖出净量之差,为投资者提供了判断市场趋势和个股强弱的重要参考。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
MACD指标DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA : EMA(DIFF,M);MACD : 2*(DIFF-DEA);Zero : 0;KDJ指标RSV=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;a=SMA(RSV,M1,1);b=SMA(a,M2,1);e=3*a-2*b;K:a;D:b;J:e;精准买卖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-LLV(L,55))/(HHV(H,55)-LL V(L,55))*100,5,1),3,1);趋势线: EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金: 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;短线窥测VAR1:=(CLOSE+HIGH+LOW)/3;VAR2:=EMA(VAR1,10);VAR3:=REF(VAR2,1);绿探底震仓:IF(VAR2,10,DRAWNULL),colorgreen,LINETHICK9;红买: IF(VAR2>VAR3,10,DRAWNULL), colorred,LINETHICK9;蓝卖: IF(VAR2<VAR3,10,DRAWNULL),COLORFFFF00,LINETHICK9; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;上穿买:SMA(RSV,3,1),colorred;下穿卖:SMA(上穿买,3,1),COLORFFFF00;缠背驰var1:=MA(C,p1)-MA(C,P2);IF((var1>=0),var1,0),STICK,colorred;IF((var1<0),var1,0),STICK,colorgreen;正:=IF((var1>=0),var1,0),colorred;负:=IF((var1<0),var1,0),colorgreen;zheng:=0;fu:=0;var2:=0;i:=0;IF (var1>0) THEN BEGINvar2:=var1;WHILE (var2>0) DO BEGINzheng:=zheng+var2;i:=i+1;var2:=REF(var1,i);IF (i>P3) THEN BREAK;ENDENDELSEBEGINvar2:=var1;WHILE (var2<0) DOBEGINfu:=fu+var2;i:=i+1;var2:=REF(var1,i);IF (i>P3) THEN BREAK;ENDEND{涨势面积和:zheng;}涨势平均力度:zheng*p4/i,coloryellow;{跌势面积和:fu;}跌势平均力度:fu*p4/i,colorwhite;中轴:0;指点未来VAR1:=((CLOSE - LLV(LOW,15))/(HHV(HIGH,15) - LLV(LOW,15)))*(100); VAR2:=REVERSE(VAR1);VAR3:=SMA(VAR1,5,1);K:=SMA(VAR3,3,1);D:=SMA(K,3,1);85,STICK,Linethick7,ColorFF0000;DRAWTEXT(CROSS(K,D) AND (D < 18),15,'买'),Color00FF00; DRAWTEXT(CROSS(D,K) AND (D > 75),85,'卖'),ColorFFFFFF; STICKLINE((K >= D),K,D,6,0),Color0000A8;STICKLINE((K >= D),K,D,5,0),Color0000C0;STICKLINE((K >= D),K,D,4,0),Color0000E0;STICKLINE((K >= D),K,D,3,0),Color0000F0;STICKLINE((K >= D),K,D,2,0),Color0000D0;STICKLINE((K >= D),K,D,1,0),Color8080FF;STICKLINE((K <= D),K,D,6,0),Color008800;STICKLINE((K <= D),K,D,5,0),Color009900;STICKLINE((K <= D),K,D,4,0),Color00AA00;STICKLINE((K <= D),K,D,3,0),Color00BB00;STICKLINE((K <= D),K,D,2,0),Color00CC00;STICKLINE((K <= D),K,D,1,0),Color00DD00;见好就收波段操作input:N(1,110,15);生命线:98,linethick1,coloryellow;生命禁区:95,linethick1,colorred;股价泥潭:20,linethick1,colorblue;生死线:50,linethick2,colorwhite;C0:=(H+L+C)/3;a1:=HHV(C0,n);a2:=LLV(C0,n);a3:=a1-a2;a4:=EMA((C0-a2)/a3,2)*100;b1:=HHV(C0,4*n);b2:=LLV(C0,4*n);b3:=b1-b2;b4:=EMA((C0-b2)/b3,2)*100;C1:=HHV(C0,16*n);C2:=LLV(C0,16*n);C3:=C1-C2;C4:=EMA((C0-C2)/C3,2)*100;短期:a4,colorgreen,linethick1;中期:b4,coloryellow,linethick2;长期:C4,colorred,linethick3;DRAWICON(CROSS(生命禁区,短期) AND REF(短期,1)>短期,短期*1.1,11);DRAWTEXT(CROSS(生命禁区,短期) AND REF(短期,1)>短期,短期*1.1,'←卖'), colorcyan;DRAWICON(CROSS(生命线,短期) AND REF(短期,1)>短期,短期*1.2,12);DRAWTEXT(CROSS(生命线,短期) AND REF(短期,1)>短期,短期*1.2,'←卖'), colorcyan;DRAWTEXT(CROSS(短期,生命禁区),85,'警惕!!'),colorwhite;DRAWTEXT(CROSS(中期,生命禁区),95,'减磅'),ColorFF6800;DRAWTEXT(CROSS(长期,生命禁区),100,'出局'),colormagenta;DRAWICON(CROSS(短期,生命禁区),85,4);DRAWICON(CROSS(中期,生命禁区),95,8);DRAWICON(CROSS(长期,生命禁区),100,3);--------------------------------------------------------------------------吸筹快慢N:=9;M1:=3;M2:=3;P:=9;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1),colorred,LINETHICK2;D:=SMA(K,M2,1),COLOR00FF00;JJ:=P*(3*D-2*K),COLOR00FF00;J:=((3 * K) - (2 * D));MAIRU:= CROSS(K,D) AND K<20;MAICHU:= CROSS(D,K) AND D>80;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);吸筹:STICKLINE(VAR9>-120,0,VAR9,6,1),COLORF00FF0;快线:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,COLORFF937F;慢线:SMA(快线,M1,1),colorred,LINETHICK2;空:SMA(慢线,M2,1),COLOR00FF00;牛股:IF(BARSLAST(CROSS(慢线,空))<P AND BARSLAST(CROSS(空,慢线))<P AND CROSS(慢线,空) AND 慢线<20,90,0),STICK,COLORFF937F;STICKLINE(牛股,0,90,6,1),LINETHICK4,STICK,COLORFF937F;BB:=IF(BARSLAST(CROSS(慢线,快线))>=3AND CROSS(快线,慢线) AND慢线<30,20,0);买:STICKLINE(BB,0,20,7,1),coloryellow;AA:=IF(BARSLAST(CROSS(快线,慢线))>=4AND CROSS(慢线,快线) AND快线>50,20,0);卖:STICKLINE(AA,80,100,7,1),COLOR00FF00;DRAWTEXT(CROSS(快线,慢线),快线,'始');DRAWTEXT(CROSS(慢线,快线),慢线,'终');同花顺逃顶王VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);阶段卖出: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓卖出: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),colorred;STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00;加速度:=(动力线-REF(动力线,1))*5;底部: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);数值:动力线,COLORA8A8A8;速度:加速度,colorred;买卖点雷达LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;卖点雷达:=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2;DRAWTEXT(CROSS(85,RSI1),20,'顶'),COLOR00FF00;STICKLINE(卖点雷达,0,20,3,0),COLOR00FF00;VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;VARD:=BARSCOUNT(CLOSE);买点雷达:(VARB< 20AND VARC< 25AND VARD> 50AND AR<70)*30,LINETHICK2,COLOR0078FF; BT1:=CROSS(RSI1,25);DRAWTEXT(BT1,-80,'底'),COLOR0000FF;STICKLINE(BT1,-100,-80,3,0),COLOR0000FF;主力:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK1,COLOR0000FF;散户:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORC87800;BT2:=CROSS(主力,散户) AND主力<-10;DRAWICON(CROSS(RSI1,25),主力,26);DRAWICON(CROSS(主力,散户) AND主力<-10,主力,23);BT:=FILTER(COUNT(BT1 OR BT2,3)>=2,3);STICKLINE(BT,0,50,4,1),COLOR0000FF;DRAWTEXT(BT,50,'金底'),COLOR0000FF;STICKLINE(BT2,0,20,3,0),COLORFF00FF;DRAWTEXT(BT2,20,'升'),COLORFF00FF;底红顶绿LC:=REF(CLOSE,1);RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10); HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);PDI:=((DMP * 100) / TR);MDI:=((DMM * 100) / TR);ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);AV:=(RSI5 + ADX);DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);0,COLORFF00FF;WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); NEWVOL:=(RSI5 - WR10);阶段底部:=(AV + NEWVOL);STICKLINE((阶段底部>= 0),0,阶段底部,0.3,1),LINETHICK2,COLORCC6600; STICKLINE((阶段底部< 0),0,阶段底部,0.8,1),LINETHICK6,colorred;趋势线:LLV(阶段底部,1),COLORFFFFFF;STICKLINE((趋势线>230 ),250,趋势线,0.8,1),LINETHICK6,colorgreen;买点:IF((阶段底部< 0),1,0);卖点:IF((趋势线>230),1,0);230,COLORFFFFFF;突破信号N:=19;VAR1:=HHV(HIGH,N);VAR2:=LLV(LOW,N);阻力线:EMA((CLOSE-VAR2)/(VAR1-VAR2),21)-0.5,COLORF0F000,LINETHICK2; 操作线:EMA((CLOSE-VAR2)/(VAR1-VAR2),5)-0.5,colorred,LINETHICK2; DRAWTEXT(CROSS(操作线,阻力线) AND阻力线<0.1,阻力线,'突破'),coloryellow; DRAWTEXT(CROSS(阻力线,操作线) AND阻力线>0.25,阻力线,'破位'),colorgreen; 红绿棒:(操作线-阻力线),COLORSTICK;买卖机会VAR1:=EMA(C,2);VAR2:=EMA(SLOPE(C,21)*20+C,42);VAR3:=CROSS(VAR1,VAR2);VAR4:=CROSS(VAR2,VAR1);VAR5:MA(C,20),colorgreen,LINETHICK1;CAR6:MA(C,10),COLORFA05FF,LINETHICK2;DRAWTEXT(VAR3,LOW*0.95,'买'),coloryellow,LINETHICK3;DRAWTEXT(VAR4,HIGH*1.028,'卖'),colorgreen,LINETHICK3;STICKLINE(VAR1=VAR2,LOW,HIGH,0,0),colorred;STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2,0),colorred;STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2,0),colorred;STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2,0),colorred;STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2,0),colorred;STICKLINE(VAR1<VAR2,CLOSE,OPEN,2,0),colorgreen;STICKLINE(VAR1<VAR2,CLOSE,OPEN,2,0),colorgreen;STICKLINE(VAR1<VAR2,CLOSE,OPEN,2,0),colorgreen;STICKLINE(VAR1<VAR2,CLOSE,OPEN,2,0),colorgreen;STICKLINE(VAR1<VAR2,LOW,HIGH,0,0),colorgreen;买卖奇准3来势线: EMA(CLOSE,7)-EMA(CLOSE,21),coloryellow;福星: EMA(来势线,7), COLORSTICK,colorred;VAR1:=CLOSE/REF(LLV(LOW,35),5)< 1;决策: IF(VAR1,0.5,0), STICK,coloryellow;必买: IF(TROUGHBARS(3,15,1)=0AND HIGH>LOW+0.01,1,-1),colorred ,LINETHICK1 ;必卖: IF(PEAKBARS(3,15,1)=1,1,2),colorgreen,LINETHICK1;趋势线: (EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,colorwhite;逃顶线: EMA(CLOSE/REF(HHV(CLOSE,7),50),1),colorcyan ,LINETHICK1 ;买卖奇准A6买卖奇准先锋:CLOSE,colorred;VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);绝对值昨天收盘价日均线VAR2:=HIGH-REF(HIGH,1);VAR3:=REF(LOW,1)-LOW;VAR4:=SUM(IF(VAR2>0AND VAR2>VAR3,VAR2,0),25);VAR5:=SUM(IF(VAR3>0AND VAR3>VAR2,VAR3,0),25);VAR6:=VAR4*100/VAR1;VAR7:=VAR5*100/VAR1;VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);VAR9:=(VAR8+REF(VAR8,15))/2;A:=(VAR7>VAR6 AND VAR7>25AND VAR6<25);B:=ZIG(3,51/5)*100,colorwhite;G:=MA(B,2),coloryellow;D:=CROSS(B,G)*1000,colorred;W:=CROSS(G,B)*1000,colorblue;E:=REF(INDEXC,1);F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);VAR10:=F AND F<8;VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR12:=SMA(VAR11,3,1);VAR13:=SMA(VAR12,3,1);VAR14:=VAR13 AND VAR13<20;MM:=A AND D AND VAR10 AND VAR14 ;ABF11:=PEAK(3,4,1)*0.9;Ba1:=ZIG(3,4)*100;Ga1:=MA(Ba1,2);Da1:=CROSS(Ba1,Ga1)*1000,colorred;Wa1:=CROSS(Ga1,Ba1)*1000,colorblue;/*DRAWTEXT(Wa1=1000,B*0.97,'卖★' ),coloryellow;*//*DRAWTEXT(Da1=1000 AND REF(CLOSE,1)<REF(ABF11,1) ,B*0.97,'买★'),colormagenta;*/A30:=MA(C,30);angleA30:=ATAN((A30/REF(A30,1)-1)*100)*57.3;angle30:=angleA30>40OR angleA30<-48;A10:=MA(C,10);angleA10:=ATAN((A10/REF(A10,1)-1)*100)*57.3;angle10:=angleA10>20OR angleA10<-25AND CLOSE>MA(CLOSE,20) ; A3010:=angle30 OR angle10;aazt:=COUNT(CLOSE>REF(CLOSE,1)*1.097 ,20)>0;DRAWGBK( W=1000 ),colorcyan;DRAWGBK( D=1000 ),color0099FF;DRAWTEXT(W=1000,买卖奇准先锋,'--卖' ),colorcyan;DRAWTEXT(D=1000,买卖奇准先锋,'--买'),coloryellow;DRAWGBK( W=1000AND aazt),colorgreen;DRAWGBK( D=1000AND aazt),colorred;DRAWTEXT(W=1000AND aazt ,买卖奇准先锋,'--卖全仓' ),colorgreen; DRAWTEXT(D=1000AND aazt ,买卖奇准先锋,'--买全仓'),colorred;KU1:=IF(HIGH=HHV(HIGH,3),1,0);KD1:=IF(LOW=LLV(LOW,3),1,0);UL:=IF(REF(KU1,2)=1AND REF(KU1,1)=0AND KU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1AND REF(KU1,1)=0AND KU1=0)));DL:=IF(REF(KD1,2)=1AND REF(KD1,1)=0ANDKD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1AND REF(KD1,1)=0AND KD1=0)));HV:=H>UL AND H>REF(H,1) ;LV:=L<DL AND L<REF(L,1) ;GP:=BARSLAST(HV);DP:=BARSLAST(LV);IP:=IF(GP=0,DP,GP)>3;HV1:=HV AND IP AND H>=HHV(H,BARSLAST(LV));LV1:=LV AND IP AND L<=LLV(L,BARSLAST(HV));DRAWLINE(LV1,LOW,HV1, HIGH,0),coloryellow,LINETHICK2; DRAWLINE(HV1,HIGH,LV1, LOW,0),colormagenta,LINETHICK2;------------------------------------------------------------------------------///加入中枢判定//简化版N1:=10;N2:=10;DISP:=2;K:=1;P1:=PEAK(1,K*N1,1);P2:=PEAK(1,K*N1,2);WP1:=PEAKBARS(1,K*N1,1);WP2:=PEAKBARS(1,K*N1,2);T1:=TROUGH(2,K*N2,1);T2:=TROUGH(2,K*N2,2);WT1:=TROUGHBARS(2,K*N2,1);WT2:=TROUGHBARS(2,K*N2,2);TJ1:=P1>T1 AND P2>T2 ;ZD:=MAX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1 AND TJ2 AND NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1))); TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1))); TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1)) AND ZD<REF(ZD,REF(BARSLAST(TJ4),1)); TJ8:=TJ4 AND NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,REF(ZD,1));//,coloryellow;ZSG:=IF(TJ8,ZG,REF(ZG,1));//,colormagenta;ZSH:=IF(TJ8,HH,REF(HH,1));//,colorblue;ZSL:=IF(TJ8,LL,REF(LL,1));//,colorgreen;STICKLINE(TJ8,ZSH,ZSL,0,-1),colormagenta;STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),colormagenta;DRAWTEXT(DISP=2,ZSH,''),colorwhite;//中枢高中枢高:ZSG,colormagenta;POLYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CIRCLEDOT,colormagenta;//中枢低:中枢低:ZSD,coloryellow;POLYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CIRCLEDOT,coloryellow;//中枢最高:中枢最高:ZSH,colorred;POLYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,colorred;//中枢最低:中枢最低:ZSL,colorgreen;POLYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,colorgreen;//趋势高://QSGD1:POLYLINE(DISP=3,ZIG(1,K*N1)),colorblue;//趋势低://QSDD1:POLYLINE(DISP=3,ZIG(2,K*N2)),colorblue;MA5:MA(CLOSE,5),COLORFF00FF,Linethick1;//COLORFF00FF,LINETHICK2;命真好:=MA5>REF(MA5,1);命真坏:=MA5<REF(MA5,1);//判定:PARTLINE(MA5,命真好,coloryellow,命真坏,colorblue,MA5,COLORFF00FF),linethick3; //F1:IF(MA5<REF(MA5,1),MA5,NULL),colorwhite,LINETHICK2;------------------------------------------------B:=ZIG(3,5),colorwhite;G:=MA(B,2),coloryellow;D:=CROSS(B,G)*1000,colorred;W:=CROSS(G,B)*1000,colorblue;aazt:=COUNT(CLOSE>REF(CLOSE,1)*1.097 ,20)>0;K:=BARSLAST(W=1000AND aazt );买卖奇准先锋:B,colorred;昨开盘价和收盘价自动划横线STICKLINE(1,REF(O,1),REF(O,1),3,0);STICKLINE(1,REF(C,1),REF(C,1),3,0);均线3/*DB2:=ZIG(0,N2,1);G2:=MA(B2,2);D2:=CROSS(B2,G2)*1000;W2:=CROSS(G2,B2)*1000;线段5F:B2,colorblue;/*DRAWTEXT(W2=1000 ,REF(线段5F,1),'---------------' ),colorcyan;DRAWTEXT(D2=1000 ,REF(线段5F,1),'---------------'),coloryellow;*/B3:=ZIG(0,N3,1);G3:=MA(B3,2);D3:=CROSS(B3,G3)*1000;W3:=CROSS(G3,B3)*1000;线段30F:B3,colorwhite;/*DRAWTEXT(W3=1000 ,线段30F,'--卖' ),colorcyan;*//*DRAWTEXT(D3=1000 ,线段30F,'--买'),coloryellow;*/B6:=ZIG(0,N4,1);G6:=MA(B6,2);D6:=CROSS(B6,G6)*1000;W6:=CROSS(G6,B6)*1000;线段1F:B6,colorgreen;/*DRAWTEXT(W6=1000 ,线段1F,'--卖' ),colorcyan;*//*DRAWTEXT(D6=1000 ,线段1F,'--买'),coloryellow;*/次日涨停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;黄转紫选股DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)*2;紫柱:MACD<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2);低位金叉选股DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)*2;低位金叉:CROSS(DIFF,DEA) AND DIFF<-0.1;二次金叉选股DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)*2;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;绝地反弹(1)VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*100;VAR3:=EMA(IF(CLOSE*1.2,VAR2*13,VAR2/13),13);VAR4:=LLV(LOW,34);VAR5:=HHV(VAR3,34);VAR6:=IF(LLV(LOW,55),1,0);VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;XL1:=MA(LOW,2)*0.96;XL2:=MA(LOW,26)*0.85;XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);启动:=IF(XL3,0,VAR7*3),COLORRED;XG:启动>25;(2)BACKSET( (REF(CLOSE,1)<REF(OPEN,1) ANDCLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002),2);A2:=FILTER(A1<=V3,10);ND CAPITAL<300000000REF(V,1)= LLV(V,4) AND V >=REF(V,1)HHV(V,3)=REF(V,1) AND HHV(V,5)=REF(V,1) AND HHV(V,21)=REF(V,1)AND V >=REF(V,1)01>0 AND T02>0;1.三线粘合M:=1;M5:=MA(CLOSE,5);M10:=MA(CLOSE,10);M20:=MA(CLOSE,20);K1:=MAX(MAX(M5,M10),MAX(M10,M20));K2:=MIN(MIN(M5,M10),MIN(M10,M20));A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))<1+0.03*M;A1:=(K1/K2-1)<0.005;A2:=(K1/K2-1)<0.005;A3:=V>REF(V,1)*1.5 AND V>MA(V,5);XG:A AND A1 AND A2 AND A3AND C>O AND V> REF(V,1)AND CAPITAL<=300000000;2.三条线粘合N1:=5;N2:=10;N3:=20;M:=1;MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);A3:=V>REF(V,1)*1.5 AND V>MA(V,5);MAX(MA1,MAX(MA2,MA3))/MIN(MA1,MIN(MA2,MA3))<1+0.01*MAND C>O AND V> REF(V,1)AND FINANCE(7)<=300000000AND A3 AND CAPITAL<=300000000;3.均线粘合M:=1;M5:=MA(CLOSE,5);M10:=MA(CLOSE,10);M20:=MA(CLOSE,20);K1:=MAX(MAX(M5,M10),MAX(M10,M20));K2:=MIN(MIN(M5,M10),MIN(M10,M20));A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))<1+0.01*M;A1:=(K1/K2-1)<0.005;A2:=(K1/K2-1)<0.005;A3:=V>REF(V,1)*1.5 AND V>MA(V,5);XG:A AND A1 AND A2AND A3 ;3.金叉选股指标快线:=EMA(EMA(EMA(EMA(CLOSE,2),2),2),2);慢线:=EMA(REF(快线,1),2);A3:=V>REF(V,1)*1.5 AND V>MA(V,5);XG:CROSS(快线,慢线) AND C>O ANDV>=MA(V,21) AND V> REF(V,1) AND CAPITAL<=300000000 ;4.角度MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);V0:CROSS(MA5,MA10) AND CROSS(MA10,MA20) ANDCROSS(MA5,MA20);IF(角度MA3>45 AND 角度MA5>40 AND 角度MA10>10AND 角度MA20>20 AND MA(C,135)>REF(MA(C,135),1),1,0),COLOR00FF001.聚宝盆DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIFF,M);MACD2:=2*(DIFF-DEA);HHV(MACD2,4)<0 AND MACD2>REF(MACD2,1) AND REF(MACD2,1)<REF(MACD2,2) AND REF (MACD2,2)<REF(MACD2,3);2.强势股{SJXXG四均线选股}MA3:=MA(C,3);MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);V0:=MA(C,3)>REF(MA(C,3),1) AND MA(C,5)>REF(MA(C,5),1) AND C>MA(C,3)AND MA(C,3)>MA(C,5) ; {均线C,MA3,MA5多头排列并向上;}角度MA3:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;角度MA10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;角度MA20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416;选股MA20:IF(角度MA3>45 AND 角度MA5>45 AND 角度MA10>60 AND 角度MA20>45 AND MA(C,250)>REF(MA(C,250),1),1,0),COLOR00FF00;{设计思路:1.3日均线角度大于45度;2:5日均线角度大于45度;3:10日均线角度大于60度;4.20日均线角度大于45度;5.MA250向上;};3。