飞狐、大智慧顶底指标公式

合集下载

飞狐公式文档

飞狐公式文档

飞狐公式1. 引言飞狐公式是一种计算机科学中常用的算法,用于解决问题的优化或近似求解。

它的设计初衷是通过尽量简化问题的复杂性,提高计算效率和准确性。

本文将介绍飞狐公式的原理、应用和示例。

2. 原理飞狐公式的核心思想是在求解复杂问题时,通过将问题简化为一系列相对简单的问题来逐步逼近最优解。

这个过程通常涉及迭代、近似和优化等技术。

在每一次迭代中,根据问题的特性和需求,进行适当的调整和改进,以达到更好的结果。

3. 应用飞狐公式广泛应用于各个领域,例如图像处理、机器学习、优化问题等。

下面将介绍两个常见的应用场景。

3.1 图像处理在图像处理中,飞狐公式可以用于图像的降噪、边缘检测和图像增强等任务。

通过迭代计算,飞狐公式可以逐步提取图像中的特征,并进行优化和近似,从而得到更清晰、更精确的图像结果。

3.2 机器学习在机器学习中,飞狐公式常用于模型训练和参数优化。

通过反复迭代和调整模型参数,飞狐公式可以逐步逼近最优解,从而提高模型的准确度和泛化能力。

4. 示例下面给出一个使用飞狐公式求解简单优化问题的示例。

4.1 问题描述假设我们有一组正整数,需要找到其中最小的数,并计算其平方。

如何通过飞狐公式来优化解决这个问题?4.2 解决方案首先,我们可以初始化一个较大的数,将它作为当前最小值的候选。

然后,我们依次遍历这组正整数,如果找到更小的数,就更新当前最小值的候选。

最后,我们计算当前最小值的平方,并得到最终结果。

```python # 伪代码示例 arr = [1, 3, 5, 2, 4] min_val = float(。

飞狐公式

飞狐公式

这个指标在软件上用肉眼看失败率非常的高,可是用飞狐软件去测试的话成功率却非常的高,请高手来说说其中的原因,到底是用肉眼看的比较真实还是用飞狐软件测试的真实。

N 20 100 7 M 2 100 5SW1:= (EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;PP:=SUM((CLOSE-SW1)/SW1*100+20,1);GG:=SUM((H-SW1)/SW1*100+20,1);DD:=SUM((L-SW1)/SW1*100+20,1);GC:=SUM(PP-GG,1);DC:=SUM(PP-DD,1);PP1:=SUM(CLOSE-SW1,1);LL:=MA(PP1,8);TT:=(C-SW1)/SW1*100;VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;B:=SMA(VAR1,N,1);BB:=SMA(B,M,1);LC :=REF(CLOSE,1);RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;RSI3:=SMA(MAX(CLOSE-LC,0),18,1)/SMA(ABS(CLOSE-LC),18,1)*100;MMS:=MA(3*RSI2-2*SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100,3);MM:=EMA(MMS,8);波段启动:IF(CROSS(PP1,LL) AND MM<40 AND BB<40 AND LL<0 ,-15,-20);DB:=IF((TT<-10),-11,-20);底部区域:=REF(DB,1);顶部区域:=IF(CROSS(LL,PP1) AND BB>60 AND MM>70 AND LL>0 ,15,20);STICKLINE(FILTER(波段启动=-15,1) ,-15,-20,7,0),COLORRED;STICKLINE(FILTER(顶部区域=15,1) ,15,20,7,0),COLORGREEN;STICKLINE(FILTER(底部区域=-11,1) ,-11,-20,7,0),COLORYELLOW;明天买入:=IF((GC<-6),-9,-20);明天买入2:=IF((GC<-6 AND BB<40 AND MM<40 ),-9,-20);明天卖出:=IF((DC>6 AND BB>40 AND MM>60),9,20);逢低抢反弹:REF(明天买入,1),COLORYELLOW,LINETHICK1;反弹行情:REF(明天买入2,1),COLORRED,LINETHICK1;风险:REF(明天卖出,1),COLORGREEN,LINETHICK1;DRAWICON(FILTER(反弹行情=-9 AND BB<40 AND MM<40 ,1),-6,10);准确率很高的买入卖出提示指标MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF ((L+H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);{明日均线:=REF(C,2)*2-REF(C,5),LINETHICK0,COLOR550055 ;后日均线:=REF(C,1)*2-REF(C,4),LINETHICK0,COLOR008800;大后天均线:=C*2-REF(C,3),LINETHICK0,COLOR008888;}KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:= - 100 * (趋势线- CLOSE) / 趋势线;AC:=(EMA(AA,5) );SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MMV;{STICKLINE(((SSL > MM) ),SSL,MM,0.1,0),COLORRED;}SA:=(MM * 0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));捞钱手:IF(((SSL > MM)),MM,SA),LINETHICK2,COLORWHITE;VAR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);VAR4Y:=REF(CLOSE,1);VAR5Y:=((SMA(MAX((CLOSE - VAR4Y),0),6,1) / SMA(ABS((CLOSE - VAR4Y)),6,1)) * 100);VAR6Y:=((SMA(MAX((CLOSE - VAR4Y),0),12,1) / SMA(ABS((CLOSE - VAR4Y)),12,1)) * 100);VAR7Y:=((SMA(MAX((CLOSE - VAR4Y),0),24,1) / SMA(ABS((CLOSE - VAR4Y)),24,1)) * 100);VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);VAR9Y:=SMA(VAR8Y,3,1);VARAY:=SMA(VAR9Y,3,1);VARBY:=((3 * VAR9Y) - (2 * VARAY));VARCY:=(CROSS(VAR5Y,10) AND (VAR3Y < (0 - (28 * 20))));VARDY:=((100 - CROSS(76,VAR5Y)) AND (VAR3Y > (5 * 20)));DRAWICON(((CROSS(76,VAR5Y) AND (VAR3Y > 5)) ),(HIGH * 1.01),5),COLORFFFFFF; VAREY:=((((CROSS(VAR9Y,VARAY) AND (VARAY < 10)) AND (VAR3Y < (0 - 30))) AND (VAR2Y > 3)) * 30);VARFY:= - ((((VARAY < 11) AND (VAR5Y < 15)) AND (VAR3Y < (0 - 26))) * 10); DRAWICON((CROSS(VARFY,(0 - 9))),(LOW * 0.998),4);能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);B:REF(A,1),POINTDOT,COLORYELLOW;智能黄金线:A,COLORYELLOW,LINETHICK1;VA1:=EMA(上收,8);VA2:=EMA(上收,20);DRAWTEXT(CROSS(VA2,VA1),VA1*1.10,'止损'),COLORYELLOW;DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.96,'买入'),COLOR00FF00;选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3);箱底A:=MA(REF(LLV(上收,3),1),3);T1:=MA(上收,20)>=REF(MA(上收,20),1);T2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND T1;T3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;T4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;T5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND UOO>0,箱底,'★'),COLORF00FF0;DRAWTEXT(CROSS(VAR4,VAR3) AND VAR4>75 ,箱顶*1.03,'减磅'),COLORF0F000; VAR111:=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 VAR14 OR VAR15 ORVAR16 OR VAR17 OR VAR18,1) AND VAR1;趋势线1:=FORCAST(CLOSE,7);FK:=100*(C-REF(C,1))/REF(C,1);PK1:=IF(C<REF(O,1) AND FK<0,1,0);PK2:=IF(C<REF(O,2) AND FK<0,1,0);STICKLINE((PK1=0 AND REF(PK1,1)=1 AND PK2=0 AND REF(PK2,1)=1)AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),OPEN,CLOSE,3,0),COLORRED; STICKLINE((PK1=0 AND REF(PK1,1)=1 AND PK2=0 AND REF(PK2,1)=1)AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;PK3:=(((CLOSE / OPEN) > 1.04) AND (CLOSE <(SMA(HIGH,21,2) * 1.05))) AND ((CLOSE - REF(CLOSE,1)) > 0);STICKLINE(PK3 AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORRED;STICKLINE(PK3 AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;STICKLINE(VAR19 AND(趋势线>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORRED;STICKLINE(VAR19 AND(趋势线>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);STICKLINE(买进条件AND 捞钱手>智能黄金线AND 智能黄金线>REF(智能黄金线,1),L,L*0.998,7,0),COLORWHITE;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),箱底,'★'),COLOR00FFFF; STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;STICKLINE(CROSS(买线,卖线),H,L,0.5,0),COLOR00FFFF;准确率最高的三种炒股指标《转》作者:财金人笔者对中国十年股市运行情况,选择二十五项的指标通过计算机进行运用测试,出人意料的是诸如KDJ、MACD、均线指标、布林指标等著名指标的成功并不是特别高,准确率最高的三种指标分别是Vr、Bias和RSI三个指标,现分别介绍如下:一、vr 指标原理及应用㈠用途:该指标主要的作用在于以成交量的角度测量股价的热度,表现股市的买卖气势,以利于投资者掌握股价可能之趋势走向。

大智慧、FXJ、TDX、飞狐公式编辑教程大全(一)

大智慧、FXJ、TDX、飞狐公式编辑教程大全(一)

大智慧、FXJ、TDX、飞狐公式编辑教程大全(一)什么是技术指标?MA均线就是一种技术指标,我们在炒股的时候,经常会将一些行情数据进行数学计算得出一些曲线等等,方便我们掌握股市的变动情况。

什么是条件选股?简单讲,就是按照您的设定的条件用电脑帮助您完成一些太多太复杂的挑选--比如您有一些好的心得和方法,可使有1000多只股票,您就是有100双眼睛有时也不一定可以看得过来,这时电脑就派上用场了!什么是参数?比如讲:10日均线,您可以把10日当作参数,好处在于,您觉得需要修改成5日的时候,就可以使用一些简单的方法,例如参数精灵来很方便的修改和调整。

参数需要名字,例如M就不错。

还要规定参数的范围,例如1日至260日。

这样我们就可以在1到260之间任意调节M的值了,M最常用的数填在“缺省”一栏,例如你最喜欢用10日均线,那就填10吧。

什么是周期?这么解释吧!我们有的投资者喜欢使用日线图作技术分析;有的喜欢用5分钟的K线;有的喜欢使用长一点时间的,例如周线。

所以在公式设计中,允许不同喜好的使用者选择不同的分析时间--就是可以选择不同的周期。

什么是函数?函数在公式编写非常重要,如果作个比喻,我们用一种语言去告诉电脑我的想法,并且让它去帮我做,那么函数就是这种语言的单词。

我们在公式编辑器中选择插入函数,就可以看到里面有许多的函数,我们在附录中有一个简表,大家可以到那里去检索!例一:一根K线有四个价格组成:最高价:HIGH收盘价:CLOSE最低价:LOW开盘价:OPEN成交量:VOL成交额:AMO例二:两条均线不断地交叉,就专门设定了一条函数来描述两条线交叉:CROSS(X,Y)假如下图中的两条均线一条名叫X,另外一条叫YCROSS(X,Y)表示X向上穿过了YCROSS(Y,X)表示Y向上穿过了X例三:前面的CLOSE,还是VOL,都表示当天,或者您使用的不是日线,那就表示本周期的数据,那么前几天的怎么表示呢?REF(X,M)例如:REF(Close,5)表示5天前的收盘;REF(Vol,10)表示10天前的成交量;这里的M就是参数,您现在明白了什么是参数了吗?例四:如果我想把两个条件并列在一起怎么办?ANDX AND Y就表示条件X和条件Y好了!本课结束吧--有点稍慢,下面会好一些!编写一条最简单的指标线通过前几课的学习,我们今天开始使用软件的公式编辑功能编写我们自己的第一条指标线。

大智慧、飞狐、分析家、通达信、钱龙、麒麟公式编辑教程大全2

大智慧、飞狐、分析家、通达信、钱龙、麒麟公式编辑教程大全2

大智慧、飞狐、分析家、通达信、钱龙、麒麟公式编辑教程大全2大智慧、飞狐、分析家、通达信、钱龙、麒麟公式编辑教程大全2二、编写公式其实就一句话:今日收盘除以昨日收盘的值大于1.0999X:=CLOSE/REF(CLOSE,1)>1.0999;三、测试我们的条件大家都知测试的功能,要不然你怎么知道你的经验在历史上的表现是好还是不好呢?按照下图指引进入条件选股的界面,之后选中您的条件,具体办法请参见(使用说明书)。

然后填入测试时间和测试标准!在这里我们的测试方法是:测试时间是从2000/01/01到2001/03/02,测试股票共计583只,初始投入100,000元。

当满足买入公式中定义的条件时,也就是涨停板时,按照收盘价使用相同资金买入一只股票,当满足以下平仓条件时按照收盘价平仓;买入5日后强制平仓或者亏损达到3%止损平仓或者利润达到5%止赢平仓,然后按照以上的规则统计在测试的时间段内的所有交易的状况。

这是一种追涨的短线方法,所以测试的时间我们只用5天,目标利润为5%,(非常抱歉,因为其中的设置和选择方法十分灵活而且需要较好的理解能力,所以我们在这里就不介绍具体的内容了)点击开始测试!一切OK!来看结果吧!1、从成功率上看,实际达到5%的获利要求的交易次数67.89%,我们已经比较满意这个结果了,可是要用于实战,可不可以再提高呢?2、所谓的提高就是优化的一个内容,简单说,优化就是让它更好!优化我们的条件,让它的表现更好!3、加上一个缩量的条件,比如当日成交量小于5日的均量;Y:=VOL<MA(VOL,5);大家可以做一下测试,看看结果如何!以下是同样测试条件下的结果。

X AND Y;您满意吗?我们的成功率已达到了80%,剩下的任务就是您如何操作的问题了!注:请大家考虑一下在实战当中,如果您按此买入可不可行?总结:编写公式并不是为了编公式而编写复杂的公式,您个人对某一个特征或者形态的理解最重要。

所以光有经验不够,您还得把它转化成您自己的应对策略!您需要不断总结、测试、优化您的公式。

趋势顶底QSDD指标公式源码大智慧通达信飞狐都可用

趋势顶底QSDD指标公式源码大智慧通达信飞狐都可用

趋势顶底QSDD指标公式源码大智慧通达信飞狐都可用趋势顶底QSDD用法:⑴:不管什么周期,只要(中线上穿长线)即可买入。

⑵:不管什么周期,只要(中线下穿长线)或(短线下穿80)即刻卖出。

二:研判大盘趋势(月线)⑴:当月线的长线、中线、短线趋势向下,(则长期看空),而中线上穿长线,(则长期看多)。

⑵:当月线还没有调整到位,后周期的所有行情都将是反弹,而反弹力度三:研判大盘趋势(周线)⑴:当周线的长线、中线、短线趋势向下,(则中期看空),而中线上穿长线,(则中期看多)。

⑵:当周线还没有调整到位,后周期的所有行情都将是反弹,而反弹力度的大小就要看日线了。

⑶:当周线的走势出现钝化,说明它在等月线,因为月线的调整还没到位,一旦到位就会形成突破。

四:研判大盘趋势(日线)⑴:当日线的长线、中线、短线趋势向下,(则短期看空),而中线上穿长线,(则短期看多)。

⑵:当日线还没有调整到位,后周期的所有行情都将是反弹,而反弹力度的大小就要看分钟线了。

⑶:当日线的走势出现钝化,说明它在等周线,因为周线的调整还没到位,一旦到位就会形成突破源码---80,COLOR996699;20,COLORGREEN;底:10,COLORCC6633,LINETHICK2;90,COLOR9966FF,LINETHICK2;50,COLORRED;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LL V(LOW,34)),19);B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LO W,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LL V(LOW,34)),4);长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:=((REF(中期线,1)&gt;85 AND REF(短期线,1)&gt;85 AND REF(长期线,1)&gt;65) AND CROSS(长期线,短期线)); 顶部区域:(中期线&lt;REF(中期线,1) AND REF(中期线,1)&gt;80) AND (REF(短期线,1)&gt;95 OR REF(短期线,2)&gt;95 ) AND 长期线&gt;60 AND 短期线&lt;83.5 AND 短期线&lt;中期线AND 短期线&lt;长期线+4,COLORGREEN;顶部:=FILTER(顶部区域,4);STICKLINE( {见顶OR} 顶部,99,103,20,1 ),COLORRED,LINETHICK2;底部区域:(长期线&lt;12 AND 中期线&lt;8 AND (短期线&lt;7.2 OR REF(短期线,1)&lt;5) AND (中期线&gt;REF(中期线,1) OR 短期线&gt;REF(短期线,1)))OR (长期线&lt;8 AND 中期线&lt;7 AND 短期线&lt;15 AND 短期线&gt;REF(短期线,1)) OR (长期线&lt;10 AND 中期线&lt;7 AND 短期线&lt;1) ,COLORGREEN;STICKLINE( 底部区域,-4,0,22,0 ),COLORGREEN;低位金叉:50*(长期线&lt;15 AND REF(长期线,1)&lt;15 AND 中期线&lt;18 AND 短期线&gt;REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线&gt;中期线AND (REF(短期线,1)&lt;5 OR REF(短期线,2)&lt;5 ) AND (中期线&gt;=长期线OR REF( 短期线,1)&lt;1 )),COLORRED;-------------------------------------------------------------------------------------------------------------------------QSDD指标应用:教您提高益盟操盘手BS点效率首先打开操盘手软件!输入QSDD四个英文字母!可以调出一个叫QSDD的指标!横着的一共有5条线!弯曲的一共有3条线!横着的顶部2条线是顶部区域!下面横着的是底部区域!弯曲的灰色线是短期线!黄色的是中期线!红色的是长期线!那么我来教大家如何使用这样一个指标!以000998为案例来讲解!这个股票也是我实战操作的一个股票14块一直拿到46.8成功跑掉!下面来介绍方法!那个时候我先观察灰色线触底了了!在08年4月1号的时候我当时的想法!灰色线是短周期线那么这种股票可以作个短线风险估计会小!那么就密切观察他!开始关注底部区域的换手!同时等待灰色线的拐头向上的机会!终于灰色线在4月2号开始拐头向上!那么这个时候立刻选择进场!(要点这种股票最好是价位是底部区域的,同时灰色线触底紫色线)进场后拿着股票这样灰色线拐头不向下就拿着!如果你选择一直做短线的话!那么就可以按照股票的日线图的QSDD灰色线一直做!拐头向上就进场,拐头向下力马离场!如果你愿意做中线那么就要看黄色线!话还回到前面我进场以后观察换手和量能!不错不断的放大!接着我观察黄色线拐头也向上了!那么坚定信心做中线!黄线是在4月5号有明显向上迹象那么继续持有!我介绍过红线是个长期线如果你发现的股票的QSDD红线也是拐头向上的,那么这种股票长线可以做!4月15号的时候红线开始拐头向上!那么这个时候我选择了继续持股!那么LP后来就是一路拉升!灰色线有过高位几次波动!我还是继续持股因为这个时候黄色线和红色线2线支持股价攀升!那么大胆的持股!终于在5月13号的这天黄线也达到顶部而且灰色线已经再次出现拐头向下!而且QSDD的顶部提示信号出来!我立刻提高警觉果然5月14LP 冲高并且放天量我一看坏了!一个字跑!黄色线也拐头向下!我选择46.8挂单走人!后来的一切大家也都知道!一路回落!QSDD的3线也是一路的拐头向下!我看了一下LP的BS 点!B点发的还算及时!但这个S点!发的有点晚!如果按QSDD 指标的话!你可以直接逃顶!而不是选择5月16号在跑!后面的有图大家可以看一下!我在这里讲这个案例不是叫大家买LP,也不是炫耀自己抓了主升浪!我只是教大家方法!大家可以在以后选股做股票的时候运用他!提高BS点效率!下面我总结一下QSDD的运用的几个要点!1.最好选择在底部区域中的股票!低位要高换手和量能的配合最完美!如果QSDD发出底部信号的话更好!如果没有,一定要灰色线最好是在底部区域出现拐头向上迹象!这样的股票!在考虑进入!2.明确自己的运用QSDD指标的思路!你到底是短,中,长中的哪一种如果短线严格按灰色线做!如果做中线结合黄红2线做!3.QSDD顶部信号出现!一定要跑!特别是灰黄2线拐头明显向下!你千万别忧郁,坚决出局!即使后面有拉升后面的钱不是你该赚的!4.最好用日线看QSDD指标!当然结合小时线运用也未尝不可!做好以上4点!那么我相信你的BS点效率应该可以提高!软件是死的,人是活的怎么样灵活的运用他!用什么样的心态去研究他!才是正确的!欢迎您的回贴交流!如果您喜欢我的这个方法一定要打分哦!同时也希望大家关注我在实战看盘区为大家做的每日的盘后意见!附图:-------------------------------------------------------------------------------------------------------------------------QSDD出手就赢战法一、必胜买进条件周QSDD在低、中位金叉,同时,月QSDD在低中位运行且方向朝上。

【图】十九无敌(飞狐公式)

【图】十九无敌(飞狐公式)

【图】十九无敌(飞狐公式)好公式,谢谢提供!加20分!这是一个组合公式,源码如下:i:=MA(BARSLAST(HIGH=HHV(HIGH,16))*IF(CLOSE<OPEN,V OL,1),3);r:=MA(BARSLAST(LOW=LLV(LOW,18))*IF(CLOSE>OPEN,VOL ,1),4);短线逃顶:=IF(i,0,1),colorgreen;DRAWICON(短线逃顶,98,8);Var1k:=EMA(C,12)-EMA(C,20);Var2k:=EMA(Var1k,9);牛魔王a:=(OPEN<=MA(CLOSE,5) AND OPEN<=MA(CLOSE,10) AND OPEN<=MA(CLOSE,30) AND CLOSE>=MA(CLOSE,5) AND CLOSE>=((SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28))*100)/10 0 AND (Var2k-REF(Var2k,1))>0 AND (Var1k-REF(Var1k,1))>0);drawicon(牛魔王a,98,6);易股:=(Var1k>Var2k AND REF(Var1k,1)<=REF(Var2k,1) AND Var1k<0 AND Var2k<-0.2 AND (-100*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100)>45 AND (Var2k-REF(Var2k,1))>0);drawicon(易股,90,4);Var2j:=LLV(LOW,10);Var3j:=HHV(HIGH,25);警戒线:= 2.8*Var1j;减仓线:= 3.2*Var1j;动力线:=EMA((CLOSE-Var2j)/(Var3jo-Var2j)*4,4);DRAWICON(CROSS(动力线,警戒线),99,5);{黑马发现的底部}{}Vaz4:=(CLOSE-LLV(CLOSE,126))/(HHV(CLOSE,126)-LLV(CLOSE,126))*100;Vaz24:=Vaz4=0;STICKLINE(Vaz24>0,-3,-9,1,2), ,colorred,linethick3 ;Vaz25:=Vaz4=100;STICKLINE(Vaz25>0,101,105,1,2), ,colorgreen,linethick2;{睡猫买入}{n: DMA(AMOUNT/VOL/100,VOL/CAPITAL)/close;}{n日平均:ema(成本比,n);}睡猫: if(c<MA(EMA(CLOSE,34)*0.82,5) and close/DMA(AMOUNT/VOL/100,VOL/CAPITAL)<0.64{下轴成本为0.64},30,0)linethick2,COLORffff00;{}{南极}南极: ((((MA(CLOSE,5))-CLOSE)/CLOSE>3/100) AND (((MA(CLOSE,10))-(MA(CLOSE,5)))/(MA(CLOSE,5))>0.03) AND (LLV(CLOSE,30)=LLV(CLOSE,120)))*40,linethick2,color33ffcc;{一剑封喉}Var9a:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL,0)),0);Var9b: =SUMBARS(VOL,CAPITAL);Var9c: =IF(CLOSE>LLV(CLOSE,Var9b),1,-1);Var9d: =IF(Var9a>LLV(Var9a,Var9b),1,-1);Var9e: =Var9c*Var9d;var9f: =IF(Var9e=-1,1,0);yjfh: (var9f AND CLOSE=LLV(CLOSE,120))*48,color3300cc, linethick1,stick,colorred;{精品出山}Varp3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;Varp4:=SMA(Varp3,3,1);Varp5:=SMA(Varp4,3,1);Varp6:=3*Varp4-2*Varp5;Varp7:=SMA(CLOSE/HHV(HIGH,120),3,1)*100;Varp9:=Varp7>REF(Varp7,20) AND Varp7>75 AND FILTER(Varp7/REF(LLV(LOW,20),10)>1.18,20);VarpC:=SMA(MAX(CLOSE-(REF(CLOSE,1)),0),6,1)/SMA(ABS(CLOSE-(REF(CLOSE,1))),6,1)*100;DRAWTEXT(Varp7<68 AND BARSLAST(CROSS(68,Varp7))>2 AND Varp5<30 AND CROSS(Varp6,Varp5),-5,'★'),coloryellow;Vari1:=(CLOSE+HIGH+LOW+OPEN)/4;Vari8:=MA(Vari1,34);Vari9:=(Vari1-Vari8)/Vari8*10;VariB:=0.6*VOL/WINNER(CLOSE) ;牛魔王: IF(VariB>=1000000 AND Vari9<-1.618,70,0), , coloryellow;DRAWICON(VariB>=1000000 AND Vari9<-1.618,70,0) ;{定海神针}Va1:=REF(CLOSE,1);Va2:=SMA(MAX(CLOSE-Va1,0),7,1)/SMA(ABS(CLOSE-Va1),7,1)*100;Va3:=SMA(MAX(CLOSE-Va1,0),13,1)/SMA(ABS(CLOSE-Va1),13,1)*100;Va4:=BARSCOUNT(CLOSE);Va6:=Va2<20 AND Va3<25 AND Va4>50;dhsz: (Va6)*70,linethick2,colorff9933;{地瓜八号}j:=(ref(c,1)+ref(c,2)+ref(c,3)+ref(c,4)+ref(c,5))/5;j1:=j<cost(10) and c/j>1.025 and (hhv(c,5)-llv(c,5))/llv(c,5)*100>7 ;j2:= j1 and ref(c,5)/ref(c,1)>1.003 and ma(indexc,3)>=ref(ma(indexc,3),1);地瓜: (filter(j2,10))*28,linethick2,color99cccc;Var3:=REF(HIGH,1)*1.1;Var4:=HIGH*1.1;Var5:=(Var4*VOL+Var3*(CAPITAL-VOL))/CAPITAL;Var6:=REF(LOW,1)*0.9;Var7:=LOW*0.9;Var8:=(Var7*VOL+Var6*(CAPITAL-VOL))/CAPITAL;Var9:=EMA(Var8,30);VarA:=EMA(Var5,30);VarB:=VarA-2;VarC:=IF(CLOSE<=Var9,VarB,VarA);VarD:=MA(CLOSE,80)-MA(CLOSE,10)/17;{出手:}STICKLINE(VarC-VarB=0 AND CROSS((EMA(EMA(EMA(CLOSE,3),3),3)-REF(EMA(EMA(EMA(CLOSE,3),3),3),1))/REF(EMA(EMA(EMA(CLOS E,3),3),3),1)*100,MA((EMA(EMA(EMA(CLOSE,3),3),3)-REF(EMA(EMA(EMA(CLOSE,3),3),3),1))/REF(EMA(EMA(EMA(CLOS E,3),3),3),1)*100,2)),80,0,3,0),linethick3,COLORcc6699 , ;{赢:}DRAWTEXT(FILTER(VarC-VarB=0 AND CROSS((EMA(EMA(EMA(CLOSE,3),3),3)-REF(EMA(EMA(EMA(CLOSE,3),3),3),1))/REF(EMA(EMA(EMA(CLOS E,3),3),3),1)*100,MA((EMA(EMA(EMA(CLOSE,3),3),3)-REF(EMA(EMA(EMA(CLOSE,3),3),3),1))/REF(EMA(EMA(EMA(CLOS E,3),3),3),1)*100,2)),4),78,'★-赢'), ,COLORred ;{等待底部买入}买入: IF(CROSS((4*SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),3,1)),(8)),58,0),stick,color0099ff,linethick6;drawtext(买入,45,'-我买'),color66ffcc;{导弹}Var1A: =(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;Var1B: =SMA((SMA(Var1A,4,1)-50)*2,3,1);Var1C: =(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;Var1D: =SMA(Var1C,4,1);Var1E: =SMA(Var1D,3,1);Var1F: =(HHV(HIGH,30)-CLOSE)/CLOSE*100;VarE: =REF(LOW,1)*0.9;VarF: =LOW*0.9;Var10: =(VarF*VOL+VarE*(CAPITAL-VOL))/CAPITAL;Var11: =EMA(Var10,30);Var12: =CLOSE-REF(CLOSE,1);Var13: =MAX(Var12,0);Var14: =ABS(Var12);Var15: =SMA(Var13,7,1)/SMA(Var14,7,1)*100;Var16: =SMA(Var13,13,1)/SMA(Var14,13,1)*100;Var17: =BARSCOUNT(CLOSE);Var18: =SMA(MAX(Var12,0),6,1)/SMA(ABS(Var12),6,1)*100;Var19: =(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;Var20: =Var18<=25 AND Var19<-95 AND Var1F>20 AND Var1B<-30 AND Var1E<30 AND Var11-CLOSE>=-0.25 ANDVar15<22 AND Var16<28 AND Var17>50;STICKLINE(Var20,0,95,5,0),LINETHICK2,COLORRED,;DRAWTEXT(CROSS(Var20,0.5) AND COUNT(Var20=1,10)=1,60,'--→发射导弹'),LINETHICK7 , COLORwhite;{我卖}{}Vat3: =REF(CLOSE,1);Vat4: =SMA(MAX(CLOSE-Vat3,0),6,1)/SMA(ABS(CLOSE-Vat3),6,1)*100;我卖: (CROSS(80,Vat4))*82,stick,LINETHICK6,color9900CC ;drawtext(我卖,80,'→我卖'),colorred;{玄黄卖出}快逃: IF(CROSS((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)),90),60,0),stick,linethick4,colorgreen;drawtext(快逃,50,'→快逃'),colorwhite;{底部雷达}Varo2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;Varo3:=SMA(SMA(Varo2,3,1),3,1);Varo4:=EMA(Varo3,5);Varo5:=LLV(LOW,26);Varo6:=HHV(HIGH,34);Varo7:=EMA((CLOSE-Varo5)/(Varo6-Varo5)*4,4)*25;STICKLINE(CROSS(Varo4,10) AND Varo4>10,25,0,8,0),coloryellow,;建仓区: IF((Varo7<10),80,100), ,linethick2 color00ccff;派发区: IF((Varo7>90),20,0), , linethick2 color6699ff;{庄家踪迹中的买卖信号成功率为80-95 %}Vay3:=(CLOSE-MA(CLOSE,30))/STD(CLOSE,15)*100;VayA:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;DRAWTEXT(CROSS(((CLOSE-MA(CLOSE,30))/STD(CLOSE,15)*100),(EMA(Vay3,18))) AND CLOSE<VayA,high+82,'★←-买卖信号成功率为80-95%')coloryellow;{Z马神君}天马行空线:=ma(cost(85),5);训马线:=ma(cost(15),5);黑马线:=ma(cost(50),5);天马踏地线:=ma(cost(1),7);牵马绳:=ema(close,3);DRAWICON(cross(牵马绳,天马踏地线) ,-5, 6);DRAWICON(count(cross(天马行空线,牵马绳),20)=2 and 天马行空线/天马踏地线>1.6 ,95 , 10){}[ Last edited by 智仁 on 2003-6-16 at 07:33 PM ]。

飞狐公式源码

飞狐公式源码

70万:input:n1(3,1,10),n2(5,1,20),n(18,1,111),m(14,1,111),i(26,1,111),n(3,1,100),n1(5,5,5),n2(5,5,5),n3(12,12, 12),n(17,1,111),n1(7,1,111),n2(69,1,111),lh(79,1,111);var2:=(c+h+l)/3;var3:=ema(var2,10);var4:=ref(var3,1);var5:=(ref(h,1)+ref(l,1))/2;var6:=ma(c,n)+2*std(c,n);var7:=ref(c,1);var8:=sma(max(c-var7,0),n1,1)/sma(abs(c-var7),n1,1)*100;var9:=cross(n2,var8);vara:=filter(var9,4);varb:=(2*c+h+l)/4;varc:=llv(l,34);vard:=hhv(h,34);var10:=ma(c,80)-ma(c,10)/3;var11:=ref(c,1);var12:=sma(max(c-var11,0),n,1)/sma(abs(c-var11),n,1)*100;drawicon(cross(lh,var12),h*1.035,2);drawtext(cross(lh,var12),h*1.04,' ←庄退休↓'),colorffffff;var1:=dma(amount/v/100,v/capital);var2:=var1+var1*34/100;var3:=l;var4:=ref(l,1);var5:=sma(abs(var3-var4),3,1)/sma(max(var3-var4,0),n,1)*100;var6:=ma(if(c*1.68<="CYC@CYCMAX",var5*10,var5/10),n);var7:=llv(l,30);var8:=hhv(var6,30);var9:=ma(if(l<=var7,(var6+var8*2)/2,0),n);vara:=(2*c+h+l)/4;varb:=llv(l,34);varc:=hhv(h,34);vard:=ema((vara-varb)/(varc-varb)*100,6);vare:=ema(0.667*ref(vard,1)+0.333*vard,4);varf:=llv(l,120);var10:=hhv(h,120);var11:=var10-varf;drawtext(if(count(c<ref(c,1),8)/8>0.3 and count(vard>vare,3) and ref(l,1)=llv(l,120) and c>o,1,0) or var9>40000,l,'★注意买进↑'),colorff;var12:=ma(c,5);var13:=ma(c,30);var14:=ma(c,60);var15:=ref(c,1);var16:=sma(max(c-var15,0),6,1)/sma(abs(c-var15),6,1)*100;var17:=ref(c,1);var18:=sma(max(c-var17,0),6,1)/sma(abs(c-var17),6,1)*100;drawtext(cross(84,var16) and cross(84,var18),h,'◇走先↓'),colorff0000;{var1:="1A0001$vol#min5"*"1A0001$close;var2:=ema(var1,5)/ema("1A0001$vol#min5",5);var3:=("1A0001$close-var2)/var2*100;}var4:=var3<=-1.5 and var3>-100;var5:=sum(var4>0,n)/sum(var4=0,n);var6:=var5<5 and var5>=0.25;var7:=(l+h+c)/3;var8:=(var7-ma(var7,m))/0.015*avedev(var7,m);var9:=ema(var8,3);vara:=(h+l+c)/3;varb:=sum(max(0,h-ref(vara,1)),i)/sum(max(0,ref(vara,1)-l),i)*100;varc:=ref(ma(varb,3),2.2);vard:=ref(ma(varb,13),6.2);vare:=ref(ma(varb,89),36.6);varf:=cross(varc,varb) and varb>150;var10:=ma(c,5);var11:=ma(c,10);var12:=(var10-c)/c>0.03;var13:=(var11-var10)/var10>0.03;var14:=llv(c,30)=llv(c,120);var15:=llv(l,5)=llv(l,45) and c>=o*1.04;var16:=c>(ref(h,1)+ref(l,1))/2;var17:=var15 and var16;drawicon(cross((ref(h,1)+ref(l,1))/2,ma(c,20)+2*std(c,20)),h*1.015,3);drawtext(cross((ref(h,1)+ref(l,1))/2,ma(c,20)+2*std(c,20)),h*1.01,' ←闪↓'),coloreeff; 上去:ema(c,n1),colorff;下来:ema(c,n2),colorff00;中间:ema(下来,n2),Linethick2,colorffffff;drawtext(cross(上去,中间),上去,'○再上去↑'),colorffffff;drawtext(cross(上去,下来),上去,'★←上去↑'),colorff;drawtext(cross(下来,上去),上去,'☆下来↓'),colorcc00;q:=datacount;r:=DYNAINFO(3);hh:=DYNAINFO(5);LL:=DYNAINFO(6);f:=max(hh-r,r-LL);q1:=r-f*1.01;//主图下边线q2:=r-2*f*1.0125;//副图1下边线(0位线)q3:=r-3*f*1.014;//副图2下边线(0位线){有了Q1、Q2、Q3,叠加副图指标也就容易了}if datatype>=0 then exit;rc:=DYNAINFO(3);q:=datacount;hh:=DYNAINFO(5);LL:=DYNAINFO(6);f:=max(hh-rc,rc-LL);ff:=f/rc*100;////////////////////////////////////////////////////////////////q1h:=if(ff<1,0.9898*rc,rc-f*1.02);q1l:=if(ff<1,0.9798*rc,rc-2*f*1.016);{以下在副图1叠加大盘线}R:=INDEXC;Rh:=hhv(r,0);RL:=LLv(r,0);Rb:=(q1h-q1l)/(RH[q]-RL[q]);Ry:=(q1h+q1l-rb*(RH[q]+RL[q]))/2;msd:r*rb+ry,COLORMAGENTA,LINETHICK2;{以下在副图1叠加RSI14}LC := REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; R1:=rsi;Rh1:=hhv(r1,0);RL1:=LLv(r1,0);Rb1:=(q1h-q1l)/(RH1[q]-RL1[q]);Ry1:=(q1h+q1l-rb1*(RH1[q]+RL1[q]))/2;rsi14:r1*rb1+ry1,COLORGREEN,LINETHICK2;AAa:=REF(rsi14,N2)=HHV(rsi14,2*N2+1);BBb:=BACKSET(AAa,N2+1);CCc:=FILTER(BBb,N2) AND rsi14=HHV(rsi14,N2+1);Aa1:=BARSLAST(REF(CCc,1));顶背离:=REF(H,aA1+1)<H AND REF(rsi14,aA1+1)>rsi14 AND CCc; DRAWLINE(CCc,rsi14,FIL TER(顶背离>0,5),rsi14,0);DRAWTEXT(顶背离,rsi14*1,'顶背离'),COLORYELLOW;AAa2:=REF(rsi14,N2)=LLV(rsi14,2*N2+1);BBb2:=BACKSET(AAa2,N2+1);CCc2:=FILTER(BBb2,N2) AND rsi14=LLV(rsi14,N2+1);Aa2:=BARSLAST(REF(CCc2,1));底背离:=REF(L,Aa2+1)>L AND REF(rsi14,Aa2+1)<rsi14 AND CCc2;DRAWLINE(CCc2,rsi14,FIL TER(底背离>0,5),rsi14,0),COLORMAGENTA; DRAWTEXT(底背离,rsi14,'底背离'),COLORYELLOW;{以下在副图1叠加OBV}OBV:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0); r2:=OBV;rh2:=hhv(R2,0);rL2:=LLv(r2,0);Rb2:=(q1h-q1l)/(RH2[q]-RL2[q]);Ry2:=(q1h+q1l-rb2*(RH2[q]+RL2[q]))/2;OBV1:r2*rb2+ry2,COLORRED,LINETHICK2;////////q2h:=if(ff<1,0.9797*rc,rc-2*f*1.016);q2l:=if(ff<1,0.9697*rc,rc-3*f*1.011);FILLRGN(1,q2h,q2l),colorblack;cz:=(q2h-q2l)/10;q2l,POINTDOT,,COLORWHITE;q2l+2*cz,POINTDOT,color0000cc;q2l+5*cz,POINTDOT,color0000cc;q2l+8*cz,POINTDOT,color0000cc;{以下在副图2叠加MACD参数为5,34,9}DIFF1:=EMA(CLOSE,5)-EMA(CLOSE,34),LINETHICK2;DEA1:=EMA(DIFF1,9),LINETHICK2;MACD1:=2*(DIFF1-DEA1), COLORSTICK,LINETHICK2;a1:=diff1;a2:=dea1;a3:=macd1;mh:=hhv(max(a1,a3),0);mL:=LLv(min(a3,a1),0);mb:=(q2h-q2l)/(mH[q]-mL[q]);my:=(q2h+q2l-mb*(mH[q]+mL[q]))/2;diff:a1*mb+my,COLORWHITE,LINETHICK2;dea:a2*mb+my,COLORYELLOW,LINETHICK2;macd:=a3*mb+my;STICKLINE(macd>my,my,macd,1,1),COLORGRA Y;STICKLINE(macd<my,my,macd,1,1),COLORGRA Y;压力: HHV(MA(diff,3),13),COLORGREEN;支撑:llV(MA(dea,3),13),COLORRED;AA:=REF(diff,N1)=HHV(diff,2*N1+1);BB:=BACKSET(AA,N1+1);CC:=FILTER(BB,N1) AND diff=HHV(diff,N1+1);A1:=BARSLAST(REF(CC,1));顶背离:=REF(H,A1+1)<H AND REF(diff,A1+1)>diff AND CC;DRAWTEXT(顶背离,diff*1,'顶背离'),COLORGREEN;DRAWLINE(CC,diff,FILTER(顶背离>0,5),diff,0),COLORBROWN; DRAWICON(顶背离,diff,2);AA2:=REF(diff,N1)=LLV(diff,2*N1+1);BB2:=BACKSET(AA2,N1+1);CC2:=FILTER(BB2,N1) AND diff=LLV(diff,N1+1);A2:=BARSLAST(REF(CC2,1));底背离:=REF(L,A2+1)>L AND REF(diff,A2+1)<diff AND CC2;DRAWTEXT(底背离,diff*1,'底背离'),COLORYELLOW;DRAWLINE(CC2,diff,FILTER(底背离>0,5),diff,0),COLORBROWN; DRAWICON(底背离,diff,1);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),COLORFF00FF,LINETHICK2;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);V A:=EMA(V9,3);VB:=(V9-V A)/2;大筹金进场: IF(VB>=0,VB,0);aa:=WINNER(CLOSE+CLOSE*15/100)*100;bb:=WINNER(CLOSE+CLOSE*0/100)*100;cc:=aa-bb;dd:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100;ee:=cc<3 and dd<0.5 and OPEN<>LOW;a1:=DYNAINFO(6);a2:=IF(LOW>a1,0,IF(HIGH<a1,1,(a1-LOW+0.01)/(HIGH-LOW+0.01)));a3:=VOL/WINNER(LOW);a4:=REF(HHV(CLOSE,120),1);a5:=REF(LLV(CLOSE,120),1);a6:=100*(CLOSE-a5)/(a4-a5);a7:=a2>0 or a2=1;a8:=a7 and a3/REF(a3,3)>=3 and a6<80;a9:=REF(a8,1) or REF(a8,2) or REF(a8,3) or REF(a8,4);a10:=a8 and a9;a11:=IF(FILTER(a8,3),5,0);a12:=IF(FILTER(a10,3) or ee,10,0);DRAWTEXT(a11,8,'筹码进场');V ar1:=REF(LOW,1);V ar2:=SMA(ABS(LOW-V ar1),13,1)/SMA(MAX(LOW-V ar1,0),13,1)*4;V ar3:=EMA(V ar2,13);V ar4:=LLV(LOW,34);V ar5:=EMA(IF(LOW<=V ar4,V ar3,0),3);V ar6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SM A(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V ar7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA (SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V ar8:=V ar6<REF(V ar7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(V ar8 AND COUNT(V ar8,30)=1,40,'★筹码进场');上收:=c;上高:=h;上低:=l;箱顶a:=MA(REF(HHV(上收,6),1),3);箱底a:=MA(REF(LLV(上收,3),1),3);箱顶:=MA(REF(HHV(上收,30),1),2),COLOR0000FF;箱底:=MA(REF(LLV(上收,30),1),2),COLOR00FF00;V ar1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;V ar2:=SMA(V ar1,3,1);V ar3:=SMA(V ar2,3,1);V ar4:=SMA(V ar3,3,1);DRAWTEXT(CROSS(V ar3,V ar4) AND V ar3<40,箱底,'低吸'),COLORf00ff0;DRAWTEXT(CROSS(V ar4,V ar3) AND V ar4>75 ,箱顶*1.02,'高减'),COLORf0f000;V AR100:=EMA(CLOSE,3);V AR200:=EMA(CLOSE,21);V AR300:=BARSLAST(CROSS(V AR200,V AR100))>15;V AR400:=VOL>MA(VOL,5)*2 AND VOL<MA(VOL,5)*5;V AR500:=CROSS(V AR100,V AR200) AND V AR400 AND V AR300;黑马:=IF(V AR500,60,0),STICK,LINETHICK3,COLORF00FF0;DRAWTEXT(V AR500,78,'黑马!'),COLORF00FF0;XG:=HHV(H,480),COLORGREEN;DRAWTEXT(FILTER(CROSS(C,REF(XG,1)),10) AND C>REF(XG,1),C*0.99,'突破'),COLORRED;白沙抓涨停N:1000 0 1000N1:5 1 20N2:5 5 50N3:12 3 50V ar1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);{ZIG 有未来} V ar2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);STICKLINE(V ar1,C,O,8,0),COLORYELLOW,LINETHICK9;{高位黄色}STICKLINE(V ar1,C,O,3,0),COLORYELLOW,LINETHICK9;{高位黄色}STICKLINE(V ar1,H,L,1,0),COLORYELLOW,LINETHICK9;{高位黄色}STICKLINE(V ar2,C,O,8,0),COLORFF00FF,LINETHICK9;{底位红色}STICKLINE(V ar2,C,O,3,0),COLORFF00FF,LINETHICK9;{底位红色}STICKLINE(V ar2,H,L,1,0),COLORFF00FF,LINETHICK9;{底位红色}input:p1(10,0,999,1),p2(20,0,999,1),p3(120,0,999,1),p4(250,0,999,1);MA1:=MA(CLOSE,P1);MA2:=MA(CLOSE,P2);MA3:=MA(CLOSE,P3); {MA4:MA(CLOSE,P4);}rcc:DYNAINFO(3); s2:=sma(c,3,1); s6:=sma(c,5,1);dk:10*(s2-s6); kk:=IF(DA TA TYPE=8,0.95,1);STICKLINE(dk>0,rcc*kk,rcc*kk+dk,0,1),COLORRED;STICKLINE(dk<0,rcc*kk,rcc*kk+dk,0,1),COLORCY AN;INPUT:N(1000),TT(2);流通:FINANCE(7)/10000,LINETHICK0,PRECISION2,colorFFFF00;系数:=IF(流通>=10,1,IF(流通<10,0.75,0));门限:=流通*系数/10*N;主动买入:=SUM(BUYVOL,0);主动卖出:=SUM(SELLVOL,0);买卖差:=主动买入-主动卖出;大单买:=IF(BUYVOL>=门限,BUYVOL,0);大单卖:=IF(SELLVOL>门限,SELLVOL,0);大单买入:=SUM(大单买,0);大单卖出:=SUM(大单卖,0);小单买入:=主动买入-大单买入;小单卖出:=主动卖出-大单卖出;DRAWTEXTEX(DYNAINFO(7),1,20,70,'■大单买入: '+NUMTOSTR(大单买入,0)),LINETHICK2,colorFF;DRAWTEXTEX(DYNAINFO(7),1,300,70,'占:'+NUMTOSTR(FLOOR(大单买入/(主动买入+主动卖出)*100),0)+'%'),LINETHICK2,colorFF;DRAWTEXTEX(DYNAINFO(7),1,20,130,'■大单卖出: '+NUMTOSTR(大单卖,0)),LINETHICK2,colorFF00;DRAWTEXTEX(DYNAINFO(7),1,300,130,'占:'+NUMTOSTR(FLOOR(大单卖出/(主动买入+主动卖出)*100),0)+'%'),LINETHICK2,colorFF00;DRAWTEXTEX(DYNAINFO(7),1,20,190,'■小单买入: '+NUMTOSTR(小单买入,0)),LINETHICK2,colorFF00FF;DRAWTEXTEX(DYNAINFO(7),1,300,190,'占:'+NUMTOSTR(FLOOR(小单买入/(主动买入+主动卖出)*100),0)+'%'),LINETHICK2,colorFF00FF;DRAWTEXTEX(DYNAINFO(7),1,20,240,'■小单卖出: '+NUMTOSTR(小单卖出,0)),LINETHICK2,colorFFFF00;DRAWTEXTEX(DYNAINFO(7),1,300,240,'占:'+NUMTOSTR(FLOOR(小单卖出/(主动买入+主动卖出)*100),0)+'%'),LINETHICK2,colorFFFF00;V ARA:=IF(BUYVOL<=REF(ASKVOL(1),1)+REF(ASKVOL(2),1)+REF(ASKVOL(3),1) AND CLOSE>=REF(ASKPRICE(3),1),BUYVOL,0);上扫单:=SUM(INTPART(IF(V ARA>100 AND V ARA<500 OR V ARA>=500,BUYVOL,0)),0);V ARB:=IF(SELLVOL<=REF(BIDVOL(1),1)+REF(BIDVOL(2),1)+REF(BIDVOL(3),1) AND CLOSE<=REF(BIDPRICE(3),1),SELLVOL,0);下扫单:=SUM(INTPART(IF(V ARB>100 AND V ARA<500 OR V ARB>=500,SELLVOL,0)),0); DRAWTEXTEX(DYNAINFO(7),1,20,300,'■上扫单: '+NUMTOSTR(上扫单,0)),LINETHICK2,colorFF;DRAWTEXTEX(DYNAINFO(7),1,20,360,'■下扫单: '+NUMTOSTR(下扫单,0)),LINETHICK2,colorFFFF00;DRAWTEXTEX(DYNAINFO(7),1,20,420,'■买卖差: '+NUMTOSTR(买卖差,0)),LINETHICK2,colorFF00;TST:=OPENMINUTES(TIME);CLOSE=DYNAINFO(7);总量:=SUM(VOL,TST);总额:=SUM(AMOUNT,TST);均价:总额/(总量*100),LINETHICK0;次数:COUNT(CLOSE>均价,TT),LINETHICK0;占比:次数/TST*100,LINETHICK0;分时强势:DRA WICON(CROSS(CLOSE,均价) AND CLOSE>均价AND 占比>80 AND TST>5,CLOSE*0.99,10);PK:=VOL*(OPEN+CLOSE+HIGH+LOW)/4;PK1:=IF(VOL>0,PK/VOL,(OPEN+CLOSE+HIGH+LOW)/4);C11:=PK1;A01:=(C11-LLV(C11,75))/(HHV(C11,75)-LLV(C11,75));A11:=SMA(A01,13,1);A21:=SMA(A11,13,1);A31:=3*A11-2*A21;A41:=2*A31-0.5;ZS:DYNAINFO(3)*0.92;K1:=IF(1,C11*(1-(A41-A21)/40),0);K2:=CROSS(C11,K1) AND CLOSE/REF(CLOSE,1)<1.03 AND SUM(BUYVOL,5)>=3000 AND 主动买入>主动卖出*1.15;K3:IF(K2,ZS*1.03,ZS),colorFF00;LB:=SUM(VOL,0)*240/DYNAINFO(38)/BARSCOUNT(CLOSE);PK:=IF(TIME>=93100,BUYVOL,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),COLORFF00FF,LINETHICK2;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);V A:=EMA(V9,3);VB:=(V9-V A)/2;大筹金进场: IF(VB>=0,VB,0);aa:=WINNER(CLOSE+CLOSE*15/100)*100;bb:=WINNER(CLOSE+CLOSE*0/100)*100;cc:=aa-bb;dd:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100;ee:=cc<3 and dd<0.5 and OPEN<>LOW;a1:=DYNAINFO(6);a2:=IF(LOW>a1,0,IF(HIGH<a1,1,(a1-LOW+0.01)/(HIGH-LOW+0.01)));a3:=VOL/WINNER(LOW);a4:=REF(HHV(CLOSE,120),1);a5:=REF(LLV(CLOSE,120),1);a6:=100*(CLOSE-a5)/(a4-a5);a7:=a2>0 or a2=1;a8:=a7 and a3/REF(a3,3)>=3 and a6<80;a9:=REF(a8,1) or REF(a8,2) or REF(a8,3) or REF(a8,4);a10:=a8 and a9;a11:=IF(FILTER(a8,3),5,0);a12:=IF(FILTER(a10,3) or ee,10,0);DRAWTEXT(a11,8,'筹码进场');V ar1:=REF(LOW,1);V ar2:=SMA(ABS(LOW-V ar1),13,1)/SMA(MAX(LOW-V ar1,0),13,1)*4;V ar3:=EMA(V ar2,13);V ar4:=LLV(LOW,34);V ar5:=EMA(IF(LOW<=V ar4,V ar3,0),3);V ar6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SM A(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V ar7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA (SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V ar8:=V ar6<REF(V ar7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(V ar8 AND COUNT(V ar8,30)=1,40,'★筹码进场');V1:=EMA(CLOSE,5),Color00FFFF;V2:=EMA((EMA(CLOSE,29))*(1.01),10),ColorFF00FF;DRAWicon(CROSS(V1,V2),low,1),COLORYELLOW;DRAWTEXT(CROSS(V1,V2),low*0.98,'招招先'),COLORYELLOW;V arr1:=SMA(MAX(CLOSE-ref(c,1),0),12,1)/SMA(ABS(CLOSE-ref(c,1)),15,1)*100; DRAWTEXT(CROSS(82,V arr1),high*1.015,'快卖'),color00ff00;A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'变盘'),COLORFFFFFF;{n1 5.1.20.1 n2 5.5.50.1 n3 12.3.50.1}V ar1:=MA(CLOSE,5);V ar2:=999999999999999999999999999;V ar3:=999999999999999999999999999;V ar4:=999999999999999999999999999;俺的牛A:=MA(CLOSE,13);V ar5:=MA(CLOSE,34);V ar6:=MA(CLOSE,60);V ar7:=999999999999999999999999999;V ar8:=999999999999999999999999999;V ar9:=999999999999999999999999999;俺的牛B:=(EMA(CLOSE,N1)*7+EMA(CLOSE,N2)*3)/10;俺的牛C:=DMA(EMA(CLOSE,N3),SUM(VOL/CAPITAL,5)/3);V arA:=REF(CLOSE,1);V arB:=999999999999999999999999999;V arC:=999999999999999999999999999;V arD:=999999999999999999999999999;V arE:=SMA(MAX(CLOSE-V arA,0),6,1)/SMA(ABS(CLOSE-V arA),6,1)*100;DRAWTEXT(DA TE>700101 AND CROSS(84,V arE),HIGH,'☆卖出');V arF:=(2*CLOSE+HIGH+LOW)/4;V ar10:=LLV(LOW,34);V ar11:=HHV(HIGH,34);V ar12:=EMA((V arF-V ar10)/(V ar11-V ar10)*100,6);V ar13:=EMA(0.667*REF(V ar12,1)+0.333*V ar12,4);V ar14:=LLV(LOW,120);V ar15:=HHV(HIGH,120);V ar16:=V ar15-V ar14;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(V ar12>V ar13,3) AND REF(LOW,1)=LLV(LOW,120) ANDCLOSE>OPEN,1,0),LOW,'★进场');上收:=c;上高:=h;上低:=l;箱顶a:=MA(REF(HHV(上收,6),1),3);箱底a:=MA(REF(LLV(上收,3),1),3);箱顶:=MA(REF(HHV(上收,30),1),2),COLOR0000FF;箱底:=MA(REF(LLV(上收,30),1),2),COLOR00FF00;V ar1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;V ar2:=SMA(V ar1,3,1);V ar3:=SMA(V ar2,3,1);V ar4:=SMA(V ar3,3,1);DRAWTEXT(CROSS(V ar3,V ar4) AND V ar3<40,箱底,'低吸'),COLORf00ff0;DRAWTEXT(CROSS(V ar4,V ar3) AND V ar4>75 ,箱顶*1.02,'高减'),COLORf0f000;r:=动态行情(3);q:=序列数据量;hh:=动态行情(5);LL:=动态行情(6);f:=最大值(hh-r,r-LL);q1:=r-f*1.01;//主图下边线q2:=r-2*f*1.0125;//副图1下边线(0位线)q3:=r-3*f*1.014;//副图2下边线(0位线){有了Q1、Q2、Q3,叠加副图指标也就容易了}//在副图1叠加RSI//在副图2叠加kdk:="kdj.k";d:="kdj.d";kh:=最高值(最大值(d,k),0);kL:=最低值(最小值(k,d),0);kb:=(q2-q3)/(kh-kL);ky:=(q2+q3-kb*(kh+kL))/2;k*kb[q]+ky[q],COLORRED;d*kb[q]+ky[q],COLORGREEN;q:=datacount;r:=DYNAINFO(3);hh:=DYNAINFO(5);LL:=DYNAINFO(6);f:=max(hh-r,r-LL);q1:=r-f*1.01;//主图下边线q2:=r-2*f*1.0125;//副图1下边线(0位线)q3:=r-3*f*1.014;//副图2下边线(0位线){有了Q1、Q2、Q3,叠加副图指标也就容易了}//在副图2叠加macddk:="macd.macd";k:="macd.diff";d:="macd.dea";kh:=hhv(max(d,k),0);kL:=LLv(min(k,d),0);kb:=(q1-q2)/(kh-kL);ky:=(q1+q2-kb*(kh+kL))/2;k*kb[q]+ky[q],Color0000FF,LINETHICK2;//DIFF画在副图下边线d*kb[q]+ky[q],Color00FF00,LINETHICK2;//DEA画在副图下边线if datatype>=0 then exit;////////****** 计算指标变换所需的公共数据*******rc:=DYNAINFO(3);//前收q:=datacount;hh:=DYNAINFO(5);//最高LL:=DYNAINFO(6);//最低f:=max(hh-rc,rc-LL);ff:=f/rc*100;//最大半振幅r:=DYNAINFO(3);q:=datacount;hh:=DYNAINFO(5);LL:=DYNAINFO(6);f:=max(hh-r,r-LL);q1:=r-f*1.01;//主图下边线q2:=r-2*f*1.0125;//副图1下边线(0位线)q3:=r-3*f*1.014;//副图2下边线(0位线){有了Q1、Q2、Q3,叠加副图指标也就容易了}/////////////////////////////////////////////////////////////////////////********㈡在副图2叠加macd********//副图2变换所需数据q2h:=if(ff<1,0.9797*rc,rc-2*f*1.016);//分时副图2最高位置q2l:=if(ff<1,0.9697*rc,rc-3*f*1.011);//分时副图2最低位置//以下清除原始的指标线,并画横坐标线FILLRGN(1,q2h,q2l),colorblack;cz:=(q2h-q2l)/6;q2l,POINTDOT,,COLORWHITE;q2l+cz,POINTDOT,color0000cc;q2l+2*cz,POINTDOT,color0000cc;q2l+3*cz,POINTDOT,color0000cc;q2l+4*cz,POINTDOT,color0000cc;q2l+5*cz,POINTDOT,color0000cc;a1:="macd.diff";a2:="macd.dea";a3:="macd.macd";mh:=hhv(max(a1,a3),0);mL:=LLv(min(a3,a1),0);mb:=(q2h-q2l)/(mH[q]-mL[q]);//缩放比例,选macd或diff来计算缩放比例my:=(q2h+q2l-mb*(mH[q]+mL[q]))/2;//平移值diff:a1*mb+my,COLORWHITE;//副图2显示原来的diff指标线dea:a2*mb+my,COLORYELLOW;//副图2显示原来的dea指标线macd:=a3*mb+my;//副图2显示原来的macd指标线STICKLINE(macd>my,my,macd,1,1),COLORRED;STICKLINE(macd<my,my,macd,1,1),COLORCY AN;SZ:=(3*CLOSE+2*OPEN+LOW+HIGH)/7;趋势:=EMA(3*SZ-2*SMA(SZ,2,1),10),Colorred,linethick2;aA1:=趋势;aA2:=趋势;aA3:=趋势;mhA:=hhv(max(aA1,aA3),0);mLA:=LLv(min(aA3,aA1),0);mbA:=(q2h-q2l)/(mHA[q]-mLA[q]);//缩放比例,选macd或diff来计算缩放比例myA:=(q2h+q2l-mbA*(mHA[q]+mLA[q]))/2;//平移值hhh:aA1*mbA+myA,COLORMAGENTA;//副图2显示原来的diff指标线NNNCNfRGORRNNN2DfYELORRED;发大财:M2:10 2 1000M3:20 2 1000M4:60 2 1000N1:5 0 30MA2:MA(CLOSE,M2),COLORred,linethick2;MA3:MA(CLOSE,M3),COLORGREEN,linethick2;MA4:MA(CLOSE,M4),COLORCY AN,linethick2;V ARF1:=(2*CLOSE+HIGH+LOW)/4;V AR100:=LLV(LOW,34);V AR110:=HHV(HIGH,34);V AR12:=EMA((V ARF1-V AR100)/(V AR110-V AR100)*100,6);V AR13:=EMA(0.667*REF(V AR12,1)+0.333*V AR12,4);V AR14:=LLV(LOW,120);V AR15:=HHV(HIGH,120);V AR16:=V AR15-V AR14;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(V ar12>V ar13,3) AND REF(LOW,1)=LLV(LOW,120) ANDCLOSE>OPEN,1,0),LOW,'★进场');A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;V1:=EMA(CLOSE,5),COLOR00FFFF;V2:=EMA((EMA(CLOSE,29))*(1.01),10),COLORFF00FF;DRAWTEXT(CROSS(V1,V2),LOW*0.98,'招招先'),COLORYELLOW;V AR2:=REF(CLOSE,1);V AR4:=SMA(MAX(CLOSE-V AR2,0),12,1)/SMA(ABS(CLOSE-V AR2),12,1)*100;DRAWTEXT(CROSS(V AR4,20),LOW-(HIGH-LOW),'底↑'), , COLORRED;上收:=c;上高:=h;上低:=l;箱顶a:=MA(REF(HHV(上收,6),1),3);箱底a:=MA(REF(LLV(上收,3),1),3);箱顶:=MA(REF(HHV(上收,30),1),2),COLOR0000FF;箱底:=MA(REF(LLV(上收,30),1),2),COLOR00FF00;V ar1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;V ar2:=SMA(V ar1,3,1);V ar3:=SMA(V ar2,3,1);V ar4:=SMA(V ar3,3,1);DRAWTEXT(CROSS(V ar3,V ar4) AND V ar3<40,箱底,'低吸'),COLORf00ff0;V AR93:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SM A((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V AR94:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V AR95:= V AR93<REF(V AR94,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(V AR95 AND COUNT(V AR95,30)=1,HIGH*1.095,'大资金'),COLORRED;VV2:=REF(CLOSE,1);VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;DRAWTEXT(REF(VV3,1)>81 AND VV3<80,120,'闪★'),COLORGREEN;V AR222:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2); STICKLINE(V AR222,C,O,8,0)COLORYELLOW,LINETHICK5;{底位黄色}STICKLINE(V AR222,C,O,3,0)COLORYELLOW,LINETHICK5;{底位黄色}STICKLINE(V AR222,H,L,1,0)COLORYELLOW,LINETHICK5;{底位黄色};V AR1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);{ZIG 有未来}STICKLINE(V AR1,C,O,8,0),COLORBLUE,LINETHICK5;{高位黄色}STICKLINE(V AR1,C,O,3,0),COLORBLUE,LINETHICK5;{高位黄色}STICKLINE(V AR1,H,L,1,0),COLORBLUE,LINETHICK5;{高位黄色};r:=DYNAINFO(3);q:=datacount;hh:=DYNAINFO(5);LL:=DYNAINFO(6);f:=max(hh-r,r-LL);q1:=r-f*1.01;//主图下边线q2:=r-2*f*1.0125;//副图1下边线(0位线)q3:=r-3*f*1.014;//副图2下边线(0位线){有了Q1、Q2、Q3,叠加副图指标也就容易了}///////////////////////////////////////////////////////////////////在副图2叠加macddk:="macd.macd";k:="macd.diff";d:="macd.dea";kh:=hhv(max(d,k),0);kL:=LLv(min(k,d),0);kb:=(q1-q2)/(kh-kL);ky:=(q1+q2-kb*(kh+kL))/2;k*kb[q]+ky[q],Color0000FF,LINETHICK2;//DIFF画在副图下边线d*kb[q]+ky[q],Color00FF00,LINETHICK2;//DEA画在副图下边线if datatype>=0 then exit;////////****** 计算指标变换所需的公共数据*******rc:=DYNAINFO(3);//前收q:=datacount;hh:=DYNAINFO(5);//最高LL:=DYNAINFO(6);//最低f:=max(hh-rc,rc-LL);ff:=f/rc*100;//最大半振幅////////********㈡在副图2叠加macd********//副图2变换所需数据q2h:=if(ff<1,0.9797*rc,rc-2*f*1.016);//分时副图2最高位置q2l:=if(ff<1,0.9697*rc,rc-3*f*1.011);//分时副图2最低位置//以下清除原始的指标线,并画横坐标线FILLRGN(1,q2h,q2l),colorblack;cz:=(q2h-q2l)/6;q2l,POINTDOT,,COLORWHITE;q2l+cz,POINTDOT,color0000cc;q2l+2*cz,POINTDOT,color0000cc;q2l+3*cz,POINTDOT,color0000cc;q2l+4*cz,POINTDOT,color0000cc;q2l+5*cz,POINTDOT,color0000cc;a1:="macd.diff";a2:="macd.dea";a3:="macd.macd";mh:=hhv(max(a1,a3),0);mL:=LLv(min(a3,a1),0);mb:=(q2h-q2l)/(mH[q]-mL[q]);//缩放比例,选macd或diff来计算缩放比例my:=(q2h+q2l-mb*(mH[q]+mL[q]))/2;//平移值diff:a1*mb+my,COLORWHITE;//副图2显示原来的diff指标线dea:a2*mb+my,COLORYELLOW;//副图2显示原来的dea指标线macd:=a3*mb+my;//副图2显示原来的macd指标线STICKLINE(macd>my,my,macd,1,1),COLORRED;STICKLINE(macd<my,my,macd,1,1),COLORCY AN;SZ:=(3*CLOSE+2*OPEN+LOW+HIGH)/7;趋势:=EMA(3*SZ-2*SMA(SZ,2,1),10),Colorred,linethick2;aA1:=趋势;aA2:=趋势;aA3:=趋势;mhA:=hhv(max(aA1,aA3),0);mLA:=LLv(min(aA3,aA1),0);mbA:=(q2h-q2l)/(mHA[q]-mLA[q]);//缩放比例,选macd或diff来计算缩放比例myA:=(q2h+q2l-mbA*(mHA[q]+mLA[q]))/2;//平移值hhh:aA1*mbA+myA,COLORMAGENTA;//副图2显示原来的diff指标线NNNCNfRGORRNNN2DfYELORRED;AA2:=REF(diff,N1)=LLV(diff,2*N1+1);BB2:=BACKSET(AA2,N1+1);CC2:=FILTER(BB2,N1) AND diff=LLV(diff,N1+1);A2:=BARSLAST(REF(CC2,1));底背离:=REF(CLOSE,A2+1)>CLOSE AND REF(diff,A2+1)<diff AND CC2;DRAWICON(底背离,diff,1);DRAWTEXT(底背离,diff,'底背离'),COLORYELLOW;DRAWLINE(CC2,diff,FILTER(底背离>0,5),diff,0),COLORRED;分时叠加冲顶N1:5 0 30N2:5 0 30A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;V arF:=(2*CLOSE+HIGH+LOW)/4;V ar10:=LLV(LOW,34);V ar11:=HHV(HIGH,34);V ar12:=EMA((V arF-V ar10)/(V ar11-V ar10)*100,6);V ar13:=EMA(0.667*REF(V ar12,1)+0.333*V ar12,4);V ar14:=LLV(LOW,120);V ar15:=HHV(HIGH,120);V ar16:=V ar15-V ar14;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(V ar12>V ar13,3) AND REF(LOW,1)=LLV(LOW,120) ANDCLOSE>OPEN,1,0),LOW,'★进场');SFF:=H/REF(H,1)<1 AND REF(h,1)/REF(h,2)<1 AND L/REF(L,1)>1 and REF(L,1)/REF(L,2)>1 ;DRAWTEXT(SFF,L*0.97,'大鲨鱼'),COLORYELLOW;input:n1(5,0,30),n2(5,0,30);ma13:ma(c,13),COLORRED,linethick2;ma34:ma(c,34),COLORGREEN,linethick2;ma55:ma(c,55),COLORCY AN,linethick2;DRAWICON(cross(ma13,ma55) and ma34>ref(ma34,1) and ma55>ref(ma55,1),ma55,1);if datatype>=0 then exit;////////****** 计算指标变换所需的公共数据*******rc:=DYNAINFO(3);//前收q:=datacount;hh:=DYNAINFO(5);//最高LL:=DYNAINFO(6);//最低f:=max(hh-rc,rc-LL);ff:=f/rc*100;//最大半振幅////////////////////////////////////////////////////////////////////////******㈠副图1叠加大盘分时线******(共3个步骤完成指标变换)//副图1变换所需数据q1h:=if(ff<1,0.9898*rc,rc-f*1.02);//分时副图1最高位置q1l:=if(ff<1,0.9798*rc,rc-2*f*1.016);//分时副图1最低位置,同时也是分时副图2最高位置//①以下计算大盘分时线的最大、最小值R:=INDEXC;Rh:=hhv(r,0);//最大值RL:=LLv(r,0);//最小值//②计算缩放比例、平移值Rb:=(q1h-q1l)/(RH[q]-RL[q]);//缩放比例Ry:=(q1h+q1l-rb*(RH[q]+RL[q]))/2;//平移值//③变换原来的大盘分时到分时副图1msd:r*rb+ry,COLORMAGENTA,LINETHICK2;//在分时副图1,显示变换后的大盘分时/////////////////////////////////////////////////////////////////r:=DYNAINFO(3);q:=datacount;hh:=DYNAINFO(5);LL:=DYNAINFO(6);f:=max(hh-r,r-LL);q1:=r-f*1.01;//主图下边线q2:=r-2*f*1.0125;//副图1下边线(0位线)q3:=r-3*f*1.014;//副图2下边线(0位线){有了Q1、Q2、Q3,叠加副图指标也就容易了}//在副图1叠加RSIr:="rsi.rsi1";rh:=hhv(r,0);rL:=LLv(r,0);rb:=(q1-q2)/(rh-rL);ry:=(q1+q2-rb*(rh+rL))/2;rsi14:r*rb[q]+ry[q],COLORGREEN,LINETHICK2;AAa:=REF(rsi14,N2)=HHV(rsi14,2*N2+1);BBb:=BACKSET(AAa,N2+1);CCc:=FILTER(BBb,N2) AND rsi14=HHV(rsi14,N2+1);Aa1:=BARSLAST(REF(CCc,1));顶背离:=REF(H,aA1+1)<H AND REF(rsi14,aA1+1)>rsi14 AND CCc; DRAWLINE(CCc,rsi14,FIL TER(顶背离>0,5),rsi14,0);DRAWTEXT(顶背离,rsi14*1,'顶背离'),COLORYELLOW;AAa2:=REF(rsi14,N2)=LLV(rsi14,2*N2+1);BBb2:=BACKSET(AAa2,N2+1);CCc2:=FILTER(BBb2,N2) AND rsi14=LLV(rsi14,N2+1);Aa2:=BARSLAST(REF(CCc2,1));底背离:=REF(L,Aa2+1)>L AND REF(rsi14,Aa2+1)<rsi14 AND CCc2; DRAWLINE(CCc2,rsi14,FIL TER(底背离>0,5),rsi14,0),COLORMAGENTA; DRAWTEXT(底背离,rsi14,'底背离'),COLORYELLOW;DRAWICON(cross(rsi14,msd),msd,1);/////////////////////////////////////////////////////////////////////////********㈡在副图2叠加macd********//副图2变换所需数据q2h:=if(ff<1,0.9797*rc,rc-2*f*1.016);//分时副图2最高位置q2l:=if(ff<1,0.9697*rc,rc-3*f*1.011);//分时副图2最低位置//以下清除原始的指标线,并画横坐标线FILLRGN(1,q2h,q2l),colorblack;cz:=(q2h-q2l)/6;q2l,POINTDOT,,COLORWHITE;q2l+cz,POINTDOT,color0000cc;q2l+2*cz,POINTDOT,color0000cc;q2l+3*cz,POINTDOT,color0000cc;q2l+4*cz,POINTDOT,color0000cc;q2l+5*cz,POINTDOT,color0000cc;a1:="macd.diff";a2:="macd.dea";a3:="macd.macd";mh:=hhv(max(a1,a3),0);mL:=LLv(min(a3,a1),0);mb:=(q2h-q2l)/(mH[q]-mL[q]);//缩放比例,选macd或diff来计算缩放比例my:=(q2h+q2l-mb*(mH[q]+mL[q]))/2;//平移值diff:a1*mb+my,COLORWHITE;//副图2显示原来的diff指标线dea:a2*mb+my,COLORYELLOW;//副图2显示原来的dea指标线macd:=a3*mb+my;//副图2显示原来的macd指标线STICKLINE(macd>my,my,macd,1,1),COLORRED;STICKLINE(macd<my,my,macd,1,1),COLORCY AN;SZ:=(3*CLOSE+2*OPEN+LOW+HIGH)/7;趋势:=EMA(3*SZ-2*SMA(SZ,2,1),10),Colorred,linethick2;aA1:=趋势;aA2:=趋势;aA3:=趋势;mhA:=hhv(max(aA1,aA3),0);mLA:=LLv(min(aA3,aA1),0);mbA:=(q2h-q2l)/(mHA[q]-mLA[q]);//缩放比例,选macd或diff来计算缩放比例myA:=(q2h+q2l-mbA*(mHA[q]+mLA[q]))/2;//平移值hhh:aA1*mbA+myA,COLORMAGENTA;//副图2显示原来的diff指标线AA:=REF(diff,N1)=HHV(diff,2*N1+1);BB:=BACKSET(AA,N1+1);CC:=FILTER(BB,N1) AND diff=HHV(diff,N1+1);A1:=BARSLAST(REF(CC,1));顶背离:=REF(CLOSE,A1+1)<CLOSE AND REF(diff,A1+1)>diff AND CC; DRAWICON(顶背离,diff,2);DRAWTEXT(顶背离,diff*1.2,'顶背离'),COLORGREEN;DRAWLINE(CC,diff,FILTER(顶背离>0,5),diff,0),COLORRED;AA2:=REF(diff,N1)=LLV(diff,2*N1+1);。

大智慧短期底部指标公式

大智慧短期底部指标公式

大智慧短期底部指标公式RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);短期底部:=LLV(OPEN,30);K:SMA(RSV,3,1);D:SMA(K,3,1);J:((3 * K) - (2 * D));AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);IF((K > D),K,D),COLORFF00FF;IF((K < D),D,K),COLORFFFF00;IF((J > D),J,D),LINETHICK2,COLOR0000FF;IF((J < D),D,J),LINETHICK2,COLOR00FF00;20,POINTDOT,COLOR00FF00;80,POINTDOT,COLOR00FF00;VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);底部1:IF(VAR6 ,20,0),COLORFFFF00;STICKLINE((CROSS(J,K) AND (底部 1 >= 20)),100,0,2,0),COLORFFFFFF;DRAWICON((CROSS(J,K) AND (底部1 >= 20)),100,1);DRAWTEXT((CROSS(J,K) AND (底部1 >= 20)),98,'全');STICKLINE((VAR6 <= (0 - 15)),80,4.88,2,0);DRAWTEXT((VAR6 <= (0 - 15)),80,'买'),COLORFFFFFF;STICKLINE((VAR6 <= (0 - 15)),80,60,2,0),COLOR0000FF;VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));VAR8:=(((CLOSE - VAR7) / VAR7) * 100);VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) < REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) > 2.5));VARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),5,1) / SMA(ABS((CLOSE - VARD)),5,1)) * 100);VARF:=(((HIGH + LOW) + CLOSE) / 3);VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR13:=(VAR11 AND VAR12);VAR14:=((((VARA >= (0 - 45)) AND (VARA <= (0 - 10))) AND (VARB <= (0 - 15))) AND (VARC <= (0 - 20)));VAR15:=(COUNT(VAR14,1) >= 1);VAR16:=(VAR13 AND VAR15);VAR17:=1;VAR18:=(CLOSE * VOL);VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1);VAR1A:=(1 * VAR19);VAR1B:=(VAR19 * 0.92);VAR1C:=EMA(CLOSE,34);VAR1D:=MA((VAR1C * 1.12),5);VAR1E:=MA((VAR1C * 0.82),5);VAR1F:=(CLOSE < VAR1E);VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17));VAR21:=HHV(HIGH,500);VAR22:=LLV(LOW,500);VAR23:=HHV(HIGH,250);VAR24:=LLV(LOW,250);VAR25:=HHV(HIGH,125);VAR26:=LLV(LOW,125);VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35);VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18);VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35);VAR2C:=VAR27;VAR2D:=VAR28;VAR2E:=VAR29;VAR2F:=VAR2A;VAR30:=VAR2B;VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));VAR32:=(INDEXA / 100000000);VAR33:=INDEXADV;VAR34:=INDEXDEC;VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);VAR37:=EMA(VAR35,10);VAR38:=EMA(VAR36,10);VAR39:=EMA(VAR37,10);VAR3A:=EMA(VAR38,20);VAR3B:=EMA(VAR37,3);VAR3C:=EMA(VAR39,6);VAR3D:=EMA(VAR3A,2);VAR3E:=(VAR3C - VAR3D);VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0));VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);VAR41:=VAR40;VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);VAR44:=(CLOSE - REF(MA(CLOSE,20),11));VAR45:=(((((((((((((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE < VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20 AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE < VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR1E) AND VAR31));VAR46:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR47:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR48:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR49:=REF(CLOSE,1);VAR4A:=((SMA(MAX((CLOSE - VAR49),0),5,1) / SMA(ABS((CLOSE - VAR49)),5,1)) * 100);VAR4B:=(((HIGH + LOW) + CLOSE) / 3);VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR4F:=(VAR11 AND VAR12);VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));VAR51:=(COUNT(VAR50,1) >= 1);VAR52:=(VAR4F AND VAR51);VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);VAR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR57:=REF(CLOSE,1);VAR58:=((SMA(MAX((CLOSE - VAR57),0),5,1) / SMA(ABS((CLOSE - VAR57)),5,1)) * 100);VAR59:=(((HIGH + LOW) + CLOSE) / 3);VAR5A:=((VAR59 - MA(VAR59,14)) / (0.015 * AVEDEV(VAR59,14)));VAR5B:=((((((VAR54 >= (0 - 15.8)) AND (VAR54 <= (0 - 12.2))) AND (VAR55 <= (0 - 20.8))) AND (VAR56 <= (0 - 27.5))) AND(VAR58 <= 11.7)) AND (VAR5A <= (0 - 145)));VAR5C:=9.999999884842+026;VAR5D:=(COST(10) * 0);VAR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));VAR61:=MA(CLOSE,3);VAR62:=(REF(CLOSE,2) * 0.865);VAR63:=(REF(CLOSE,13) * 0.772);VAR64:=MIN(VAR62,VAR63);VAR65:=((100 * VOL) / CAPITAL);VAR66:=MA(CLOSE,13);VAR67:=IF(((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8)),1,0);猎鹰出击:IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8))),120,0),LINETHICK2,COLOR0000FF;VAR68:=0;MACD:(VAR6 * 5),COLORSTICK,LINETHICK2;STICKLINE((CROSS(K,D) AND (BB10 > 1)),70,0,2,0),COLORCC99FF;DRAWTEXT((CROSS(K,D) AND (BB10 > 1)),64,'短买'),COLOR00FF00;DRAWICON((CROSS(K,D) AND (BB10 > 1)),70,0);底部预警:STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),5,0),COLOR88B7EA;VARQ:=MA(CLOSE,152);VARW:=MA(CLOSE,194.16);VAREE:=(VARW + (2 * STD(CLOSE,170)));VARR:=(VARQ + (2 * STD(CLOSE,170)));VART:=IF((DATE > 1080822),0,1);VAR611:=EMA(HHV(HIGH,500),21);VAR71:=EMA(HHV(HIGH,250),21);VAR81:=EMA(HHV(HIGH,90),21);VAR91:=EMA(LLV(LOW,500),21);VARA1:=EMA(LLV(LOW,250),21);VARB1:=EMA(LLV(LOW,90),21);VARC1:=EMA((((((((VAR91 * 0.96) + (VARA1 * 0.96)) + (VARB1 * 0.96)) + (VAR611 * 0.558)) + (VAR71 * 0.558)) + (VAR81 * 0.558)) / 6),21);VARD1:=EMA((((((((VAR91 * 1.25) + (VARA1 * 1.23)) + (VARB1 * 1.2)) + (VAR611 * 0.55)) + (VAR71 * 0.55)) + (VAR81 * 0.65)) / 6),21);VARE1:=EMA((((((((VAR91 * 1.3) + (VARA1 * 1.3)) + (VARB1 * 1.3)) + (VAR611 * 0.68)) + (VAR71 * 0.68)) + (VAR81 * 0.68)) / 6),21);VARF1:=EMA((((((VARC1 * 3) + (VARD1 * 2)) + VARE1) / 6) * 1.738),21);VAR101:=REF(LOW,1);VAR111:=((SMA(ABS((LOW - VAR101)),3,1) / SMA(MAX((LOW - VAR101),0),3,1)) * 100);VAR121:=EMA(IF(((CLOSE * 1.35) <= VARF1),(VAR111 * 10),(VAR111 / 10)),3);VAR131:=LLV(LOW,30);VAR141:=HHV(VAR121,30);VAR151:=IF(MA(CLOSE,58),1,0);VAR161:=((EMA(IF((LOW <= VAR131),((VAR121 + (VAR141 * 2)) / 2),0),3) / 618) * VAR151);VAR171:=(((IF((VAR161 > 50),50,VAR161) / 20) * 15) * VART);底部吸筹:STICKLINE((VAR171 > 0),0,VAR171,1,1),COLORFF00FF;STICKLINE(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,0,3,0),COLOR0000FF;DRAWTEXT(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,'抄底'),COLOR0000FF;STICKLINE(CROSS(90,J),88,100,2,0),COLOR00FF00;DRAWTEXT(CROSS(90,J),108,'逃'),COLORFFFFFF;STICKLINE(CROSS(J,(0 - 5)),0,10,6,0),COLOR00FF00;DRAWTEXT(CROSS(J,(0 - 5)),(0 - 4),'低吸'),COLOR00FF00;SG:=EMA(HHV(HIGH,1),8);X1:=EMA(CLOSE,8);X30:=((X1 < REF(X1,1)) AND (CLOSE < X1));X31:=IF(((SG < REF(SG,1)) OR X30),1,0);全仓出击:=((((COUNT((X31 = 1),4) = 3) AND (X31 = 0)) AND (((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) > 0.085)) * 89);STICKLINE(全仓出击>=89,0,100,6,0),COLOR0000FF;DRAWICON((全仓出击 >= 89),全仓出击,1);DRAWTEXT((全仓出击 >= 89),89,'大胆杀入');开始关注:STICKLINE((VAR6 <= (0 - 8)),5,25,7,0);STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,8,0),COLOR000078;STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,6,0),COLOR00009D;STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,5,0),COLOR0000FF;STICKLINE((CROSS(J,0) AND (VAR6 <= (0 -7))),0,100,2,0),COLOR007AB5;DRAWTEXT((CROSS(J,0) AND (VAR6 <= (0 - 7))),100,'导弹发射'),COLOR0000FF;均5:=MA(CLOSE,4);X7:=EMA(EMA(EMA(HIGH,9),9),9);海底:=(X7 * 0.92);海底2:=(X7 * 0.933);中轨道:=MA(CLOSE,2);DRAWTEXT(((CROSS(中轨道,均5) AND (LOW <= 海底)) AND (CLOSE >= 海底2)),85,'底部'),COLOR00FFFF;STICKLINE(((CROSS(中轨道,均5) AND (LOW <= 海底)) AND (CLOSE >= 海底2)),0,85,4,0),COLOR00FFFF;。

大智慧指标公式集

大智慧指标公式集

大智慧指标公式集一、预测明天{预测明天-大智慧公式}E:=(H+L+O+2*C)/5;次日突破价:E+(H-L);次日阻力价:2*E-L;次日支撑价:2*E-H;次日下跌反转价:E-(H-L);次日心理价:(E+次日突破价+次日阻力价+次日支撑价+次日下跌反转价)/5;DIFF1:=EMA(C,3)-EMA(C,13);DEA1:=EMA(DIFF1,9);MACD1:=2*(DIFF1-DEA1)*10;DIFF2:=EMA(C,5)-EMA(C,21);DEA2:=MA(DIFF2,9);MACD2:=2*(DIFF2-DEA2)*10;DIFF3:=EMA(C,5)-EMA(C,89);DEA3:=EMA(DIFF3,21);MACD3:=2*(DIFF3-DEA3)*10;STICKLINE(C>0,0,22,6,0),Color8BA400;STICKLINE(C>0,0,10,6,0),Color8BA411;STICKLINE(C>0,0,9.5,6,0),Color8BA422;STICKLINE(C>0,0,9,6,0),Color8BA433;STICKLINE(C>0,0,8.5,6,0),Color8BA444;STICKLINE(C>0,0,8,6,0),Color8BA455;STICKLINE(C>0,0,7.5,6,0),Color8BA466;STICKLINE(C>0,0,7,10,0),Color8BA477;STICKLINE(C>0,0,6.5,6,0),Color8BA488;STICKLINE(C>0,0,6,6,0),Color8BA499;STICKLINE(C>0,0,5.5,6,0),Color8BA4aa;STICKLINE(C>0,0,5,6,0),Color8BA4cc;STICKLINE(C>0,0,4,6,0),Color8BA4ee;STICKLINE(C>0,0,3,6,0),Color8BA4ff;STICKLINE(C>0,0,-15,6,0),Color8BA433;STICKLINE(C>0,0,-10,6,0),Color8BA444;STICKLINE(C>0,0,-5,6,0),Color8BA455;STICKLINE(C>0,0,-1,6,0),Color8BA466;STICKLINE(macd3>=0,0,macd3,8,0),color009e3a;STICKLINE(macd3<0,0,-macd3,8,0),color646464;STICKLINE(macd2>=0,0,macd2,8,0),color007d19;STICKLINE(macd2<0,0,-macd2,8,0),color555555;STICKLINE(macd1>=0,0,macd1,8,0),color006400;STICKLINE(macd1<0,0,-macd1,8,0),color414141;STICKLINE(macd3,0,-abs(macd3)*0.6,8,0),color232323;STICKLINE(macd1,0,-abs(macd1)*0.6,8,0),color0f0f0f;x1:=MA(LLV(C,8)*1.1,13);x2:=MA(HHV(C,21)*0.9,13);x3:=MA(LLV(INDEXC,8)*1.1,13);x4:=MA(HHV(INDEXC,21)*0.9,13);资金进出:=3*(MA(C,1)-(x1+x2)/2-(x1+x2)/2*((x3+x4)/2-EMA(INDEXC,3))/((x3+x4) /2));STICKLINE(资金进出<0,资金进出,0,0.5,0),COLORFFFF00;STICKLINE(资金进出>=0,资金进出,0,0.5,0),ColorFF8BFF;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FASTK:=SMA(RSV,3,1);K:=SMA(FASTK,3,1);D:=SMA(K,5,1);DRAWTEXT(K<23,-10,'ャ'),ColorDBDBDB;DRAWTEXT(K<23,-10,'︼'),Color688EC1;DRAWTEXT(K<23 AND CROSS(K,D),8,'$'),COLORRED,LINETHICK7; DRAWTEXT(CROSS(MACD3,MACD2) andMACD3>ref(MACD3,1),MACD3+2,'$'),COLORRED,LINETHICK7;MA20:=MA(C,20);MA40:=MA(C,40);MA60:=MA(C,60);aa:=BARSLAST(ma60>ma40 and (ma40=ma20 or ma40>ma20));bb:=ref(count(c<ma60,aa)=aa,1);cc:=cross(c,ma60) and vol>ma(vol,5) and (c-ref(c,1))/ref(c,1)*100>3; 芙蓉出水:=bb and cc,color00ff00;drawtext(芙蓉出水,8,'$'),COLORRED;k2:=EMA(c,5),colorffff00;k3:=EMA(c,10),colorffff00;k5:=EMA(c,30),colorffff00;kk5:=EMA(indexc,30),colorffff00;k6:=2*(k2-k5);k7:=2*(k2-k3);k8:=2*(k7+k6),COLORRED;STICKLINE(CROSS(k8,0),0,50,8,0) ,COLORRED;k1:=IF(k8>ref(k8,5) and k3<ref(k3,5) ,1,0 ),COLORYELLOW;k21:=IF(k8>ref(k8,7) and k3<ref(k3,7) ,1,0 ),COLORYELLOW;k31:=IF(k8>ref(k8,9) and k3<ref(k3,9) ,1,0 ),COLORYELLOW;k4:=IF(k8>ref(k8,11) and k3<ref(k3,11) ,1,0 ),COLORYELLOW;nday := 3;down := close/llv(low,60)<=1.2;pma1 := ma(close,2);pma2 := ma(close,5);diff :=ema(close,12) - ema(close,26),colorwhite;dea :=ema(diff,9),colorgreen;vma1:=ma (vol,2)/100000,colorred;vma2:=ma(vol,5)/100000,coloryellow;ppday := barslast(cross(pma1,pma2));vvday := barslast(cross(vma1,vma2));macdday := barslast(cross(diff,dea));A1:=BARSLAST(ref(cross("macd.diff"(5,12,9),"macd.dea"(5,12,9)),1)); 背离、W底、金叉:=ref(c,A1+1)>c andref("macd.diff"(5,12,9),A1+1)<"macd.diff"(5,12,9) andcross("macd.diff"(5,12,9),"macd.dea"(5,12,9)),,colorred;sjcjd:= if((ppday<=nday and vvday<=nday and macdday<=nday ) and (diff<0),1,0);STICKLINE(sjcjd,50,60,6,0),colorwhite,linethick2;MACD:= 2*(diff-dea), COLORSTICK;短趋势:=((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2 *SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1) -50)*1.032+50),COLORRED;Vara2:=(2*CLOSE+HIGH+LOW+OPEN)/5;Vara3:=LLV(LOW,34);Vara4:=HHV(HIGH,34);长趋势:=EMA((Vara2-Vara3)/(Vara4-Vara3)*100,13),color00ff00;判断底:=SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5; Vara5:=CROSS(短趋势,长趋势)AND 长趋势<25;Vara6:=CROSS(短趋势,长趋势)AND 长趋势<50;STICKLINE(Vara5,60,70,8,0) ,colorgreen;XX:=((((CLOSE - MA(CLOSE,34)) / MA(CLOSE,34)) * 100)* 5);B001:=(((((CLOSE - MA(CLOSE,42)) / MA(CLOSE,42)) ) * 100) * 5);B002:=(((((CLOSE - MA(CLOSE,67)) / MA(CLOSE,67)) ) * 100) * 5);B003:=(((XX + B001) / 2) - (B002 ));B004:=(((0 - 100) * (HHV(HIGH,34) - CLOSE)) / (HHV(HIGH,34) -LLV(LOW,34)));B005:=(((0 - 100) * (HHV(HIGH,42) - CLOSE)) / (HHV(HIGH,42) -LLV(LOW,42)));B006:=(((0 - 100) * (HHV(HIGH,72) - CLOSE)) / (HHV(HIGH,72) -LLV(LOW,72)));B007:=EMA((((B004 + B005) / 2) - B006),6);B008:=REF(CLOSE,1);B009:=((((SMA(MAX((CLOSE - B008),0),19,1) / SMA(ABS((CLOSE - B008)),19,1)) * 100) - 50) * 1.25);B010:=((((SMA(MAX((CLOSE - B008),0),34,1) / SMA(ABS((CLOSE - B008)),34,1)) * 100) - 50) * 1.25);B011:=((((SMA(MAX((CLOSE - B008),0),72,1) / SMA(ABS((CLOSE - B008)),72,1)) * 100) - 50) * 1.25);B012:=EMA(((((B009 + B010) / 2) - B011) * 5),6);B013:=((((0 - 1) * ((B007 + B003) + B012)) / 3) * 1.5);B014:=B012;B015:=B013;B016:=EMA(B012,4);B017:=B012;KKM1:=B013;DPM1:=EMA(B013,4);多头:=B017,color0000FF;空头:=KKM1,color00FF00;多均:=B016;空均:=DPM1;B018:=IF(CROSS(B017,KKM1),28,0);xd:=5 ;VARX:=B017;C023:=KKM1;C024:=B016;C025:=DPM1;C026:=WINNER(CLOSE);W:=(DMA(C026,((VOL / CAPITAL) * 1)) * 100);HWXWINNER:=W;XD1:=EMA(W,6);XWXMH:=XD1;XD2:=MA(W,14);庄家控盘:=((HWXWINNER - XWXMH) * 10),COLORff00ff,LINETHICK2; STICKLINE(cross(多头,空均),80,70,8,0) ,COLORYELLOW;Varb1:=(2*CLOSE+HIGH+LOW)/4;Varb2:=LLV(LOW,34);Varb3:=HHV(HIGH,34);Varb4:=ma(HIGH,8);xx1:=EMA((Varb1-Varb2)/(Varb3-Varb2)*100,13);yy:=EMA(0.667*REF(xx1,1)+0.333*xx1,2) , ;STICKLINE(CROSS(xx1,20) AND yy<xx1 andVarb4>ref(Varb4,1),80,90,6,0),COLORFF0000;逃顶:=IF(FILTER(CROSS(YY,XX) AND xx>80 ,3),60,90),COLOR53ff53; {Re:预测明天-用法简介用法简介:一:小船出现是在股价相对的底部,$是参考买点,青山出现表示股价逐渐走强.当黑色大山出现时表示股价逐渐走弱.二:1 红柱线是中线指示2 其余四色柱线是短线指示3连续发出三个以上短线指示,可以短线买入.4连续发出三个以上短线指示后,发出中线指示,可以重仓买入.一年中线重仓买入,一般不会超过4次.三:1、次日上升突破价位:如明日此价位最高价超过此价位,则有上升行情产生,可当日买入,或观察近几日可逢低吸纳。

《大智慧指标公式》word版

《大智慧指标公式》word版

REFLINE: 0, ,, , ;Var2:=1/WINNER(CLOSE);Var3:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100);STICKLINE(Var2>5,Var3<100,Var2,5,0),;Var4:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;Var5:=SMA(Var4,5,1);Var6:=SMA(Var5,9,1);STICKLINE(VOL AND Var6<18,0,Var2*0.5,5,0),coloryellow;〖觅庄建仓〗:0,coloryellow;5>1/WINNER(CLOSE) AND Var6<18;控盘强弱Vur1:=VOL/CAPITAL;Vur2:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);Vur3:=2.5*MAX(Vur1,Vur2);Vur4:=DMA(CLOSE,Vur3);Vur5:=20*(Vur4/REF(Vur4,1)-1)*38;Vur6:=EMA(Vur5,2);Vur7:=EMA(Vur5,2);Vur8:=EMA(Vur7,3);VurS:=EMA(Vur7,8);Vur9:=1.1*(MAX(INDEXH,REF(INDEXC,1))/MIN(INDEXL,REF(INDEXC,1))-1); VurA:=2.5*MAX(Vur1,Vur9);VurB:=DMA(INDEXC,VurA);VurC:=EMA(20*(VurB/REF(VurB,1)-1),1)*38;VurD:=EMA(VurC,2);VurE:=EMA(VurC,2);D强:STICKLINE(VurD>0,0,VurD,6.5,1),colorB210E4;D弱:STICKLINE(VurD<0,0,VurD,6.5,1),colorFFA6A6;极强:STICKLINE(Vur5>0,0,Vur5,6.5,0),COLORYELLOW;强势:STICKLINE(Vur6>0,0,Vur6,6.5,0),COLORRED;极弱:STICKLINE(Vur5<0,0,Vur5,6.5,0),color10D010;弱势:STICKLINE(Vur6<0,0,Vur6,6.5,0),colorE4E410;DX:VurE,color1088FF,LINETHICK2;界:VurS,color6CBC10,LINETHICK2;控:Vur8,colorFF10FF;指:Vur7,color10E4E4;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),COLOR00FF00,LINETHICK2;庄秘进: IF(V4>=0,V4,0),COLORFF00FF,LINETHICK2;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),COLORYELLOW,LINETHICK2;大筹金撤走: IF(VB<=0,VB,0),COLORBLUE,LINETHICK2;aa:=WINNER(CLOSE+CLOSE*15/100)*100;bb:=WINNER(CLOSE+CLOSE*0/100)*100;cc:=aa-bb;dd:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100; ee:=cc<3 and dd<0.5 and OPEN<>LOW;a1:=DYNAINFO(6);a2:=IF(LOW>a1,0,IF(HIGH<a1,1,(a1-LOW+0.01)/(HIGH-LOW+0.01)));a3:=VOL/WINNER(LOW);a4:=REF(HHV(CLOSE,120),1);a5:=REF(LLV(CLOSE,120),1);a6:=100*(CLOSE-a5)/(a4-a5);a7:=a2>0 or a2=1;a8:=a7 and a3/REF(a3,3)>=3 and a6<80;a9:=REF(a8,1) or REF(a8,2) or REF(a8,3) or REF(a8,4);a10:=a8 and a9;a11:=IF(FILTER(a8,3),5,0);a12:=IF(FILTER(a10,3) or ee,10,0);筹码进场日:IF(a11,8,0),LINETHICK0;STICKLINE(a12,0,15,5,0),colorff00ff;筹码加仓日:IF(a12,88,0),LINETHICK0;STICKLINE(a12,0,15,5,0),colorff00ff;STICKLINE(a11,0,5,5,0),colorff7700;STICKLINE(a11,0,5,4.5,0),colorff8800;STICKLINE(a11,0,5,4,0),colorff9900;STICKLINE(a11,0,5,3.5,0),colorffaa00;STICKLINE(a11,0,5,3,0),colorffbb00;STICKLINE(a11,0,5,2.5,0),colorffcc00;STICKLINE(a11,0,5,2,0),colorffdd00;STICKLINE(a11,0,5,1,0),colorffee00;STICKLINE(a12,0,15,4.5,0),color102099;STICKLINE(a12,0,15,4,0),color1020aa;STICKLINE(a12,0,15,3.5,0),color1020bb;STICKLINE(a12,0,15,3,0),color1020cc;STICKLINE(a12,0,15,2.5,0),color1020dd;STICKLINE(a12,0,15,2,0),color1020ee;STICKLINE(a12,0,15,1,0),color1020ff;DRAWTEXT(a11,8,'筹码进场');DRAWTEXT(a12,17,'筹码加仓');Var1:=REF(LOW,1);Var2:=SMA(ABS(LOW-Var1),13,1)/SMA(MAX(LOW-Var1,0),13,1)*4;Var3:=EMA(Var2,13);Var4:=LLV(LOW,34);Var5:=EMA(IF(LOW<=Var4,Var3,0),3);主力进场:IF(Var5>REF(Var5,1),VAR5,0),COLORred,LINETHICK2;STICKLINE(Var5>REF(Var5,1),0,Var5,7,0 ),COLORRED;洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,LINETHICK2;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2,1),COLORGREEN;Var6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA( SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(S MA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var8:=Var6<REF(Var7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(Var8 AND COUNT(Var8,30)=1,40,'★有筹码进场');天使报佳音vor03:=EMA(c,3);vor07:=EMA(c,7);vor13:=EMA(c,13);vor21:=EMA(c,21);vor34:=EMA(c,34);vor55:=EMA(c,55);y03:EMA(vor03,3),linethick1,colorred;y07:EMA(vor07,7),linethick1,COLOR0099FF;y13:EMA(vor13,13),linethick1,coloryellow;y21:EMA(vor21,21),linethick1,colorblue;y34:EMA(vor34,34),linethick1,colorcf88ee;y55:EMA(vor55,55),linethick1,colorwhite;vor023:=hhv(y03,3)/hhv(h,3);vor027:=hhv(y07,7)/hhv(h,7);vor213:=hhv(y13,13)/hhv(h,13);vor221:=hhv(y21,21)/hhv(h,21);vor234:=hhv(y34,34)/hhv(h,34);vor255:=hhv(y55,55)/hhv(h,55);vor33:=c*vor023;vor37:=c*vor027;vor313:=c*vor213;vor321:=c*vor221;vor334:=c*vor234;vor355:=c*vor255;vor43:=longcross(vor023,y03+0.1,10);vor47:=longcross(vor027,y07+0.1,10);vor413:=longcross(vor313,y13+0.1,10);vor421:=longcross(vor321,y21+0.1,10);vor434:=longcross(vor334,y21+0.1,10);vor455:=longcross(vor355,y55+0.1,10);DRAWICON(vor413,HIGH*1.235,1);DRAWICON(vor421,HIGH*1.235,1);DRAWICON(vor434,HIGH*1.35,1);DRAWICON(vor455,HIGH*1.46,1);stickline(vor43,if(c>0,llv(y03,22),y03),if(c>0,hhv(y03,22),y03),6,0),colorred; stickline(vor47,if(c>0,llv(y07,33),y07),if(c>0,hhv(y07,33),y07),6,0),COLOR0099F F;stickline(vor413,if(c>0,llv(y13,44),y13),if(c>0,hhv(y13,44),y13),6,0),coloryell ow;stickline(vor421,if(c>0,llv(y21,55),y21),if(c>0,hhv(y21,55),y21),6,0),colorblue ;stickline(vor434,if(c>0,llv(y34,66),y34),if(c>0,hhv(y34,66),y21),6,0),colorcf88 ee;stickline(vor455,if(c>0,llv(y55,88),y55),if(c>0,hhv(y55,88),y21),6,0),colorwhit e;资金流量PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),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);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22)); STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) * 1.5),0,1,0),color808080;STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) * 1.5),0,1,0),color808080;GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);资金流量:LLJX,LINETHICK0,color0000FF;STICKLINE((资金流量 > 0),资金流量,0,7,0),color0000FF;STICKLINE((资金流量 < 0),资金流量,0,7,0),colorFF0000;流量基线:GJJ,color00FFFF;ZJLL:=REF(LLJX,1);QZJJ:=(((LLJX - ZJLL) / ZJLL) * 100);流量增幅:IF(((LLJX > 0) AND (ZJLL < 0)),ABS(QZJJ),IF((((LLJX < 0) AND (ZJLL < 0)) AND (LLJX < ZJLL)),(0 - QZJJ),QZJJ)),LINETHICK0;力度:(HSL / 1000),LINETHICK0;周流量:SUM(LLJX,5),LINETHICK0;BB:=REF(周流量,1);ZQZJJ:=(((周流量 - BB) / BB) * 100);周增幅:IF(((周流量 > 0) AND (BB < 0)),ABS(ZQZJJ),IF((((周流量 < 0) AND (BB < 0)) AND (周流量 < BB)),(0 - ZQZJJ),ZQZJJ)),LINETHICK0;0,color808080;庄见愁获利线:EMA(WINNER(C)*100,3),colorwhite;庄筹线:EMA(WINNER(C)*70,5),colorred,linethick2;散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,5),coloryellow,linethick2;收:=winner(C)*100;开:=winner(O)*100;博弈K线长:MAX(ABS(收-开),ABS(收-REF(收,1))),pointdot,colorwhite;STICKLINE(庄筹线>散筹线,庄筹线,散筹线,0,0),COLOrwhite;stickline(收>=REF(收,1),0,博弈K线长,4,0),colorred;stickline(收<=REF(收,1),0,博弈K线长,4,0),color00ff00;{庄筹线:EMA(WINNER(C)*70,5), colorred, linethick2;散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),colorgreen, linethick2;}5,colorwhite,pointdot;20,coloryellow,pointdot;40,colorffcc66,pointdot;60,colorff00ff,pointdot;cc:FILTER((CROSS(5,庄筹线) and 散筹线<20 )*60,10 ),colorff00ff;DRAWTEXT(cc ,60 ,'海底捞活鱼(抄底)' ),colorff00ff;aa:= ref(庄筹线,30)>40 or ref(庄筹线,20)>40;aa1:=cross(庄筹线,散筹线);DRAWTEXT(AA1,70,'鸡雀升天'),color00ff00;bb:=CROSS(28,庄筹线) and 散筹线>40 and aa=1 and LLV(l ,60 )>LLV(l ,250 );DRAWTEXT(bb,30,'决战诱空'),colorwhite;IF(bb,30,60 ),colorffcccc;135均线法则EMA13:EMA(C,13),COLORBLUE,LINETHICK2;EMA17:EMA(C,17),COLORRED,LINETHICK2;EMA34:EMA(C,34),COLORGREEN;EMA55:EMA(C,55),COLORFF00FF;EMA120:EMA(C,120),COLORFFCC66;AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'红杏出墙'),COLORYELLOW;{STICKLINE(AR6,H,L,0.5,1),COLORYELLOW;STICKLINE(AR6,O,C,6,1),LINETHICK2,COLORYELLOW;}BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR REF(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'蚂蚁上树'),COLOR00C5FF;{STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;STICKLINE(BR4 AND FILTER(BR4,10),O,C,6,1),LINETHICK2,COLOR00C5FF;}CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);{STICKLINE(CR6,H,L,0.5,1),COLORF00FF0;STICKLINE(CR6,O,C,6,1),LINETHICK2,COLORF00FF0;}DRAWTEXT(CR6,L-0.09,'红衣侠女'),COLORF00FF0;DR1:=EMA13>EMA34 AND EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);DRAWTEXT(DR8,L-0.09,'黑客点击'),COLORD6BA63;{STICKLINE(DR8,H,L,0.5,1),COLORD6BA63;STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;}ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55);DRAWTEXT(ER,L-0.09,'均线互换'),COLOR0099FF;{STICKLINE(ER,H,L,0.5,1),COLOR0099FF;STICKLINE(ER,O,C,6,1),LINETHICK2,COLOR0099FF;}FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34);DRAWTEXT(FR,L-0.09,'梅开二度'),COLORWHITE;{STICKLINE(FR,H,L,0.5,1),COLORWHITE;STICKLINE(FR,O,C,6,1),LINETHICK2,COLORWHITE;}GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'*!'),COLOR00FF00;STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55);DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'三线推进'),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),H,L,0.5,1),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),O,C,6,1),LINETHICK2,COLORFFC8FF;(本资料素材和资料部分来自网络,仅供参考。

飞狐主图、副图和选股公式

飞狐主图、副图和选股公式

飞狐主图、副图和选股公式主图均线:KEY:=DATE<=1900731;ZHC:=IF(KEY,(OPEN+HIGH+LOW+CLOSE)/4,0);ZHE:=EMA(EMA(EMA(EMA(ZHC,2),2),5),5);C1:=SMA(EMA(ZHE,1),2,1);C3:=SMA(EMA(ZHE,3),2,1);C6:=SMA(EMA(ZHE,6),2,1);C7:=SMA(EMA(ZHE,7),2,1);IF NOT(STKTYPE=6 OR STKTYPE=7 AND STKTYPE=8) THEN BEGINSTICKLINE(C1>=C6,C1,C6,8,1),colorFF00FF;STICKLINE(C1>=C6,C7,C3,8,0),colorFF00FF;STICKLINE(C1<=C6,C1,C6,8,1),colorFF00;STICKLINE(C1<=C6,C7,C3,8,0),colorFF00;中线:=MA(ZHE,N),LINEDOT,colorBROWN;阻力:=中线+P*STD(ZHE,N),LINEDOT,color808080;支撑:=中线-P*STD(ZHE,N),LINEDOT,color808080;成本价:"AMOUNT#day"/"VOL#day"/100*KEY,LINETHICK0,PRECISION 2,COLORGREEN;分水岭:EMA(EMA(EMA(EMA((MA(ZHC,3)+MA(ZHC,6)+MA(ZHC,12)+ MA(ZHC,24))/4,2),2),5),5),colorFFFF00;//趋势线:ZHE,LINETHICK2,PRECISION2,colorFFFF00;趋势线:ZHE,LINETHICK2,PRECISION2,colorFFFF00;生命线:EMA(EMA(EMA(EMA(MA(ZHC,60),2),2),5),5),colorFF;主力:EMA(EMA(EMA(EMA(MA(ZHC,103),2),2),5),5),colorFF00FF;年线:EMA(EMA(EMA(EMA(MA(ZHC,453),2),2),5),5),colorFFFF;获利盘:=WINNER(成本价)*100;集中度:=(COST(95)-COST(5))/(COST(95)+COST(5))*100*KEY;DRAWTEXTEX(KEY,1,18,0,'当前获利盘比例:'+NUMTOSTR(获利盘,1)+'%筹码集中度:'+NUMTOSTR(集中度,1)+'%'),colorFF00FF;IF DATATYPE=1 OR DATATYPE=2 OR DATATYPE=3 OR DATATYPE=4 OR DATATYPE=5 THENVERTLINE(TIME=150000),POINTDOT,color80;ELSEIF DATATYPE=11 THENVERTLINE(TIME=140000),POINTDOT,color80;PARTLINE(KEY,分水岭),LINETHICK2,colorFFFF00;PARTLINE(KEY,生命线),LINETHICK2,colorFF;PARTLINE(KEY,主力),LINETHICK2,colorFF00FF;PARTLINE(KEY,年线),LINETHICK3,colorFFFF;BC:=ZHC>分水岭 AND ZHC>中线;SC:=ZHC<分水岭 AND ZHC<中线;STICKLINE(BC,LOW,HIGH,0.1,1),colorFFFF;STICKLINE(BC AND CLOSE>=OPEN,OPEN,CLOSE,8,1),colorFFFF;STICKLINE(BC AND CLOSE<OPEN,OPEN,CLOSE,8,0),colorFFFF;STICKLINE(SC,LOW,HIGH,0.1,1),colorFF00;STICKLINE(SC AND CLOSE>=OPEN,OPEN,CLOSE,8,1),colorFF00;STICKLINE(SC AND CLOSE<OPEN,OPEN,CLOSE,8,0),colorFF00;END;ELSE BEGINEND;主图均线:KEY:=DATE<=1900731;ZHC:=IF(KEY,(OPEN+HIGH+LOW+CLOSE)/4,0);ZHE:=EMA(EMA(EMA(EMA(ZHC,2),2),5),5);FSL:=EMA(EMA(EMA(EMA((MA(ZHC,3)+MA(ZHC,6)+MA(ZH C,12)+MA(ZHC,24))/4,2),2),5),5);MAINX:=EMA(EMA(EMA(EMA(MA(ZHC,60),2),2),5),5);FSLMAINX:=EMA(FSL-MAINX,3);涨停板:=IF(KEY,CLOSE/REF(CLOSE,1)>1.097,0);跌停板:=IF(KEY,REF(CLOSE,1)/CLOSE>1.097,0);涨停板ST:=IF(KEY,CLOSE/REF(CLOSE,1)>1.049,0);跌停板ST:=IF(KEY,REF(CLOSE,1)/CLOSE>1.049,0);ST0:=STRNCMP(STKNAME,'S',1)=0;ST1:=STRNCMP(STKNAME,'ST',2)=0;ST2:=STRNCMP(STKNAME,'*ST',3)=0;ST3:=STRNCMP(STKNAME,'SST',3)=0;ST4:=STRNCMP(STKNAME,'S*ST',4)=0;C1:=SMA(EMA(ZHE,1),2,1);C3:=SMA(EMA(ZHE,3),2,1);C6:=SMA(EMA(ZHE,6),2,1);C7:=SMA(EMA(ZHE,7),2,1);IF NOT(STKTYPE=6 OR STKTYPE=7 AND STKTYPE=8) THEN BEGINSTICKLINE(C1>=C6,C1,C6,8,1),colorFF00FF;STICKLINE(C1>=C6,C7,C3,8,0),colorFF00FF;STICKLINE(C1<=C6,C1,C6,8,1),colorFF00;STICKLINE(C1<=C6,C7,C3,8,0),colorFF00;中线:MA(ZHE,N),colorBROWN;阻力:中线+P*STD(ZHE,N),color808080;支撑:中线-P*STD(ZHE,N),color808080;成本价:"AMOUNT#day"/"VOL#day"/100*KEY,LINETHICK0,PRECISION 2,COLORGREEN;获利盘:=WINNER(成本价)*100;集中度:=(COST(95)-COST(5))/(COST(95)+COST(5))*100*KEY;DRAWTEXTEX(KEY,1,18,0,'当前获利盘比例:'+NUMTOSTR(获利盘,1)+'%筹码集中度:'+NUMTOSTR(集中度,1)+'%'),colorFF00FF;趋势线:ZHE,LINETHICK2,PRECISION2,colorFFFF00;生命线:MAINX,LINETHICK2,PRECISION2,colorFF;分水岭:FSL,LINETHICK2,PRECISION2,colorFFFF;TA:=REF(趋势线,1)<趋势线;TB:=REF(趋势线,1)>趋势线;TD:=趋势线>生命线 AND FSLMAINX>0;TK:=趋势线<生命线 AND FSLMAINX<0;PARTLINE(TD AND TA,趋势线),LINETHICK2,colorFFFF;PARTLINE(TK AND TB,趋势线),LINETHICK2,colorFFFF00;IF DATATYPE=1 OR DATATYPE=2 OR DATATYPE=3 OR DATATYPE=4 OR DATATYPE=5 THENVERTLINE(TIME=150000),POINTDOT,color80;ELSEIF DATATYPE=11 THENVERTLINE(TIME=140000),POINTDOT,color80;PARTLINE(KEY,分水岭),LINETHICK2,colorFFFF;PARTLINE(KEY,生命线),LINETHICK2,colorFF;BC:=ZHC>分水岭 AND ZHC>中线;SC:=ZHC<分水岭 AND ZHC<中线;STICKLINE(BC,LOW,HIGH,0.1,1),colorFFFF;STICKLINE(BC AND CLOSE>=OPEN,OPEN,CLOSE,8,1),colorFFFF;STICKLINE(BC ANDCLOSE<OPEN,OPEN,CLOSE,8,0),colorFFFF;STICKLINE(SC,LOW,HIGH,0.1,1),colorFF00;STICKLINE(SC AND CLOSE>=OPEN,OPEN,CLOSE,8,1),colorFF00;STICKLINE(SC AND CLOSE<OPEN,OPEN,CLOSE,8,0),colorFF00;END;ELSEEXIT;IF DATATYPE=6 THENIF ST0 OR ST1 OR ST2 OR ST3 OR ST4 THEN BEGINDRAWICON(涨停板ST,生命线,10);DRAWICON(跌停板ST,生命线,11);END;ELSE BEGINDRAWICON(涨停板,生命线,10);DRAWICON(跌停板,生命线,11);EXIT;END;副图Boll:(N:26 P:2)KEY:=DATE<=1900731;ZHC:=IF(KEY,(OPEN+HIGH+LOW+CLOSE)/4,0);ZHE:=EMA(EMA(EMA(EMA(ZHC,2),2),5),5);C1:=SMA(EMA(ZHE,1),2,1);C3:=SMA(EMA(ZHE,3),2,1);C6:=SMA(EMA(ZHE,6),2,1);C7:=SMA(EMA(ZHE,7),2,1);IF NOT(STKTYPE=6 OR STKTYPE=7 AND STKTYPE=8) THEN BEGINSTICKLINE(C1>=C6,C1,C6,8,0),colorFF;STICKLINE(C1>=C6,C7,C3,0,0),colorFF;STICKLINE(C1<=C6,C1,C6,8,0),colorFF00;STICKLINE(C1<=C6,C7,C3,0,0),colorFF00;KMA:=MA(ZHC,5);PARTLINE(KEY,KMA),colorFFFF;MID:=MA(ZHE,N);PARTLINE(KEY,MID),colorFFFFFF;PARTLINE(KEY,MA(MID,55)),LINEDASH,colorFF00FF;UPPER:=MID+P*STD(ZHE,N);PARTLINE(KEY,UPPER),POINTDOT,color808080;LOWER:=MID-P*STD(ZHE,N);PARTLINE(KEY,LOWER),POINTDOT,color808080;IF DATATYPE=4 OR DATATYPE=5 THENVERTLINE(TIME=150000),POINTDOT,color3333;ELSE BEGIN END;END;ELSE副图筹码集中度:KEY:=DATE<=1900731;ZHM:="AMOUNT#day"/"VOL#day"/100*KEY;CM1:=SMA(EMA(ZHM,1),2,1);CM3:=SMA(EMA(ZHM,3),2,1);CM6:=SMA(EMA(ZHM,6),2,1);CM7:=SMA(EMA(ZHM,7),2,1);CMM:=(CM1+CM3+CM6+CM7)/4;IF NOT(STKTYPE=6 OR STKTYPE=7 AND STKTYPE=8) THEN BEGIN获利盘:WINNER(ZHM)*100,LINETHICK0,PRECISION1,colorFF;筹码集中度:(COST(95)-COST(5))/(COST(95)+COST(5))*100*KEY,LINETHICK0,PRECISION1,colorFFFF;STICKLINE(CM1>=CM6,CM1,CM6,8,0),colorFF;STICKLINE(CM1>=CM6,CM7,CM3,0,0),colorFF;STICKLINE(CM1<=CM6,CM1,CM6,8,0),colorFF00;STICKLINE(CM1<=CM6,CM7,CM3,0,0),colorFF00;CMX1:=SMA(EMA(COST(1),21),2,1);CMX2:=SMA(EMA(COST(10),21),2,1);CMX3:=SMA(EMA(COST(30),21),2,1);CMX4:=SMA(EMA(COST(50),21),2,1);CMX5:=SMA(EMA(COST(70),21),2,1);CMX6:=SMA(EMA(COST(90),21),2,1);CMX7:=SMA(EMA(COST(99),21),2,1);PARTLINE(KEY,CMX1),colorCC;PARTLINE(KEY,CMX2),color33CC;PARTLINE(KEY,CMX3),color66CC;PARTLINE(KEY,CMX4),color99CC;PARTLINE(KEY,CMX5),colorCCCC;PARTLINE(KEY,CMX6),colorFFCC;PARTLINE(KEY,CMX7),colorFF;END;ELSE BEGINEND;副图多空线:KEY:=DATE<=1900731;ZHC:=IF(KEY,(OPEN+HIGH+LOW+CLOSE)/4,0);DMZ:=IF(HIGH+LOW<=REF(HIGH,1)+REF(LOW,1),0,MAX(AB S(HIGH-REF(HIGH,1)),ABS(LOW-REF(LOW,1))));DMF:=IF(HIGH+LOW>=REF(HIGH,1)+REF(LOW,1),0,MAX(AB S(HIGH-REF(HIGH,1)),ABS(LOW-REF(LOW,1))));ADMZ:=IF(KEY,MA(DMZ,10),0);ADMF:=IF(KEY,MA(DMF,10),0);STZ0:=IF(ADMZ>ADMF,(ADMZ-ADMF)/ADMZ,IF(ADMZ=ADMF,0,(ADMZ-ADMF)/ADMF));STZ:=(IF(ADMZ>ADMF,(ADMZ-ADMF)/ADMZ,IF(ADMZ=ADMF,0,(ADMZ-ADMF)/ADMF)))*(60);ASTZ:=SMA(STZ0,30,1)*60;IF NOT(STKTYPE=6 OR STKTYPE=7 AND STKTYPE=8) THEN BEGIN波动线:STZ,PRECISION0,colorFFFFFF;多空线:ASTZ,PRECISION0,colorFFFF;主力线:EMA(EMA(EMA(EMA(MA(ASTZ,60),2),2),5),5),PRECISION0,colo rFF00FF;PARTLINE(KEY,-30),LINETHICK2,colorFF00;PARTLINE(KEY,0),LINETHICK2,color80;PARTLINE(KEY,30),LINETHICK2,colorFF;END;ELSE BEGINEND;副图FT:KEY:=DATE<=1900731;STICKLINE(CLOSE>=OPEN,LOW,HIGH,0.1,1),colorFF;STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,8,1),colorFF;STICKLINE(CLOSE>=REF(CLOSE,1) AND CLOSE=OPEN,LOW,HIGH,0.1,1),colorFF;STICKLINE(CLOSE>=REF(CLOSE,1) AND CLOSE=OPEN,OPEN,CLOSE,8,1),colorFF;STICKLINE(CLOSE<OPEN,LOW,HIGH,0.1,0),colorFFFF00;STICKLINE(CLOSE<OPEN,OPEN,CLOSE,8,0),colorFFFF00;STICKLINE(CLOSE<REF(CLOSE,1) AND CLOSE=OPEN,LOW,HIGH,0.1,0),colorFFFF00;STICKLINE(CLOSE<REF(CLOSE,1) AND CLOSE=OPEN,OPEN,CLOSE,8,0),colorFFFF00;ZHC:=IF(KEY,(OPEN+HIGH+LOW+CLOSE)/4,0);ZHQS:=EMA(EMA(EMA(EMA(ZHC,2),2),5),5);MAINX:=EMA(EMA(EMA(EMA(MA(ZHC,60),2),2),5),5);FSL:=EMA(EMA(EMA(EMA((MA(ZHC,3)+MA(ZHC,6)+MA(ZH C,12)+MA(ZHC,24))/4,2),2),5),5);IF NOT(STKTYPE=6 OR STKTYPE=7 AND STKTYPE=8) THEN BEGIN趋势线:ZHQS,LINETHICK2,PRECISION0,colorFFFF00;生命线:MAINX,LINETHICK2,PRECISION0,colorFF;分水岭:FSL,LINETHICK2,PRECISION0,colorFFFF;END;ELSE BEGINEND;主图均线:KEY:=DATE<=1900601;STICKLINE(CLOSE>=OPEN,LOW,HIGH,0.1,1),colorFF;STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,8,1),colorFF;STICKLINE(CLOSE>=REF(CLOSE,1) AND CLOSE=OPEN,LOW,HIGH,0.1,1),colorFF;STICKLINE(CLOSE>=REF(CLOSE,1) AND CLOSE=OPEN,OPEN,CLOSE,8,1),colorFF;STICKLINE(CLOSE<OPEN,LOW,HIGH,0.1,0),colorFFFF00;STICKLINE(CLOSE<OPEN,OPEN,CLOSE,8,0),colorFFFF00;STICKLINE(CLOSE<REF(CLOSE,1) AND CLOSE=OPEN,LOW,HIGH,0.1,0),colorFFFF00;STICKLINE(CLOSE<REF(CLOSE,1) ANDCLOSE=OPEN,OPEN,CLOSE,8,0),colorFFFF00;ST0:=STRNCMP(STKNAME,'S',1)=0;ST1:=STRNCMP(STKNAME,'ST',2)=0;ST2:=STRNCMP(STKNAME,'*ST',3)=0;ST3:=STRNCMP(STKNAME,'SST',3)=0;ST4:=STRNCMP(STKNAME,'S*ST',4)=0;ZHC:=IF(KEY,(OPEN+HIGH+LOW+CLOSE)/4,0);涨停板:=IF(KEY,(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>9.95,0);跌停板:=IF(KEY,(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*100>9.95,0);涨停板ST:=IF(KEY,(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>4.95,0);跌停板ST:=IF(KEY,(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*100>4.95,0);ZHQS:=EMA(EMA(EMA(EMA(ZHC,2),2),5),5);FSL:=EMA(EMA(EMA(EMA((MA(ZHC,3)+MA(ZHC,6)+MA(ZH C,12)+MA(ZHC,24))/4,2),2),5),5);MAINX:=EMA(EMA(EMA(EMA(MA(ZHC,60),2),2),5),5);FSLMAINX:=EMA(FSL-MAINX,3);IF NOT(STKTYPE=6 OR STKTYPE=7 AND STKTYPE=8) THEN BEGIN成本价:"AMOUNT#day"/"VOL#day"/100*KEY,LINETHICK0,PRECISION 2,colorFFFF;获利盘:=WINNER(成本价)*100;集中度:=(COST(95)-COST(5))/(COST(95)+COST(5))*100*KEY;DRAWTEXTEX(KEY,1,18,0,'当前获利盘比例:'+NUMTOSTR(获利盘,1)+'%筹码集中度:'+NUMTOSTR(集中度,1)+'%'),colorFF00FF;LA1:=LLVBARS(LOW,17);LA2:=BACKSET(ISLASTBAR,LA1+1);LA:=FILTER(LA2,17);DRAWICON(LA,LOW*0.998,4);DRAWNUMBER(LA,LOW*0.994,LOW,2),colorFFFFFF;LB1:=LLVBARS(LOW,144);LB2:=BACKSET(ISLASTBAR,LB1+1);LB:=FILTER(LB2,144);DRAWICON(LB,LOW*0.996,4);DRAWNUMBER(LB,LOW*0.99,LOW,2),colorFFFFFF;LC1:=LLVBARS(LOW,453);LC2:=BACKSET(ISLASTBAR,LC1+1);LC:=FILTER(LC2,453);DRAWICON(LC,LOW*0.992,4);DRAWNUMBER(LC,LOW*0.986,LOW,2),colorFFFFFF;HA1:=HHVBARS(HIGH,17);HA2:=BACKSET(ISLASTBAR,HA1+1);HA:=FILTER(HA2,17);DRAWICON(HA,HIGH*1.002,5);DRAWNUMBER(HA,HIGH*1.006,HIGH,2),colorFFFFFF;HB1:=HHVBARS(HIGH,144);HB2:=BACKSET(ISLASTBAR,HB1+1);HB:=FILTER(HB2,144);DRAWICON(HB,HIGH*1.004,5);DRAWNUMBER(HB,HIGH*1.008,HIGH,2),colorFFFFFF; LINEVALUE(LB,LOW,LA,LOW,0,0),LINETHICK2,colorFF; LINEVALUE(LC,LOW,LB,LOW,0,0),LINETHICK2,color66FF; LINEVALUE(HB,HIGH,HA,HIGH,0,0),LINETHICK2,color33CC00; TA:=REF(ZHQS,1)<ZHQS;TB:=REF(ZHQS,1)>ZHQS;TD:=ZHQS>MAINX AND FSLMAINX>0;TK:=ZHQS<MAINX AND FSLMAINX<0;STICKLINE(CLOSE>ZHQS AND OPEN>ZHQS AND TA,HIGH,LOW,0.5,0),colorFFFF;STICKLINE(CLOSE>ZHQS AND OPEN>ZHQS AND TA AND CLOSE<OPEN,OPEN,CLOSE,8,0),colorFFFF;STICKLINE(CLOSE>ZHQS AND OPEN>ZHQS AND TA AND CLOSE>=OPEN,OPEN,CLOSE,8,1),colorFFFF;STICKLINE((OPEN<ZHQS OR OPEN<MAINX) AND TB,HIGH,LOW,0.5,0),colorCCCCCC;STICKLINE((OPEN<ZHQS OR OPEN<MAINX) AND TB AND CLOSE<OPEN,OPEN,CLOSE,8,0),colorCCCCCC;STICKLINE((OPEN<ZHQS OR OPEN<MAINX) AND TB AND CLOSE>=OPEN,OPEN,CLOSE,8,1),colorCCCCCC;STICKLINE(CLOSE>ZHQS AND OPEN>ZHQS AND TA AND TD,HIGH,LOW,0.5,0),colorFFFF;STICKLINE(CLOSE>ZHQS AND OPEN>ZHQS AND TA AND TD AND CLOSE<OPEN,OPEN,CLOSE,8,0),colorFFFF;STICKLINE(CLOSE>ZHQS AND OPEN>ZHQS AND TA AND TD AND CLOSE>=OPEN,OPEN,CLOSE,8,1),colorFFFF;STICKLINE((OPEN<ZHQS OR OPEN<MAINX) AND TB AND TK,HIGH,LOW,0.5,0),colorCCCCCC;STICKLINE((OPEN<ZHQS OR OPEN<MAINX) AND TB AND TK AND CLOSE<OPEN,OPEN,CLOSE,8,0),colorCCCCCC;STICKLINE((OPEN<ZHQS OR OPEN<MAINX) AND TB AND TK AND CLOSE>=OPEN,OPEN,CLOSE,8,1),colorCCCCCC;STICKLINE((NOT(CLOSE>ZHQS AND OPEN>ZHQS AND TA OR CLOSE>ZHQS AND OPEN>ZHQS AND TA AND TD OR (OPEN<ZHQS OR OPEN<MAINX) AND TB)) AND CLOSE<OPEN,HIGH,LOW,0.5,0),colorFFFF00;STICKLINE((NOT(CLOSE>ZHQS AND OPEN>ZHQS AND TA OR CLOSE>ZHQS AND OPEN>ZHQS AND TA AND TD OR (OPEN<ZHQS OR OPEN<MAINX) AND TB)) AND CLOSE<OPEN,OPEN,CLOSE,8,0),colorFFFF00;STICKLINE((NOT(CLOSE>ZHQS AND OPEN>ZHQS AND TA OR CLOSE>ZHQS AND OPEN>ZHQS AND TA AND TD OR (OPEN<ZHQS OR OPEN<MAINX) AND TB)) AND CLOSE>=OPEN,HIGH,LOW,0.5,0),colorFF;STICKLINE((NOT(CLOSE>ZHQS AND OPEN>ZHQS AND TA OR CLOSE>ZHQS AND OPEN>ZHQS AND TA AND TD OR (OPEN<ZHQS OR OPEN<MAINX) AND TB)) AND CLOSE>=OPEN,OPEN,CLOSE,8,1),colorFF;STICKLINE(BARSCOUNT(CLOSE)<=5 AND CLOSE<OPEN,HIGH,LOW,0.5,0),colorFFFF00;STICKLINE(BARSCOUNT(CLOSE)<=5 AND CLOSE<OPEN,OPEN,CLOSE,8,0),colorFFFF00;STICKLINE(BARSCOUNT(CLOSE)<=5 AND CLOSE>=OPEN,HIGH,LOW,0.5,0),colorFF;STICKLINE(BARSCOUNT(CLOSE)<=5 AND CLOSE>=OPEN,OPEN,CLOSE,8,1),colorFF;IF DATATYPE=4 OR DATATYPE=5 THEN BEGINTC1:=MA(ZHC,55);TC2:=MA(ZHC,103);TC3:=MA(ZHC,453);PARTLINE(KEY,EMA(EMA(EMA(EMA(TC1,2),2),5),5)),colorFFFF FF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC2,2),2),5),5)),colorFFFF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC3,2),2),5),5)),colorFF0 0FF;VERTLINE(TIME=150000),POINTDOT,color3333;END;ELSE BEGINIF DATATYPE=11 THEN BEGINTC1:=MA(ZHC,55);TC2:=MA(ZHC,103);TC3:=MA(ZHC,453);PARTLINE(KEY,EMA(EMA(EMA(EMA(TC1,2),2),5),5)),colorFFFF FF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC2,2),2),5),5)),colorFFFF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC3,2),2),5),5)),colorFF0 0FF;VERTLINE(TIME=140000),POINTDOT,color3333;END;ELSE BEGINIF DATATYPE=6 THEN BEGINIF ST0 OR ST1 OR ST2 OR ST3 OR ST4 THEN BEGINDRAWICON(涨停板ST,HIGH*1.02,10);DRAWICON(跌停板ST,LOW*0.98,11);END;ELSE BEGINDRAWICON(涨停板,HIGH*1.05,10);DRAWICON(跌停板,LOW*0.95,11);END;TC1:=MA(ZHC,14);TC2:=MA(ZHC,25);TC3:=MA(ZHC,99);PARTLINE(KEY,EMA(EMA(EMA(EMA(TC1,2),2),5),5)),colorFFFF FF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC2,2),2),5),5)),colorFFFF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC3,2),2),5),5)),colorFF0 0FF;END;ELSE BEGINIF DATATYPE=7 THEN BEGINTC2:=MA(ZHC,99);TC3:=MA(ZHC,181);TC4:=MA(ZHC,272);发财线:EMA(EMA(EMA(EMA(TC1,2),2),5),5),LINETHICK2,PRECISION2,c olorFF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC2,2),2),5),5)),colorFFFF FF;牛熊界:EMA(EMA(EMA(EMA(TC3,2),2),5),5),LINETHICK2,PRECISION2,c olorFFFF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC4,2),2),5),5)),colorFF0 0FF;END;ELSE BEGINIF DATATYPE=2 OR DATATYPE=3 THEN BEGINTC1:=MA(ZHC,55);TC2:=MA(ZHC,103);TC3:=MA(ZHC,453);PARTLINE(KEY,EMA(EMA(EMA(EMA(TC1,2),2),5),5)),colorFFFF FF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC2,2),2),5),5)),colorFFFF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC3,2),2),5),5)),colorFF0 0FF;VERTLINE(TIME=150000),POINTDOT,color3333;END;ELSE BEGINIF DATATYPE=1 THEN BEGINVERTLINE(TIME=150000),POINTDOT,color33CC;END;ELSE BEGINIF DATATYPE=8 THEN BEGINTC2:=MA(ZHC,40);TC3:=MA(ZHC,60);TC4:=MA(ZHC,80);TC5:=MA(ZHC,100);TC6:=MA(ZHC,120);TC7:=MA(ZHC,140);PARTLINE(KEY,EMA(EMA(EMA(EMA(TC1,2),2),5),5)),colorFFFF FF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC2,2),2),5),5)),colorFFFF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC3,2),2),5),5)),colorFF0 0FF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC4,2),2),5),5)),colorCC0 0FF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC5,2),2),5),5)),color990 0FF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC6,2),2),5),5)),color660 0FF;PARTLINE(KEY,EMA(EMA(EMA(EMA(TC7,2),2),5),5)),color330 0FF;END;ELSE BEGINEND;END;END;END;END;END;END;END;ELSEWX:=MA(CLOSE,0);M2:MA(CLOSE,P2)*(IF(N<2,WX,1));M3:MA(CLOSE,P3)*(IF(N<3,WX,1));M4:MA(CLOSE,P4)*(IF(N<4,WX,1));M5:MA(CLOSE,P5)*(IF(N<5,WX,1));M6:MA(CLOSE,P6)*(IF(N<6,WX,1));M7:MA(CLOSE,P7)*(IF(N<7,WX,1));M8:MA(CLOSE,P8)*(IF(N<8,WX,1));副图MACD:KEY:=DATE<=1900731;PARTLINE(KEY,0),LINETHICK2,color99;VAR1:=IF(KEY,EMA(EMA(EMA((OPEN+HIGH+LOW+CLOSE)/ 4,13),13),13),0);VAR2:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1;智能DIFF:VAR2*100,PRECISION2;智能DEA:EMA(VAR2,21)*100,PRECISION2;智能MACD:VAR2*100,COLORSTICK,PRECISION2;副图能量线:KEY:=DATE<=1900701;ZHC:=IF(KEY,(OPEN+HIGH+LOW+CLOSE)/4,0);VAR1:=REF(ZHC,1);VAR2:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);VAR3:=(CLOSE-VAR1)*VAR2;VAR4:=SUM(VAR3,0);VAR5:=SMA(VAR4,5,1);VAR6:=SMA(VAR4,8,1);ZHSC0:=IF(KEY,VAR5-VAR6,0);ZHSC:=ZHSC0/10;ZHD:=(SUM(IF(ZHSC>0,ZHSC*1.003,ZHSC*1.003>0),34))/(34 );ZHE:=(SUM(IF(ZHSC<=0,ZHSC*0.97,ZHSC*0.97<0),34))/(34);能量:ZHSC,COLORSTICK,PRECISION1,colorFF;PARTLINE(KEY,ZHD),LINETHICK2,colorFFFF;PARTLINE(KEY,ZHE),LINETHICK2,colorFF00;PARTLINE(KEY,0),LINETHICK2,colorFFFFFF;副图成交量:KEY:=DATE<=1900731;总股本:=FINANCE(1);净利润:=FINANCE(30);每股收益:=净利润*1000/(总股本*10000);流通盘:=CAPITAL;每股净资:=FINANCE(34);市盈率:=CLOSE/每股收益;换手率:=VOL/CAPITAL*100;流通市值:=CAPITAL*VOLUNIT*CLOSE;均量10:=MA(VOL,10);均量20:=MA(VOL,20);均量40:=MA(VOL,40);涨跌幅:(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;成交手数:VOL,VOLSTICK;DRAWTEXTEX(KEY,0,0,0,STKNAME+'('+STKLABEL+') 流通盘:'+NUMTOSTR(流通盘/100,0)+'万股市盈率:'+NUMTOSTR(市盈率,0)+'倍每股净资:'+NUMTOSTR(每股净资,2)+'元流通市值:'+NUMTOSTR(流通市值/10000,2)+'万元成交额:'+NUMTOSTR(AMOUNT/10000,2)+'万元换手率:'+NUMTOSTR(换手率,2)+'%'),color66FF;PARTLINE(KEY,均量10),colorFF00;PARTLINE(KEY,均量20),colorFFFF;PARTLINE(KEY,均量40),colorFFFFFF;⑤%:CAPITAL*5/100,linedot;交易分钟数:=if(CURRENTTIME>93000 and CURRENTTIME<150000,if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60,if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240);预测量:IF(BARSTATUS=2,VOL/交易分钟数*240,VOL),COLOR00FFFF,LINETHICK0;{预测量2:IF(BARSTATUS=2,VOL*240/OPENMINUTES(CURRENTTIME),VO L),COLOR00FF00,LINETHICK0;}STICKLINE(BARSTATUS=2,0,预测量,8,1),COLOR00FFFF,LINEDOT副图位置:KEY:=DATE<=1900731;VAR3:=LLV(LOW,33);VAR4:=HHV(HIGH,21);VAR5:=IF(KEY,EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,20)*0.998,0);PARTLINE(KEY,20),LINETHICK2,color808080;PARTLINE(KEY,50),LINETHICK2,colorFFFFFF;PARTLINE(KEY,80),LINETHICK2,colorFF00FF;技术位:EMA(0.667*REF(VAR5,1)+0.333*VAR5,1),CIRCLEDOT,PRECISIO N1,colorFF00;MACD选股:智能DIFF:="ZNMACD.智能DIFF";智能DEA:="ZNMACD.智能DEA";BUY:=LONGCROSS(智能DIFF,智能DEA,N) AND BETWEEN(智能DEA,-0.05,0.35);BARSLAST(BUY)<=X;筹码选股:KEY:=DATE<=1900731;ZHM:="AMOUNT#DAY"/"VOL#DAY"/100*KEY;CM1:=SMA(EMA(ZHM,1),2,1);CM3:=SMA(EMA(ZHM,3),2,1);CM6:=SMA(EMA(ZHM,6),2,1);CM7:=SMA(EMA(ZHM,7),2,1);CMM:=(CM1+CM3+CM6+CM7)/4;CMX:=SMA(EMA(COST(59),21),2,1);LONGCROSS(CMM,CMX,25);多空选股:KEY:=DATE<=1900731;ZHC:=IF(KEY,(OPEN+HIGH+LOW+CLOSE)/4,0);DMZ:=IF(HIGH+LOW<=REF(HIGH,1)+REF(LOW,1),0,MAX(AB S(HIGH-REF(HIGH,1)),ABS(LOW-REF(LOW,1))));DMF:=IF(HIGH+LOW>=REF(HIGH,1)+REF(LOW,1),0,MAX(AB S(HIGH-REF(HIGH,1)),ABS(LOW-REF(LOW,1))));ADMZ:=IF(KEY,MA(DMZ,10),0);ADMF:=IF(KEY,MA(DMF,10),0);STZ0:=IF(ADMZ>ADMF,(ADMZ-ADMF)/ADMZ,IF(ADMZ=ADMF,0,(ADMZ-ADMF)/ADMF));STZ:=(IF(ADMZ>ADMF,(ADMZ-ADMF)/ADMZ,IF(ADMZ=ADMF,0,(ADMZ-ADMF)/ADMF)))*(60);ASTZ:=SMA(STZ0,30,1)*60;BUY:=ALL(ASTZ<26,120) AND ASTZ>-5 AND ASTZ<15 AND CROSS(STZ,ASTZ);BARSLAST(BUY)<=X;。

趋势画线警告压力线放量突破之飞狐、大智慧、通达信源码

趋势画线警告压力线放量突破之飞狐、大智慧、通达信源码

趋势画线警告压力线放量突破之飞狐、大智慧、通达信源码一、通达信的,源码如下:1、趋势画线预警HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;Z GDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT =GDCS1,H,1);压力线选股:CROSS(C,高点压力);2、成交量放大(如果直接用成交量的话,经合前面的画线预警,可能股价已经涨很高了,所以用虚拟量来做变量)虚拟量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);量突破:虚拟量>REF(V,1);3、组合前面趋势线及后面的成交量放大,确定其有效性。

HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT =GDCS1,H,1);虚拟量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);量突破:=虚拟量>REF(V,1);选股:CROSS(C,高点压力) and 量突破;二、大智慧的,思路及代码来自于西天取金老师,同时有一个问题,就是预警没有问题,但盘后直接选股会出错,我解决不了。

大智慧.飞狐.通达信等软件的公式导入法

大智慧.飞狐.通达信等软件的公式导入法

大智慧.飞狐.通达信等软件的公式导入法一、在大智慧上引入公式A:源码导入方法1. 把要导入的公式(源码)复制下来:方法是用左键先把源码变蓝,之后点右键,点复制;2. 进入大智慧-->特色功能-->自编指标-->常用-->技术指标-->新建,在出现的公式编辑区的下面的空白处,把刚考的源码粘贴上,将公式名称复制后粘贴到公式名称栏-->确认-->退出;3.如有参数的,如:N 1 100 15 之类,则需将这类数据填充到参数表中;4.公式源码以外的内容,如:名称,说明以及参数等等,凡在{ }以外的,均要删除,或者用{ }将其括上;5、在大智慧的底部显示栏中点击公式名称即可看到刚刚导入的公式B:完整指标导入方法1.把要导入的公式复制下来,放到桌面;2.进入大智慧-->特色功能-->自编指标-->常用-->技术指标-->引入,找到刚刚复制到桌面的公式,将公式名称双击后到公式名称栏-->确认-->退出;3、在大智慧的底部显示栏中点击公式名称即可看到刚刚导入的公式二、在飞狐上引入公式A:源码导入方法1、把要导入的公式(源码)复制下来:方法是用左键先把源码变蓝,之后点右键,点复制;2、进入主界面,即K线图模式,用鼠标靠近左侧单击,出现管理面板-->双击技术指标-->用鼠标右键单击任何一个公式组的名称,比如“其它 ”-->点新建公式-->在出现的公式编辑区的下面的空白处,把刚拷的源码粘贴上,将公式名称复制后粘贴到公式名称栏-->确定 -->退出;第3、4步同上;5、找到新建的公式,双击即可使用。

B:完整指标导入方法1、把要导入的公式复制下来,放到桌面;2、 进入主界面,即K线图模式,用鼠标靠近左侧单击,出现管理面板-->双击技术指标-->用鼠标右键单击任何一个公式组的名称,比如“其它 ”-->点导入公式-->在出现的查找范围找到第1步存放的指标-->单击打开-->在下面空白处输入公式组-->确定 -->退出;3、找到新建的公式,双击即可使用。

大智慧顶级逃顶指标公式源码编程思路破译及风险提示

大智慧顶级逃顶指标公式源码编程思路破译及风险提示

大智慧顶级逃顶指标公式源码编程思路破译及风险提示编程思路破译VAR1赋值:(成交量(手) / (((最高价 - 最低价) * 2) - (收盘价-开盘价)的绝对值))成交赋值:成交量(手)买盘赋值:如果(收阳线),返回(VAR1*(最高价-最低价)),否则返回如果(收阴线),返回(VAR1*((最高价-开盘价)+(收盘价-最低价))),否则返回(成交量(手)/2)卖盘赋值:如果(收阳线),返回(0-(VAR1*((最高价-收盘价)+(开盘价-最低价)))),否则返回如果(收阴线),返回(0-(VAR1*(最高价-最低价))),否则返回(0-(成交量(手)/2))买卖差赋值:(买盘 + 卖盘)当满足条件(成交量(手)>0)时,在成交量(手)和0位置之间画柱状线,宽度为4,1不为0则画空心柱.,COLORFFFFFF当满足条件(买卖差>0)时,在0和买卖差位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLOR0000FF当满足条件(买卖差<0)时,在0和买卖差位置之间画柱状线,宽度为2,0不为0则画空心柱.,线宽为3,COLOR33FF33量比1赋值:(成交量(手) / 成交量(手)的5日简单移动平均)VAR10赋值:买盘VAR20赋值:卖盘JX1赋值:首次买盘距今天数JY1赋值:如果((121>JX1)AND(JX1>0)),返回JX1,否则返回120 JY2赋值:如果((4>JX1)AND(JX1>0)),返回JX1,否则返回3VAR30赋值:成交量(手)的JY2日简单移动平均动神赋值:买盘鬼力赋值:VAR20神比赋值:(动神 / VAR30)鬼比赋值:(鬼力 / VAR30)VAR2赋值:(最高价 - 最低价)VAR3赋值:(开盘价-收盘价)的绝对值VAR4赋值:(最高价 - 如果(收阳线),返回收盘价,否则返回开盘价) VAR5赋值:(如果(收阳线),返回开盘价,否则返回收盘价 - 最低价) VAR6赋值:((VAR3 / VAR2) * 成交量(手))VAR7赋值:((VAR4 / VAR2) * 成交量(手))VAR8赋值:((VAR5 / VAR2) * 成交量(手))VAR9赋值:如果((成交量(手)/当前流通股本(手))>0.001),返回1,否则返回((成交量(手)/当前流通股本(手))*100)的对数的绝对值的指数VARA赋值:(((收盘价 - 收盘价的5日简单移动平均) / 收盘价的5日简单移动平均) * 100)VARB赋值:(((收盘价的5日简单移动平均> 收盘价的10日简单移动平均) AND (收盘价的10日简单移动平均> 收盘价的30日简单移动平均)) AND (收盘价的30日简单移动平均 > 收盘价的60日简单移动平均))VARC赋值:((收盘价的5日简单移动平均 < 收盘价的10日简单移动平均) AND (收盘价的10日简单移动平均< 收盘价的30日简单移动平均))VARD赋值:1日前的收盘价VARE赋值:(((收盘价-VARD)和0的较大值的6日[1日权重]移动平均 / (收盘价-VARD)的绝对值的6日[1日权重]移动平均) * 100) VAR40赋值:((如果(((VAR6>=VAR7)AND(VAR6>=VAR8))AND(收阳线)),返回VAR6,否则返回动神 + 动神) / 2)VAR41赋值:((如果((VAR7>VAR6)AND(VAR7>VAR8)),返回VAR7,否则返回动神 + 动神) / 2)VAR42赋值:((如果((VAR8>VAR6)AND(VAR8>VAR7)),返回VAR8,否则返回动神 + 动神) / 2)VAR50赋值:((如果(((VAR6>=VAR7)AND(VAR6>=VAR8))AND(收阴线)),返回VAR6,否则返回鬼力 + 鬼力) / 2)三日上攻赋值:(((VAR40+VAR41)+VAR42)/3)的JY2日简单移动平均三日下攻赋值:VAR50的JY2日简单移动平均输出多头:当满足条件(收盘价>收盘价的30日简单移动平均)时,在0和成交量(手)位置之间画柱状线,宽度为4,1不为0则画空心柱.,COLOR0000FF输出空头:当满足条件(收盘价<收盘价的30日简单移动平均)时,在0和成交量(手)位置之间画柱状线,宽度为4,1不为0则画空心柱.,COLOR00FF00当满足条件(鬼力>0)时,在鬼力和0位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLORFF3399输出加仓:当满足条件(((VAR6>=VAR7)AND(VAR6>=VAR8))AND(收阳线))时,在0和VAR6位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLOR00FFFF 输出减仓:当满足条件(((VAR6>=VAR7)AND(VAR6>=VAR8))AND(收阴线))时,在0和VAR6位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLORFF0000 输出洗盘:当满足条件((VAR8>VAR6)AND(VAR8>VAR7))时,在0和VAR8位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLORFFFFFF输出高卖:当满足条件((VAR7>VAR6)AND(VAR7>VAR8))时,在0和VAR7位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLORFF00FF相对地量赋值:当满足条件((VAR9>2)AND(成交量(手)<(成交量(手)的5日简单移动平均/2)))时,在0和成交量(手)位置之间画柱状线,宽度为3,0不为0则画空心柱.程序源码VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));成交:=VOL;买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘 + 卖盘);STICKLINE((VOL > 0),VOL,0,4,1),COLORFFFFFF;STICKLINE((买卖差 > 0),0,买卖差,4,0),COLOR0000FF;STICKLINE((买卖差< 0),0,买卖差,2,0),LINETHICK3,COLOR33FF33;量比1:=(VOL / MA(VOL,5));VAR10:=买盘;VAR20:=卖盘;JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);动神:=买盘;鬼力:=VAR20;神比:=(动神 / VAR30);鬼比:=(鬼力 / VAR30);VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);VAR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30)));VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100);VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,动神) + 动神) / 2);VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,动神) + 动神) / 2);VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,动神) + 动神) / 2);VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),VAR6,鬼力) + 鬼力) / 2);三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);三日下攻:=MA(VAR50,JY2);多头:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,4,1),COLOR0000FF;空头:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,4,1),COLOR00FF00;STICKLINE((鬼力 > 0),鬼力,0,4,0),COLORFF3399;加仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,4,0),COLOR00FFFF;减仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),0,VAR6,4,0),COLORFF0000;洗盘:STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,4,0),COLORFFFFFF;高卖:STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,4,0),COLORFF00FF;相对地量:=STICKLINE(((VAR9 > 2) AND (VOL < (MA(VOL,5) / 2))),0,VOL,3,0);风险提示该公式包含未来函数:CAPITAL。

大智慧.飞狐.通达信等软件的公式导入法

大智慧.飞狐.通达信等软件的公式导入法

大智慧.飞狐.通达信等软件的公式导入法一、在大智慧上引入公式A:源码导入方法1. 把要导入的公式(源码)复制下来:方法是用左键先把源码变蓝,之后点右键,点复制;2. 进入大智慧-->特色功能-->自编指标-->常用-->技术指标-->新建,在出现的公式编辑区的下面的空白处,把刚考的源码粘贴上,将公式名称复制后粘贴到公式名称栏-->确认-->退出;3.如有参数的,如:N 1 100 15 之类,则需将这类数据填充到参数表中;4.公式源码以外的内容,如:名称,说明以及参数等等,凡在{ }以外的,均要删除,或者用{ }将其括上;5、在大智慧的底部显示栏中点击公式名称即可看到刚刚导入的公式B:完整指标导入方法1.把要导入的公式复制下来,放到桌面;2.进入大智慧-->特色功能-->自编指标-->常用-->技术指标-->引入,找到刚刚复制到桌面的公式,将公式名称双击后到公式名称栏-->确认-->退出;3、在大智慧的底部显示栏中点击公式名称即可看到刚刚导入的公式二、在飞狐上引入公式A:源码导入方法1、把要导入的公式(源码)复制下来:方法是用左键先把源码变蓝,之后点右键,点复制;2、进入主界面,即K线图模式,用鼠标靠近左侧单击,出现管理面板-->双击技术指标-->用鼠标右键单击任何一个公式组的名称,比如“其它 ”-->点新建公式-->在出现的公式编辑区的下面的空白处,把刚拷的源码粘贴上,将公式名称复制后粘贴到公式名称栏-->确定 -->退出;第3、4步同上;5、找到新建的公式,双击即可使用。

B:完整指标导入方法1、把要导入的公式复制下来,放到桌面;2、 进入主界面,即K线图模式,用鼠标靠近左侧单击,出现管理面板-->双击技术指标-->用鼠标右键单击任何一个公式组的名称,比如“其它 ”-->点导入公式-->在出现的查找范围找到第1步存放的指标-->单击打开-->在下面空白处输入公式组-->确定 -->退出;3、找到新建的公式,双击即可使用。

大智慧顶与底指标公式源码编程思路破译

大智慧顶与底指标公式源码编程思路破译

大智慧顶与底指标公式源码编程思路破译源码编程思路破译100,POINTDOT60,POINTDOTVAR1赋值:88VAR2赋值:68VAR3赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100VAR4赋值:VAR3的3日[1日权重]移动平均VAR5赋值:VAR4的3日[1日权重]移动平均VAR6赋值:3*VAR4-2*VAR5VAR7赋值:收盘价/120日内最高价的最高值的3日[1日权重]移动平均*100VAR8赋值:收盘价/120日内最高价的最高值的3日[1日权重]移动平均*100VAR9赋值:VAR7>20日前的VAR7 AND VAR7>75 AND VAR7/10日前的20日内最低价的最低值>1.18的20日过滤VARA赋值:如果VAR7>70ANDVAR7<75,返回1,否则返回0当满足条件统计20日中满足VARA的天数>3ANDVAR7/30日内最高价的最高值<1时,在VAR7位置书写文字VARB赋值:1日前的收盘价VARC赋值:收盘价-VARB和0的较大值的6日[1日权重]移动平均/收盘价-VARB的绝对值的6日[1日权重]移动平均*100 输出调整:VAR7,画白色输出买进:当满足条件VAR7<68ANDBARSLAST(VAR2上穿调整)>2ANDCROSS(VAR6,VAR5)ANDVAR5<30时,在60和68位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORF0F000 输出顶区:如果VAR7>VAR1,返回VAR7,否则返回VAR1,画红色输出底区:如果VAR8<VAR2,返回VAR8,否则返回VAR2,画黄色当满足条件VAR9ANDVAR7<88时,在调整位置书写文字,COLORF00FF0当满足条件VAR7<68ANDBARSLAST(VAR2上穿VAR7)>2ANDVAR5<30ANDCROSS(VAR6,VAR5)时,在63位置书写文字,COLOR00FFE0当满足条件调整<52的10日过滤时,在调整位置书写文字当满足条件VAR7>88ANDCROSS(84,VARC)时,在调整位置书写文字程序源码100,POINTDOT;60,POINTDOT;VAR1:=88;VAR2:=68;VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1);VAR6:=3*VAR4-2*VAR5;VAR7:=SMA(CLOSE/HHV(HIGH,120),3,1)*100;VAR8:=SMA(CLOSE/HHV(HIGH,120),3,1)*100;VAR9:=VAR7>REF(VAR7,20) AND VAR7>75 AND FILTER(VAR7/REF(LLV(LOW,20),10)>1.18,20);VARA:=IF(VAR7>70 AND VAR7<75,1,0);DRAWTEXT(COUNT(VARA,20)>3 AND VAR7/HHV(HIGH,30)<1,VAR7,'调整到位');VARB:=REF(CLOSE,1);VARC:=SMA(MAX(CLOSE-VARB,0),6,1)/SMA(ABS(CLOSE-VARB),6,1)*100;调整:VAR7,COLORWHITE;买进:STICKLINE(VAR7<68 AND BARSLAST(CROSS(VAR2,调整))>2 AND CROSS(VAR6,VAR5) ANDVAR5<30,60,68,5,0),COLORF0F000;顶区:IF(VAR7>VAR1,VAR7,VAR1),COLORRED;底区:IF(VAR8<VAR2,VAR8,VAR2),COLORYELLOW;DRAWTEXT(VAR9 AND VAR7<88,调整,'短期风险'),COLORF00FF0;DRAWTEXT(VAR7<68 AND BARSLAST(CROSS(VAR2,VAR7))>2 AND VAR5<30 AND CROSS(VAR6,VAR5),63,'来抢钱吧'),COLOR00FFE0;DRAWTEXT(FILTER(调整<52,10),调整,'都疯我没疯');DRAWTEXT(VAR7>88 AND CROSS(84,VARC),调整,'高风险跑');。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档