经典有效大智慧L2公式
大智慧L2公式编辑语法大全
●常数与单值变量:代码:'x:100'; 定义了一个单值变量x=100,这个值不随时间而改变,做成副图指标看,今天是100明天也是100,直到最后1根K线也是100,即副图指标是一条数值为100的水平直线。
●基本的条件表达式由“>、>=、<、<>、<=、=、and、or”等比较运算符、逻辑运算符组成,其中"and"表示并、并且,"or"表示或、或者。
条件表达式的值只有2个,1和0,条件成立则返回1,条件不成立则返回0。
●序列变量:代码:'fc:close',定义了一个变量fc,并把收盘价赋值给变量fc。
这里变量fc就是序列变量,因为fc不是一个值,而是一序列随时间而变化的值(收盘价),在K线图中,从第1根K线到最后1根K线都有一个收盘价,因此fc跟单值变量不同,是由一系列的值组成的变量,因此我们称之为序列变量。
事实上,把“fc:close”这行代码做成一个指标,就可以看出fc是一条变化的曲线而不是一条水平直线。
●V ARIABLE:name=inivalue定义并初始化变量;name表示变量名,inivalue表示变量类型及初始值例如:V ARIABLE: T=0; 表示定义浮点数变量T并初始化为0●数组:数组的使用,要先定义,然后初始化(即赋予数组的每个元素一个初始的数据)。
在飞狐中,目前只支持一维数组,并且下标是从1开始的。
●INPUT:name(default,min,max,step)定义并设置参数;name表示参数名,default表示缺省值,min表示最小值,max表示最大值,step表示优化步长,除default外都可以省略。
例如:INPUT: T(10); 表示定义参数T,缺省值为10。
●BEGIN … END复合语句:将BEGIN 和END 之间的语句合成一个复合语句,好像BA T批处理指令。
鱼身主图指标[大智慧L2]
鱼⾝主图指标[⼤智慧L2]主图指标它的含义是:意图想要我们抛掉鱼头、鱼尾,只要鱼⾝那部分。
也就是:不追涨、不杀跌,看清趋势、稳健操作。
希望能给⼤家带来帮助!N: 0 100 20P1: 0 300 5P2: 0 300 30MA1:MA(CLOSE,P1);MA2:MA(CLOSE,P2);TY:=CLOSE;A1:=REF(TY,N)=HHV(TY,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);HD:=FILTER(C1,N);A2:=REF(TY,N)=LLV(TY,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);LD:=FILTER(C2,N);A:=REF(CLOSE,BARSLAST(HD));B:=REF(CLOSE,BARSLAST(LD));t1:=BARSLAST(HD) and BARSLAST(LD) AND NOT(LD);M1:=IF(CAPITAL<1,EMA(VOL,55),CLOSE);M2:=IF(CAPITAL<1,WMA(M1,360),DMA(M1,VOL/CAPITAL));M3:=IF(CAPITAL<1,DMA(MA(CLOSE,5),VOL/SUM(V,72)),DMA(MA(CLOSE,5),VOL/CAPITAL));持股:STICKLINE(m1>m2,MA(CLOSE,14),m3,10,0),colorCC00CC;持币:STICKLINE(m1<m2,MA(CLOSE,14),m3,10,0),color990000;STICKLINE(t1,A,A,10,0),Color00FF00,LINETHICK1;STICKLINE(t1,B,B,10,0),Color0000FF,LINETHICK1;AB1:=COST(0.33);AB2:=COST(5);AB3:=COST(15);AB4:=COST(55);AB5:=COST(97);AA1:=COST(90);AA2:=COST(70);AA3:=COST(30);AA4:=COST(10);获利:=WINNER(CLOSE)*100;套牢:=100-WINNER(CLOSE)*100;DRAWTEXTABS(10,20,'90成本:'+NUMTOSTRN(AA1,2)),Color00DD00;DRAWTEXTABS(10,40,'70成本:'+NUMTOSTRN(AA2,2)),Color00DDFF;DRAWTEXTABS(10,60,'30成本:'+NUMTOSTRN(AA3,2)),Color00DD00;DRAWTEXTABS(10,80,'10成本:'+NUMTOSTRN(AA4,2)),Color00DDFF;DRAWTEXTABS(10,100,'底出击:'+NUMTOSTRN(AB1,2)),ColorDDDDDD;DRAWTEXTABS(380,20,'建仓:'+NUMTOSTRN(AB2,2)),Color00DDFF;DRAWTEXTABS(480,20,'快⼑:'+NUMTOSTRN(AB3,2)),Colorff00FF;DRAWTEXTABS(580,20,'升浪:'+NUMTOSTRN(AB4,2)),Color0000FF;DRAWTEXTABS(580,40,'预测:'+NUMTOSTRN(AB5,2)),ColorffFF00;DRAWTEXTABS(380,40,'获利:'+NUMTOSTRN(获利,2)),ColorFF00FF;DRAWTEXTABS(480,40,'套牢:'+NUMTOSTRN(套牢,2)),Color00DD00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),colorFF5B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),colorFF6C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4,0),colorFF7B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3,0),colorFF9C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),colorFFBE00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),colorFFCC00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),colorFFFF00;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),color070084;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),color0000A3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4,0),color0000B7;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),color0000CD;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),color0000E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),color0754E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),color076EF3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),color077BF3;STICKLINE((CLOSE > OPEN),OPEN,LOW,1,0),color0726CA;STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1,0),color0726CA;STICKLINE((OPEN > CLOSE),CLOSE,LOW,1,0),colorDE9100;STICKLINE((OPEN > CLOSE),OPEN,HIGH,1,0),colorDE9100;如果⼤家感觉公式的图形有点挡住了K线的话,可以将下⾯的K线源码加⼊公式中,放在最后⾯就⾏. STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),colorFF5B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),colorFF6C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4,0),colorFF7B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3,0),colorFF9C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),colorFFBE00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),colorFFCC00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),colorFFFF00;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),color070084;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),color0000A3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4,0),color0000B7;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),color0000CD;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),color0000E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),color0754E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),color076EF3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),color077BF3;STICKLINE((CLOSE > OPEN),OPEN,LOW,1,0),color0726CA;STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1,0),color0726CA;STICKLINE((OPEN > CLOSE),CLOSE,LOW,1,0),colorDE9100;STICKLINE((OPEN > CLOSE),OPEN,HIGH,1,0),colorDE9100;DRAWTEXT(CROSS( MA1, MA2:), MA2,'★买'), COLORYELLOW ;DRAWTEXT(CROSS( MA2, MA1), MA1,'★卖'),COLORGREEN;2副图RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);量能:IF(CAPITAL<1,MA(vol,74),MA(SUM(J1-J2,22),3)),color00DDDD,LINETHICK0;趋势:IF(CAPITAL<1,WMA(量能,360),WMA(量能,21)),color008800,LINETHICK0;var3:=(量能-趋势);var4:=SMA(RV,3,1);var5:=SMA(var4,3,1);fillrgn(50,100,var3>0),color990099;fillrgn(50,0,var3<0),color008800;KK:EMA(SMA(RG,3,1),2),COLORFFFFFF,LAYER0;DD:SMA(KK,3,1),COLOR00FFFF,LAYER0;DRAWTEXTABS(10,10,STKLABEL+' '+STKNAME+''),Color00DDFF;DRAWICON(cross(var4,var5) and var5<30,2,7),layer0;DRAWICON(cross(var5,var4) and var5>30,97,8),layer0;FILLRGN(var5,var4,var4<var5),COLORFF8800;FILLRGN(var4,var5,var4>var5),COLOR0000BB;DRAWTEXT(cross(var4,var5) and cross(KK,DD),10,'共振点'),COLOR00FFFF;VERTLINE(cross(var4,var5) and cross(KK,DD),2),COLOR00FFFF;DRAWTEXT(CROSS( KK, DD ), DD,'★买'), COLORYELLOW ;DRAWTEXT(CROSS( DD, KK), KK,'★卖'),COLORGREEN;。
大智慧完全加密公式破解方法
大智慧完全加密公式破解方法摘要:1.大智慧L2加密公式破解背景2.网上破解资源的局限性3.破解方法及注意事项4.推荐的自制破解公式方法5.总结与建议正文:随着金融市场的发展,越来越多的投资者开始使用技术分析工具来辅助决策。
大智慧作为国内知名的炒股软件,其L2加密公式受到了很多用户的关注。
然而,由于加密技术的限制,许多用户对于大智慧L2加密公式的破解方法产生了浓厚的兴趣。
本文将为大家探讨大智慧L2加密公式的破解方法及注意事项。
一、大智慧L2加密公式破解背景大智慧L2加密公式破解的需求来源于用户对于高级技术指标的需求。
这些指标可以帮助投资者更准确地判断市场趋势,从而制定更具针对性的投资策略。
然而,大智慧L2加密公式价格较高,让许多普通投资者望而却步。
因此,寻求破解方法成为了一部分用户的需求。
二、网上破解资源的局限性在网络上,确实有一些关于大智慧L2加密公式破解的小软件流传。
然而,这些软件的破解力度普遍较低,且可能存在安全隐患。
部分专业人员手中可能掌握着更为有效的破解方法,但这些人通常不会将这些方法放到网络上,而是自己使用。
因此,从网络上寻找破解资源并不是一个可靠的方法。
三、破解方法及注意事项1.自制破解公式:针对大智慧L2加密公式的特性,用户可以尝试自制破解公式。
这种方法虽然耗费时间和精力,但一旦成功,将具有较高的实用价值。
自制破解公式的关键在于熟悉大智慧L2加密原理,以及掌握相关的编程技术。
2.学习编程语言:为了自制破解公式,用户需要学习编程语言。
Python、Java等编程语言是较好的选择,因为它们在大数据处理和算法分析方面具有优势。
3.数据分析和挖掘:在掌握编程语言的基础上,用户需要学习数据分析和挖掘技术。
这将有助于从大量数据中提取有价值的信息,为破解公式提供依据。
4.交流与学习:在破解过程中,用户应积极参与相关社群和论坛,与同行交流心得。
这样既可以学习他人的经验,也有助于自己经验的分享。
四、推荐的自制破解公式方法1.首先,了解大智慧L2加密公式的基本结构,包括输入参数、函数库等。
大智慧L2的选股公式
大智慧L2的选股公式原公式:VAR3:=MA(CLOSE,13);VAR4:=100-ABS(((CLOSE-VAR3)/(VAR3))*(100));VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR7:=(VAR6-VAR5)/(100);VAR8:=SMA((CLOSE-VAR5)/(VAR7),20,1);VAR9:=SMA((OPEN-VAR5)/(VAR7),20,1);VARA:=(3)*(VAR8)-(2)*(SMA(VAR8,15,1));VARB:=(3)*(VAR9)-(2)*(SMA(VAR9,15,1));VARC:=100-VARB;VARD:=(REF(LOW,1))*(0.89999997);VARE:=(LOW)*(0.89999997);VARF:=((VARE)*(VOL)+(VARD)*(CAPITAL-VOL))/(CAPITAL);VAR10:=EMA(VARF,30);VAR11:=CLOSE-REF(CLOSE,1);VAR12:=MAX(VAR11,0);VAR13:=ABS(VAR11);VAR14:=((SMA(VAR12,7,1))/(SMA(VAR13,7,1)))*(100);VAR15:=((SMA(VAR12,13,1))/(SMA(VAR13,13,1)))*(100);VAR16:=BARSCOUNT(CLOSE);VAR17:=((SMA(MAX(VAR11,0),6,1))/(SMA(ABS(VAR11),6,1)))*(100);VAR18:=(((-200))*(HHV(HIGH,60)-CLOSE))/(HHV(HIGH,60)-LLV(LOW,60))+ 100;VAR19:=((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*(100); VAR1A:=SMA((SMA(VAR19,4,1)-50)*(2),3,1);VAR1B:=((INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14)))*( 100);VAR1C:=SMA(VAR1B,4,1);VAR1D:=SMA(VAR1C,3,1);VAR1E:=((HHV(HIGH,30)-CLOSE)/(CLOSE))*(100);VAR1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100); VAR20:=REVERSE(VAR1F);VAR21:=SMA(VAR1F,3,1);趋势:=SMA(VAR21,3,1),COLOR0000FF,LINETHICK2;人气:=SMA(趋势,3,1),COLORYELLOW,LINETHICK2;出击:=IF(CROSS(趋势,人气) AND (趋势<30),20,0),COLOR0000FF,LINETHICK2;短卖:=IF(CROSS(人气,趋势) AND (人气>75),85,100),COLOR008000,LINETHICK2;A:=MA(C,60);B:=REF(A,3);REF(CROSS(趋势,人气),5) AND (趋势<60) AND A>B;改为:VAR3:=MA(CLOSE,13);VAR4:=100-ABS(((CLOSE-VAR3)/(VAR3))*(100));VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR7:=(VAR6-VAR5)/(100);VAR8:=SMA((CLOSE-VAR5)/(VAR7),20,1);VAR9:=SMA((OPEN-VAR5)/(VAR7),20,1);VARA:=(3)*(VAR8)-(2)*(SMA(VAR8,15,1));VARB:=(3)*(VAR9)-(2)*(SMA(VAR9,15,1));VARC:=100-VARB;VARD:=(REF(LOW,1))*(0.89999997);VARE:=(LOW)*(0.89999997);VARF:=((VARE)*(VOL)+(VARD)*(CAPITAL-VOL))/(CAPITAL);VAR10:=EMA(VARF,30);VAR11:=CLOSE-REF(CLOSE,1);VAR12:=MAX(VAR11,0);VAR13:=ABS(VAR11);VAR14:=((SMA(VAR12,7,1))/(SMA(VAR13,7,1)))*(100);VAR15:=((SMA(VAR12,13,1))/(SMA(VAR13,13,1)))*(100);VAR16:=BARSCOUNT(CLOSE);VAR17:=((SMA(MAX(VAR11,0),6,1))/(SMA(ABS(VAR11),6,1)))*(100);VAR18:=(((-200))*(HHV(HIGH,60)-CLOSE))/(HHV(HIGH,60)-LLV(LOW,60))+ 100;VAR19:=((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*(100); VAR1A:=SMA((SMA(VAR19,4,1)-50)*(2),3,1);VAR1B:=((INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14)))*( 100);VAR1C:=SMA(VAR1B,4,1);VAR1D:=SMA(VAR1C,3,1);VAR1E:=((HHV(HIGH,30)-CLOSE)/(CLOSE))*(100);VAR1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100); VAR20:=REVERSE(VAR1F);VAR21:=SMA(VAR1F,3,1);趋势:=SMA(VAR21,3,1);人气:=SMA(趋势,3,1);出击:=IF(CROSS(趋势,人气) AND (趋势<30),1,0);短卖:=IF(CROSS(人气,趋势) AND (人气>75),85,100);A:=MA(C,60);B:=REF(A,3);REF(CROSS(趋势,人气),5) AND (趋势<60) AND A>B;大智慧新一代选股公式:VAR3:=MA(CLOSE,13);VAR4:=100-ABS(((CLOSE-VAR3)/(VAR3))*(100));VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR7:=(VAR6-VAR5)/(100);VAR8:=SMA((CLOSE-VAR5)/(VAR7),20,1);VAR9:=SMA((OPEN-VAR5)/(VAR7),20,1);VARA:=(3)*(VAR8)-(2)*(SMA(VAR8,15,1));VARB:=(3)*(VAR9)-(2)*(SMA(VAR9,15,1));VARC:=100-VARB;VARD:=(REF(LOW,1))*(0.89999997);VARE:=(LOW)*(0.89999997);VARF:=((VARE)*(VOL)+(VARD)*(CAPITAL-VOL))/(CAPITAL);VAR10:=EMA(VARF,30);VAR11:=CLOSE-REF(CLOSE,1);VAR12:=MAX(VAR11,0);VAR13:=ABS(VAR11);VAR14:=((SMA(VAR12,7,1))/(SMA(VAR13,7,1)))*(100);VAR15:=((SMA(VAR12,13,1))/(SMA(VAR13,13,1)))*(100);VAR16:=BARSCOUNT(CLOSE);VAR17:=((SMA(MAX(VAR11,0),6,1))/(SMA(ABS(VAR11),6,1)))*(100);VAR18:=(((-200))*(HHV(HIGH,60)-CLOSE))/(HHV(HIGH,60)-LLV(LOW,60))+ 100;VAR19:=((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*(100); VAR1A:=SMA((SMA(VAR19,4,1)-50)*(2),3,1);VAR1B:=((INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14)))*( 100);VAR1C:=SMA(VAR1B,4,1);VAR1D:=SMA(VAR1C,3,1);VAR1E:=((HHV(HIGH,30)-CLOSE)/(CLOSE))*(100);VAR1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100); VAR20:=REVERSE(VAR1F);VAR21:=SMA(VAR1F,3,1);趋势:=SMA(VAR21,3,1),COLOR0000FF,LINETHICK2;人气:=SMA(趋势,3,1),COLORYELLOW,LINETHICK2;出击:=IF(CROSS(趋势,人气) AND (趋势<30),20,0),COLOR0000FF,LINETHICK2;短卖:=IF(CROSS(人气,趋势) AND (人气>75),85,100),COLOR008000,LINETHICK2;REF(CROSS(趋势,人气),1) AND (趋势<60);打开公式管理器,选择条件选股项,选择你要放入公式的小项(比如趋势,成交量,能量等),你也可放到其他项里面,然后点击右上方的新建,对话框出来后你键入你想要的公式名,然后在下方的空格内,粘贴上面的内容,然后点击测试,通过后点击确定就可以了。
大智慧L2主力资金监控(设置方法)(指标公式)
大智慧L2主力资金监控(设置方法)(指标公式)大智慧L2主力资金监控(设置方法)(指标公式)1、安装指标{主力持仓}HS:=vol/capital;DD:=BIGORDER(1,2)-BIGORDER(2,2);DT:=HS*DD*100;主力持仓: 50+Sum(DT,0),linethick2;三日:SUM(主力持仓,3),linethick0;五日:SUM(主力持仓,5),linethick0;十日:SUM(主力持仓,10),linethick0;当日增减度: DT, linethick0;STICKLINE(DT>0,主力持仓,主力持仓+DT,5,0),COLORRed; STICKLine(DT<0,主力持仓+DT,主力持仓,5,0),COLORGreen; 当日成交 := (DT * capital) * DYNAINFO(11)/10000;买入手数 := (capital*DT)/100;净买比:买入手数/vol*100,linethick0;if (当日成交>=0) thenbeginStr1:= '净买入:'+ NUMTOSTRN(当日成交,0)+'万元,';Str2 := '净买入:'+ NUMTOSTRN(买入手数,0)+'手,';Str3 := '当日增减度:' + NUMTOSTRN(DT,3);end;if 当日成交<0 thenbeginStr1:= '净卖出:'+ NUMTOSTRN(当日成交,0)+'万元,';Str2 := '净卖出:'+ NUMTOSTRN(买入手数,0)+'手,';Str3 := '当日增减度:' + NUMTOSTRN(DT,3);end;DRAWFLAGTEXT(DT>=0,主力持仓,Str1+str2+str3),COLORRED;DRAWFLAGTEXT(DT<0,主力持仓,Str1+str2+str3),COLORGREEN;{资金流向主力资金}一日资金流入:amount*BIGORDER(1,2)/10000,colorred,linethick0;一日资金流出:amount*BIGORDER(2,2)/10000,colorgreen,linethick0;净额:一日资金流入-一日资金流出,linethick0;十日飘红:count(净额>0,10),colorred;连续飘红:last(净额>0);stickline(净额>0,0,净额,3,0),colorred,linethick2;stickline(净额<0,净额,0,3,0),colorgreen,linethick2;0,dotline,colorwhite;注意:要分别安装2个指标,不需要设为常用指标。
大智慧l2资金流公式破解方法
一、上下载大智慧新一代最新版,目前是2.08版,如果你已经安装,请检查是不是安装在系统盘(C盘),如果是,请移动到其它盘或重新安装到其它盘,空间要足够大!
二、安装下载的大智慧新一代版到系统盘之外的其它盘,空间要大
三、到/index.asp?boardid=15下载最近20天的深圳和上海的分笔数据,以sh开关的放在data\sh文件夹下,并去年sh两个字母,以sz开头的放在data\sz文件夹下,并去掉sz两个字母
四、注册帐号,没有注册的,请通过/?fromuid=8664来注册
五、下载资金流公式和userdata.rar文件,下载地址:/thread-7654-1-1.html
然后解压,覆盖大智慧新一代安装文件夹下的userdata文件夹
六、在工具菜单中,单击扩展数据管理,在打开的对话框中,单击全部更新
七、在工具菜单中,单击自定义数据管理,在打开的对话框中,单击全部刷新
注意事项:开盘前打开大智慧新一代,让它盘中自动接收数据,中途不要关闭,否则数据不准确,会影响分析和判断的。
盘后收盘后自己再手动下载一次数据,勾选分部进行下载!
大智慧更新是强制更新,你不能不更新!当你关闭后再进入,就已经是最新版了!
八、如果你不能下载,可能是你没有注册,或注册了但分数不够,请发贴赚分吧!呵呵!
九、如果上面的工作全部完成,请打开个股的日K线图,选择资金流公式即可看到!(可将资金流公式设为“常用”,方便使用)。
凯恩斯工作线公式及用法)
DRAWTEXTREL(10,200,'线上阴线买|买错也要买'),linethick1,colorRed;
DRAWTEXTREL(10,240,'线下阳线卖|卖错也要卖'),linethick1,colorGreen;
STICKLINE(((C < 工作线) AND (C <= O)),H,L,0.5,0),colorGreen;
STICKLINE(((C < 工作线) AND (C <= O)),O,C,8,0),colorGreen;
DRAWTEXT((A2 = 1),L,' ̄'),linethick2,ALIGN1,Color208FFF;
A17:=EMA(((0.667 * (REF(A15,1))) + (0.333 * A10)),2);
A18:=EMA(A16,5);
A19:=EMA(((0.667 * (REF(A18,1))) + (0.333 * A18)),2);
A20:=CROSS(A10,A11);
A21:=(CROSS(A10,A19)) AND (A19 < 30);
STICKLINE((A2 >= 8),H,L,0.8,1),colorGreen;
STICKLINE(((A2 >= 8) AND (C > O)),O,C,8,1),colorGreen;
STICKLINE(((A2 >= 8) AND (C < O)),C,O,8,0),colorGreen;
大智慧高级箱体指标公式
大智慧高级箱体指标公式BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,colorwhite,linethick2;EBBI:(ema(c,6)+ema(c,18)+ema(c,54)+ema(c,162))/4,colorff00ff,linethick2; DRAWTEXT(cross(bbi,ebbi),l-0.13,'太牛啦'),coloryellow;DRAWTEXT(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.99,'←买入') , COLORRED;DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.008,'←走人'),colorgreen;NN:= DISPSTATUS=2;A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1);D1:=FILTER(C1,3);A2:=REF(LOW,3)=LLV(LOW,2*3+1);B2:=FILTER(A2,3);C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3);E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT(D1 AND E1=E2));X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);L2:=LD OR BARSTATUS OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H1,X2)>0,HHVBARS(IF(H1,HIGH,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);UU:=BACKSET(BARSTATUS,BARSLAST(LD)+1);VV:=UU>REF(UU,1);WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);XX:=WW>REF(WW,1);UU2:=BACKSET(BARSTATUS,BARSLAST(HD)+1);VV2:=UU2>REF(UU2,1);WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);XX2:=WW2>REF(WW2,1);前一低支撑:REF(L,BARSLAST(VV)),PRECIS2,COLOR99FF66,LINETHICK1,DOTLINE;箱体下沿:REF(L,BARSLAST(XX)),ColorFFFF00,PRECIS2;前一高压力:REF(H,BARSLAST(VV2)),PRECIS2,COLOR99FF66,LINETHICK1,DOTLINE;箱体上沿:REF(H,BARSLAST(XX2)),PRECIS2,Color00FFFF;DRAWTEXT(nn,前一低支撑,'前一低支撑: '+NUMTOSTRN(前一低支撑,2)+'元'),ALIGN2,Color00dd00,VALIGN0; DRAWTEXT(nn,前一高压力,'前一高压力: '+NUMTOSTRN(前一高压力,2)+'元'),ALIGN2,Color00dd00,VALIGN2; DRAWTEXT(nn,箱体下沿,'箱体下沿: '+NUMTOSTRN(箱体下沿,2)+'元'),ALIGN2,ColorFFFF00,LINETHICK1,VALIGN0; DRAWTEXT(nn,箱体上沿,'箱体上沿: '+NUMTOSTRN(箱体上沿,2)+'元'),ALIGN2,Color00FFFF,LINETHICK1,VALIGN2; Y:=(HIGH+LOW)/2;AO:=MA(Y,5)-MA(Y,21);DU0:=CROSS(AO,0);UD0:=CROSS(0,AO);TDU0:=BARSLAST(DU0);TUD0:=BARSLAST(UD0);DU3:=REF(DU0,1);UD3:=REF(UD0,1);TDU3:=BARSLAST(DU3);TUD3:=BARSLAST(UD3);劫:IF(TDU3<TUD3,REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3)),COLORFF0033,LINETHICK4;赢:=MA(C,1);在:=SMA(SMA(SMA(赢,2,1),2,1),2,1);龙:=MA(在,3);FILLRGN(在,龙,在>=龙),Color0000FF;FILLRGN(在,龙,在<龙),color00FF00;W1:=C=HHV(C,10);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));ZHUIA:=W4 AND COUNT(W4,5)=1;STICKLINE(ZHUIA>0,O,C,3,0),COLORYELLOW;{股旁网-股票公式网站 }ma2:=sum(AMOUNT/100,2)/sum(v,2);ma3:=sum(AMOUNT/100,3)/sum(v,3);ma4:=sum(AMOUNT/100,4)/sum(v,4);ma5:=sum(AMOUNT/100,5)/sum(v,5);ma6:=sum(AMOUNT/100,6)/sum(v,6);ma7:=sum(AMOUNT/100,7)/sum(v,7);ma8:=sum(AMOUNT/100,8)/sum(v,8);ma9:=sum(AMOUNT/100,9)/sum(v,9);ma10:=sum(AMOUNT/100,10)/sum(v,10);ma11:=sum(AMOUNT/100,11)/sum(v,11);ma12:=sum(AMOUNT/100,12)/sum(v,12);ma13:=sum(AMOUNT/100,13)/sum(v,13);ma14:=sum(AMOUNT/100,14)/sum(v,14);ma15:=sum(AMOUNT/100,15)/sum(v,15);ma16:=sum(AMOUNT/100,16)/sum(v,16);ma17:=sum(AMOUNT/100,17)/sum(v,17);ma18:=sum(AMOUNT/100,18)/sum(v,18);ma19:=sum(AMOUNT/100,19)/sum(v,19);a:max(ma2,max(ma3,max(ma4,max(ma5,max(ma6,max(ma7,max(ma8,max(ma9,max(ma10,max(ma11,max(ma12,max(ma13,max(ma14,max(ma1 5,max(ma16,max(ma17,max(ma18,ma19))))))))))))))))),LINETHICK0;DRAWICON(cross(c,a),l ,6);。
2个很棒的大智慧L2指标公式
1.名称:逃顶专家公式用法:两条k线相重合,顶部到来,出现蓝色k线,逃顶。
量:=(CLOSE - LLV(LOW,32)) / (HHV(HIGH,32) - LLV(LOW,32)) * 1.2 * CLOSE; 量1:=EMA(量,3);量2:=EMA(量,5);量3:=EMA(量,7);STICKLINE(量1 >= 量2,量3,量1,8,0),color0000AA;STICKLINE(量1 >= 量2,量3,量1,7,0),color0000BB;STICKLINE(量1 >= 量2,量3,量1,6,0),color0000CC;STICKLINE(量1 >= 量2,量3,量1,5,0),color0000DD;STICKLINE(量1 >= 量2,量3,量1,4,0),color0000EE;STICKLINE(量1 >= 量2,量3,量1,3,0),color0000FF;STICKLINE(量1 <= 量2,量3,量1,8,0),colorFF0000;STICKLINE(量1 <= 量2,量3,量1,7,0),colorFF3300;STICKLINE(量1 <= 量2,量3,量1,6,0),colorFF5500;STICKLINE(量1 <= 量2,量3,量1,5,0),colorFF7700;STICKLINE(量1 <= 量2,量3,量1,4,0),colorFF9900;STICKLINE(量1 <= 量2,量3,量1,3,0),colorFFBB00;STICKLINE(量1 <= 量2,量3,量1,2,0),colorFFDD00;STICKLINE(量1 <= 量2,量3,量1,1,0),colorFFFF00;T1:=量2 >= 量3 AND 量1 < REF(量1,1);T2:=量2 < 量3 AND 量1 > REF(量1,1);STICKLINE(T1,量1,量3,8,0),colorFFBB11;STICKLINE(T1,量1,量3,7,0),colorFFCC22;STICKLINE(T1,量1,量3,5,0),colorFFDD33;STICKLINE(T1,量1,量3,3,0),colorFFEE44;STICKLINE(T1,量1,量3,1,0),colorFFFF55;STICKLINE(T2,量1,量3,10,0),color338FDD;STICKLINE(T2,量1,量3,8,0),colorFF00FF;STICKLINE(T2,量1,量3,1,0),color00DDFF;STICKLINE(T2,量1,量3,8,0),color00AAFF;STICKLINE(T2,量1,量3,6.6,0),color00BBFF;STICKLINE(T2,量1,量3,4.4,0),color00CCFF;STICKLINE(T2,量1,量3,3.3,0),color00DDFF;STICKLINE(T2,量1,量3,2.2,0),color00EEFF;STICKLINE(T2,量1,量3,1,0),color00FFFF;2. 神奇线大盘暴跌,不用怕,我有神奇线,好神奇哦!出现神奇买点后,就在神奇线处买入,没有未来!XX2:=(MA(CLOSE,80)-MA(CLOSE,13)/3);奇线: MA((CLOSE-XX2)/XX2,1),color00ff00;买点1: IF(CROSS(奇线,0) AND LOW/REF(HIGH,1)<1.012,0.5,0), STICK,COLORWHITE;买点2: IF(REF(奇线,2)=LLV(奇线,20) AND REF(奇线,2)<0.071 AND REF(奇线,2)<REF(奇线,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1),0.5,0),COLORRED;DRAWTEXT( 买点1>0,0.2 ,'神奇线'),COLORWHITE;DRAWTEXT( 买点2>0,0.4 , '神奇线'),COLORyellow;。
股票-大智慧保赚不赔买卖提示指标公式
大智慧保赚不赔买卖提示指标公式回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1);经典D:=SMA(经典K,3,1);经典J:=3*经典K-2*经典D;MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA( H,20)-EMA(L,20)))/(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L, 20))));MAHL2:=IF(EMA(C,2)回归斜率线AANDMAHL10,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)回归斜率线AANDMAHL10,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}上线:=SMA(C,6.5,1);支撑线:SMA(C,14.5,1);上线1:=SMA(C,3,1);一号支撑线1:=SMA(C,8,1);上线2:=SMA(C,3.5,1);DRAWTEXTREL(610,20,重点看支撑线与操作线),COLORFF00FF;DRAWTEXTREL(720,20,趋势角度方向,),COLORYELLOW;DRAWTEXTREL(800,20,结合均线及资金流向和OAMV活筹动态。
),COLOR0000FF;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,2 5))/4;UPR:=BBI+3*STD(BBI,13);DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT(CROSS(82,RSI)ANDCLOSE上线1,HIGH*1.04,减仓),COLORFF9966,LINETHICK2;A7:=(2*C+H+L)/4;操作线:MA(A7,5),COLORRED,LINETHICK2;操作1:=MA(A7,5)*1.03;操作2:=MA(A7,5)*0.97;PARTLINE(操作线,操作线=REF(操作线,1),RGB(255,0,0),操作线REF(操作线,1),RGB(0,255,0)),Linethick2;a38:=BIGORDER(1,2);a39:=BIGORDER(2,2);a40:=(((a38-a39)*VOL)/CAPITAL)*500;a16:=REF(CLOSE,1);DRAWTEXT(((((OPEN/a16)1.03)AND(CLOSEOPEN))AND(a400)),H IGH,出货),colorMagenta;DRAWTEXT(CROSS(上线1,上线)AND上线1操作线,LOW*0.95,买进),COLORYELLOW;DRAWTEXT(CROSS(操作线,支撑线),LOW*0.95,做多),COLORRED;箱底:LLV(A7,21);箱顶:HHV(A7,30);DRAWTEXT(CROSS(支撑线,操作线),H*1.06,注意仓位),COLOR00FF00;DRAWTEXT(CROSS(上线1,操作线)AND上线1支撑线AND上线1一号支撑线1AND上线1上线ANDCLOSE箱底,LOW*0.99,见底),COLORYELLOW;YCX:=操作线=REF(操作线,1);H1:=MAX(MAX(上线,一号支撑线1),支撑线);L1:=MIN(MIN(上线,一号支撑线1),支撑线);DRAWTEXT(CROSS(上线1,一号支撑线1)AND上线1操作线,LOW*0.98,全仓),COLORFF00FF;SK:=EMA((A7-箱底)/(箱顶-箱底)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作线/支撑线=1015AND1000*操作线/支撑线=975;M2:=1000*一号支撑线1/支撑线=1020AND一号支撑线1/支撑线=980;M3:=1000*上线/支撑线=1015AND上线/支撑线=985;DRAWTEXT(IF(COUNT(CLOSEREF(CLOSE,1),13)/136/10ANDCOU NT(SKSD,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE=OPE N,4)ANDREF(CLOSEOPEN,3)ANDREF(CLOSEOPEN,2)ANDREF(OP ENCLOSE,1)ANDOPENREF(CLOSE,1),1,0),LOW*0.94,买进),COLORYELLOW;D:=MA(CLOSE,89)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSEDANDVOL/240MA(VOL,5)/240ANDCLOSER EF(CLOSE,1)*1.08ANDCLOSEMA(CLOSE,13)*1.3,1,0),LOW*0.88,抄底),COLORBROWN;RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100; K:=SMA(RSV,3,1);D1:=SMA(K,3,1);J:=3*K-2*D1;VAR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为4,信号少点}E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);DRAWICON(CROSS(F,G)ANDJ65,HIGH*1.02,15),COLORGREEN; DRAWICON(CROSS(G,F),LOW*1.01,12),COLORYELLOW;DRAWTEXT(CLOSEOPENANDH1CANDOL1ANDYCXANDCROSS(上线1,操作线)ANDLOW箱底AND上线1支撑线ANDJ90,LOW*0.9,主升),COLORRED;DRAWTEXT(CROSS(上线1,操作线)ANDM1ANDM2ANDM3,LOW*0.94,买进),COLORYELLOW;DRAWTEXT(CLOSEOPENAND上线一号支撑线1AND一号支撑线1支撑线ANDCLOSEMA(CLOSE,支撑线)AND操作线=REF(CLOSE,操作线)ANDCROSS(上线1,操作线)ANDLOW箱底ANDJ90,LOW*0.9,主升),COLORRED;STICKLINE(CLOSEREF(CLOSE,1),HIGH,LOW,0,0),COLORRED; STICKLINE(COANDCREF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSEREF(CLOSE,1)ANDCO,OPEN,CLOSE,3,0),COLORr ed;{红K};STICKLINE(CLOSEREF(CLOSE,1)ANDCO,OPEN,CLOSE,2.7,0),COLO Rred;{红K};R000099;STICKLINE(CLOSEREF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000B B;STICKLINE(CLOSEREF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000D D;STICKLINE(CLOSEREF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR0000F F;STICKLINE(CLOSE=REF(CLOSE,1),H,L,3,1),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,0),COLORWHITE;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR55555 5;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR7777 77;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR9999 99;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBB BB;DDD;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFFF FF;STICKLINE(CLOSEREF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN;STICKLINE(CREF(C,1)ANDCO,C,O,3,0),COLORFFCC00;STICKLINE(CREF(C,1)ANDCO,OPEN,CLOSE,3,0),COLOR990000;STICKLINE(CREF(C,1)ANDCO,OPEN,CLOSE,2.7,0),COLORCC0000;STICKLINE(CLOSEREF(C,1),OPEN,CLOSE,2.1,0),COLORFF4400;STICKLINE(CLOSEREF(C,1),OPEN,CLOSE,1.5,0),COLORFF8800;STICKLINE(CLOSEREF(C,1),OPEN,CLOSE,0.9,0),COLORFFCC00;A11:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55) )*100,5,1)-2*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LO W,55))*100,5,1);黑马线:=EMA(A11,5);A12:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;A4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;趋势线3:=MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2);大黑马:=CROSS(趋势线3,0)AND黑马线DRAWTEXT(大黑马,LOW*0.97,大黑马),COLORdddddd;STICKLINE(CROSS(J,D1)ANDJ70,CLOSE,OPEN,3.2,0),COLORBB00 FF;STICKLINE(CROSS(J,D1)ANDJ70,CLOSE,OPEN,2.7,0),COLORFF33F F;STICKLINE(CROSS(J,D1)ANDJ70,CLOSE,OPEN,2.1,0),COLORFF66F F;STICKLINE(CROSS(J,D1)ANDJ70,CLOSE,OPEN,1.5,0),COLORFF99F F;STICKLINE(CROSS(J,D1)ANDJ70,CLOSE,OPEN,0.9,0),COLORFFBBF F;STICKLINE(CROSS(J,D1)ANDJ70,CLOSE,OPEN,0.3,0),COLORFFDD FF;大智慧保赚不赔买卖提示指标公式实例图解:大智慧保赚不赔买卖提示指标公式。
大智慧顶底双线主图指标公式
大智慧顶底双线主图指标公式MA20:=MA(CLOSE,20);MA120:=MA(CLOSE,120);MA30:=MA(CLOSE,37);MAP:=MA(CLOSE,8);AA5:=MA(CLOSE,21);AA10:MA(CLOSE,8),COLOR0000FF;AA12:MA(CLOSE,12),COLORFF8080;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VAR1Q:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);中期底:LLV(LOW,30),COLORCDFFBB;短底:=EMA(VAR1Q,5);支撑:=HHV(短底,60);压力1:HHV(LOW,20),COLORFAABEC;压力:=SMA(LOW,5,1);中线:=MA(CLOSE,3);DRAWTEXT(FILTER(((((HIGH > 支撑) AND (CLOSE < 支撑)) AND ((CLOSE / OPEN) > (0 - 1.06))) AND (CLOSE < OPEN)),5),(HIGH + 0.02),'逃'),COLOR00FFFF;中轨道:=(MA(HIGH,15) * 1.05);天:=(MA(LOW,15) * 0.985);人:=(MA(LOW,15) * 0.96);地:=(((HIGH + LOW) + CLOSE) / 3);B1:=HHV(地,(4 * 15));B6:=LLV(地,(4 * 15));B7:=(B1 - B6);B8:=(MA(((地 - B6) / B7),2) * 80);VAR1:=(((CLOSE - LLV(LOW,100)) / (HHV(HIGH,100) - LLV(LOW,100))) * 200);婵思顶底线:=SMA(VAR1,3,1);VAR2:=SMA(婵思顶底线,3,1);VAR3:=((3 * 婵思顶底线) - (2 * VAR2));VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,5);VAR6:=(EMA((((CLOSE - VAR4) / (VAR5 - VAR4)) * 100),4) * 2);VAR7:=EMA(((0.667 * REF(VAR6,1)) + (0.333 * VAR6)),2);VAR8:=((3 * VAR6) - (2 * VAR7));VAR9:=(POW(MA(CLOSE,5),2) + MA(CLOSE,5));VARA:=(POW(MA(LOW,5),2) + MA(LOW,5));VARB:=(POW(MA(HIGH,5),2) + MA(HIGH,5));VARC:=(((((VAR9 - LLV(VARA,64)) / (HHV(VARB,64) - LLV(VARA,64))) * 150) + 65) - 10);VARD:=((SMA(VARC,3,1) * 1.5) - 100);VARE:=SMA(VARD,3,1);VARF:=((3 * VARD) - (2 * VARE));VAR10:=(((HIGH + LOW) + (CLOSE * 2)) / 4);VAR11:=EMA(VAR10,13);VAR12:=STD(VAR10,13);VAR13:=(((VAR10 - VAR11) * 100) / VAR12);VAR14:=EMA(VAR13,5);VAR15:=EMA(VAR14,13);VAR16:=((EMA(VAR14,13) + 200) - 100);VAR17:=EMA(VAR16,10);VAR18:=((3 * VAR16) - (2 * VAR17));VAR19:=(((婵思顶底线 + VAR6) + VARD) + VAR16);VAR1A:=(((VAR2 + VAR7) + VARE) + VAR17);VAR1B:=(((VAR3 + VAR8) + VARF) + VAR18);VAR1C:=(((HIGH + LOW) + CLOSE) / 3);VAR1D:=((AMOUNT / VOL) / 100);VAR1E:=((SUM(AMOUNT,5) / SUM(VOL,5)) / 100);VAR1F:=((VAR1C - MA(VAR1C,34)) / (0.015 * AVEDEV(VAR1C,34)));VAR20:=DMA(((AMOUNT / VOL) / 100),(VOL / CAPITAL));VAR21:=((((HIGH + LOW) + CLOSE) + VAR1C) / 4);VAR22:=EMA(VAR21,24);VAR23:=STD(VAR21,24);VAR24:=(((VAR21 - VAR22) / VAR23) * 100);VAR25:=((VAR1C - MA(VAR1C,24)) / (0.015 * AVEDEV(VAR1C,24)));VAR26:=EMA(VAR24,5);VAR27:=((VAR1D - MA(VAR1D,21)) / (0.015 * AVEDEV(VAR1D,21)));VAR28:=((VAR1E - MA(VAR1E,90)) / (0.015 * AVEDEV(VAR1E,90)));VAR29:=(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4);VAR2A:=(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15);VAR2B:=(((VAR29 + VAR2A) / 2) / 1.1);VAR2C:=VAR2B;短线:=MA(VAR2C,26);MID:=(短线 + (2 * STD(VAR2C,26)));UPPER:=(短线 - (2 * STD(VAR2C,26)));LOWER:=IF((VAR2C > 短线),短线,VAR2C);XY:=MA(CLOSE,5);MA5:=MA(CLOSE,80);短期底:(LLV(HIGH,30) * 0.93),COLOR0000FF;MA80:=LLV(HIGH,30);短期底2:=SMA(CLOSE,2,1);趋势:=(MA(LOW,10) * 0.96);趋:=(EMA(OPEN,107) * 0.897);超跌位2:=MA(CLOSE,15);GF:=MA(CLOSE,10);MAN:=(SMA(HIGH,21,2) * 1.05);上1:=(HHV(短底,60) * 0.92);压力2:=(SMA(HIGH,21,2) * 1.035);阻挡线:=(SMA(LOW,21,2) * 0.96);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);RSV:=SMA(下档线,3,1);K:=SMA(RSV,3,1);D:=((3 * RSV) - (2 * K));J:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR2P:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR3P:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR4P:=(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6);VAR5P:=MA(VAR4P,3);VAR6P:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100);RSV12:=SMA(VAR6P,3,1);K12:=SMA(RSV12,3,1);D12:=((3 * RSV12) - (2 * K12));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));{J24:=IF(CROSS(D,D24),LOW,REF(LOW,BARSLAST(CROSS(D,D24))));}压力位:IF(CROSS(D24,D),HIGH,L),POINTDOT,COLORFFFFFF;支撑位:=IF((CLOSE >= MA(CLOSE,20)),80,50);U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);{L2L:=IF(((D < 支撑位) AND (REF(D,1) >= 支撑位)),HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),BARSLAST(((D < 支撑位) AND REF(D,1)))));RH1:=IF((HIGH > L2L),LOW,REF(LOW,BARSLAST((HIGH > L2L))));RH4:=IF((HIGH > L2L),D,REF(D,BARSLAST((HIGH > L2L))));RH42:=IF((((HIGH > RH1) AND (D < RH4)) AND (D < D24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH1) AND (D < RH4)) AND (D < D24)))));RH5:=IF(((D > U2L) AND (REF(D,1) <= U2L)),LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),BARSLAST(((D > U2L) AND REF(D,1)))));RL1:=IF((LOW < RH5),HIGH,REF(HIGH,BARSLAST((LOW < RH5))));RL4:=IF((LOW < RH5),D,REF(D,BARSLAST((LOW < RH5))));RL42:=IF((((LOW < RL1) AND (D > RL4)) AND (D > D24)),LOW,REF(LOW,BARSLAST((((LOW < RL1) AND (D > RL4)) AND (D > D24)))));}长期底:LLV(HIGH,30),COLOR00FF00;{DRAWTEXT(FILTER(((((RL42 = J24) AND (CLOSE > OPEN)) AND (CLOSE > 长期底)) AND (LOW <= J24)),20),(LOW - 0.12),'←底成'),COLOR0EABFF;}RL5:=(SMA(HIGH,5,2) * 1.05);上:=(SMA(LOW,5,2) * 0.96);下:=SMA(LOW,2,1);{DRAWTEXT(FILTER((((((LOW <= 压力位) AND (WINNER(CLOSE) <= 0.07)) AND (CLOSE >= 压力位)) AND (CLOSE < 上1)) AND ((CLOSE / OPEN) > 1.02)),3),LOW,'追'),COLOR936EF0;} 中:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1:=EMA(中,10);X2:=REF(X1,1);X3:=((REF(HIGH,1) + REF(LOW,1)) / 2);X4:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X5:=REF(CLOSE,1);X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100);X7:=CROSS(79,X6);X8:=FILTER(X7,4);X9:=MA(CLOSE,115);VAR1M:=EMA(CLOSE,8);婵思顶底线1:=EMA(VAR1M,20);VAR2M:=CROSS(VAR1M,婵思顶底线1);VAR3M:=(VAR1M < MA(CLOSE,20));VAR4M:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);VAR5M:=SMA(VAR4M,5,1);VAR6M:=SMA(VAR5M,8,1);VAR7M:=(CROSS(VAR5M,VAR6M) AND (VAR6M < 5));VAR8M:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR7M);VAR9M:=IF((CLOSE > 1000),VAR7M,VAR8M);VARFM:=CROSS(X1,X2);MA115:=VARFM;低买:=(VAR2M AND VAR3M);黑马起步:=VAR9M;DRAWTEXT(X8,(HIGH * 1.03),'出货'),COLOR9000F5;逃遁:=(SMA(HIGH,21,2) * 1.05);STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,9,0),COLORFF5B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8,0),COLORFF6C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),COLORFF7B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),COLORFF9C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),COLORFFBE00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3.5,0),COLORFFCC00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),COLORFFFF00;。
大智慧使用的极优秀的公式---点石成金源码公布-追求短线最大收益-短线zpx-...
大智慧使用的极优秀的公式---点石成金源码公布-追求短线最大收益-短线zpx-...大智慧L2使用的优秀指标。
是我自己更改的。
授人以鱼不如授人以渔,给个顶级的公式,大家用用看。
我给的名字是点石成金。
DRAWTEXTREL(50 ,150,' 操作原则:'),ALIGN0,color00ff00;DRAWTEXTREL(50 ,200,'1.看走势线,只做上升趋势!'),ALIGN0,color00ff00;DRAWTEXTREL(50 ,250,'2.出现“★关注”可以注意,准备买入。
'),ALIGN0,color00ff00;DRAWTEXTREL(50 ,300,'3.出现“◆买”,“★买”为中线买入。
'),ALIGN0,color00ff00;DRAWTEXTREL(50 ,350,'4.出现"★跟"为强势信号,可以加仓。
'),ALIGN0,color00ff00;DRAWTEXTREL(50 ,400,'5.出现“★卖”为空仓信号,应该卖出。
'),ALIGN0,color00ff00;{差值和画线,走势线,价均线,中期大走势}SSL:=EMA(CLOSE,3);MM:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);STICKLINE(((SSL>MM)),SSL,MM,1,0),COLORRED;SA:=(MM*0.985);SS:=(MA(CLOSE,5));走势线:IF(((SSL>MM)),MM,SA),LINETHICK2,COLORFF00FF;JJ:=(o+h+l)/3;A:=SMA(JJ,4,1);价均线:A,COLORYELLOW,LINETHICK1;STICKLINE(((SSL<MM)),走势线,价均线,1,0),COLORFFFF00;{均线买卖位置的确定}VA1:=EMA(c,4);VA2:=EMA(c,13);DRAWTEXT(CROSS(VA2,VA1),h*1.05,'★卖'),COLOR00ff22;DRAWTEXT(CROSS(VA1,VA2) AND (C>O) AND 价均线>REF(价均线,1),VA1*0.92,'★买'),COLOR0055ff;{慢线趋势线空方线--第二买位置的确定}q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;q3:=SMA(q2, 9, 1);q4:=SMA(q3, 3, 1);慢线:=3*q3-2*q4;趋势:=EMA(q3, 3);VarKK:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;空方:=SMA(VarKK,3,1);VarKF:=REF(CLOSE,2);快线:=SMA(MAX(CLOSE-VarKF,0),7,1)/SMA(ABS(CLOSE-VarKF),7,1)*100;cc1:=趋势-慢线;XX1:=CROSS(慢线,趋势) AND 空方>1.005*趋势AND 快线>ref(快线,1) and count(cc1>0,12)>10 and c>o;STICKLINE(xx1,va1*0.92,va1*0.87,4,0),COLOR44ffff;{drawicon(xx1,va1*0.95,7);}DRAWTEXT(xx1,va1*0.9,'◆买'),COLORf000f0;{买前关注的确定}VAR1:=(c-LLV(l,27))/(HHV(h,27)-LLV(l,27))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);NX7:=c<hhv(c,7);DRAWTEXT(CROSS(VAR3,VAR4) AND c>o AND VAR3<40 AND NX7,LOW*0.96,'★关注'),COLORF000F0;{彩色K线}STICKLINE(C>=O,C,O,5,0),COLORRED;STICKLINE(C>=O,H,L,0,0),COLOR00ffff;STICKLINE(C<=O,C,O,5,0),COLORGREEN;STICKLINE(C<=O,H,L,0,0),COLORFFFF00;{箱体确定}箱顶:MA(REF(HHV(c,15),1),2),COLOR0000FF,LINETHICK2;箱底:MA(REF(LLV(c,15),1),2),COLOR00FF00,LINETHICK2;{跟的确定}买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);ggg:=CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1);DRAWTEXT(ggg,LOW*0.95,'★跟'),COLOR00F0F0;通达信或大智慧1使用,只要把前门的drawtextrel 全部删去即可。
大智慧经典版 指标及选股公式
选股公式金叉MACDDIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; 低位金叉OR 二次金叉;红进绿出V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);V AR5:=3*V AR3-2*VAR4;AA:CROSS(V AR5,V AR3) AND V AR3<2.1 AND C>O;仓位增减空:=EMA(C,5);均衡:=EMA(空,5);中轨:=HHV(MA(H,13),13);加仓:FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11);夺宝奇兵买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);v1:=ema(close,5);v2:=ema(ema(close,29)*1.01,10);买进条件and cross(v1,v2);中华方圆▲★{红▲、红★同时出现选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);红▲:=CROSS(Y,X);c1:=(CLOSE+LOW+HIGH)/3;c2:=EMA(c1,6);c3:=EMA(c2,5);红★:=CROSS(c2,c3);红▲and 红★;中华方圆□V AR1:=LLV(LOW,21);V AR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - V AR1) / (V AR2 - V AR1)) * 100),5); AK:=EMA((((CLOSE - VAR1) / (V AR2 - V AR1)) * 50),13); AB:=CROSS(AK1,AK);V AR3:=LLV(LOW,55);V AR4:=HHV(HIGH,34);V AR5:=EMA((((CLOSE - V AR3) / (V AR4 - V AR3)) * 100),3); V AR6:=((AK + V AR5) / 2);V AR8:=EMA(V AR6,5);BB:=EMA(((0.667 * REF(V AR8,1)) + (0.333 * V AR8)),2); BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);白色□:AB =1;中华方圆▲{红▲选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);红▲:CROSS(Y,X);中华方圆★{红★选股}c1:=(CLOSE+LOW+HIGH)/3;c2:=EMA(c1,6);c3:=EMA(c2,5);c4:=CROSS(c2,c3);红★:c4;黑马王N:=20;V AR2:=(CLOSE+HIGH+LOW)/(3);V AR3:=(EMA(V AR2,10));V AR4:=(REF(VAR3,1));V AR5:=((REF(HIGH,1)+REF(LOW,1))/(2));V AR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));xg:CROSS(V AR3,V AR4);红柱初现X4:=(L+H+C*4)/6;x6:=EMA(x4,19);x9:=(x6-REF(x6,1))/REF(x6,1)*100;红柱初现:=x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1);第1个红柱:红柱初现and ref(红柱初现,1)<1;紫黄同现A1:=EMA(C,7)-EMA(C,21); A2:=MA(A1,4); 买入:cross(A1,A2) AND A1-A2>0.03 and A2<-0.1;布林宝塔线QJJ:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));XVL:=(IF((CLOSE>OPEN),(QJJ*(HIGH-LOW)),IF((CLOSE<OPEN),(QJJ*((HIGH-OPEN)+(CLOSE-LOW))), (VOL/2)))+IF((CLOSE>OPEN),(0-(QJJ*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE<OPEN),(0-(QJJ*(HIGH-LOW))),(0-(VOL/2)))));ZLL:=(VOL/CAPITAL);HSL:=((XVL/20)/1.15);攻击流量:=(((HSL*0.55)+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));LLJX:=EMA(攻击流量,3);B1:=REF(C,1);B2:=REF(C,2);SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(C<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2) AND REF(C,2)>REF(C,1),2,IF(C<REF(C,2) AND REF(C,2)<REF(C,1),-2,0))));SM:=IF(REF(SS,1)<>0,REF(SS,1),IF(REF(SS,2)<>0,REF(SS,2),IF(REF(SS,3)<>0,REF(SS,3),IF(REF(SS,5)<>0,REF(SS,5),IF(REF(SS,6)<>0,REF(SS,6),IF(REF(SS,7)<>0,REF(SS,7),0))))));DK:=IF(REF(SS,1)<>0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2)));C>REF(C,1)*1.035 AND C>AMOUNT/100/V AND COUNT(CROSS(LLJX,0),2)=1 AND CROSS(C,DK)AND C>SAR(10,2,20) AND C>MA(C,14) AND C>MA(C,20)AND BETWEEN(V/CAPITAL,0.01,0.08) AND CAPITAL<=2000000;上穿就买上升趋势:=EMA(CLOSE,5);支撑压力:=EMA(CLOSE,21);XG:CROSS(上升趋势,支撑压力);三线交汇B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分水岭:=IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),,;操作线:=分水岭-(EMA(C,3)-分水岭);CROSS(分水岭,操作线);立桩量AAA:=(3*C+H+L+O)/6;V AR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>V AR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:=TJ2=1;TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法则:=TJ3=1;成立:=三天法则AND 突破;条件成立:FILTER(成立,3);低进高出RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);CROSS(J,REF(J+0.01,1)) AND X AND J<19;财出水面V AR2:=(-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);操盘:=3*VAR3-2*VAR4;xg:CROSS(操盘,V AR3) AND V AR3<2.1 and c>o;绝对牛股Var1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(Var1,13)-EMA(Var1,73);SD:= EMA(SK,2);V1:(cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03)or (cross(sk,sd) and sk<=-0.14 ) or (cross(sk,sd) and sk<=0.05and (v/ma(v,5)>2 or c/ref(c,1)>0.035));关注DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:=(MACD超跌* "MACD.MACD"(26,12,9))*(-1);MACD金叉:=CROSS(DIFF,DEA);关注: (MACD金叉AND (REF(MACD,1) < 0)) ;关注买MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA65:=MA(CLOSE,65);MA250:=MA(CLOSE,250);均线流:=(((((MA5 > MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 < MA30)) * 0.3); PL1:=(((CLOSE - MA60) / MA60) < 0.1);PL2:=(((CLOSE - MA250) / MA250) < 0.3);偏离率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:=(MACD超跌* "MACD.MACD"(26,12,9))*(-1);目标:=IF(均线流=0.3 AND MACD AND 偏离率=0.2 ,0.8,0);MBSJ:=BARSLAST((目标= 0.8));放量上涨:=(((VOL / REF(VOL,1)) >= 1.1) AND ((CLOSE / REF(CLOSE,1)) >= 1.01));SZSJ:=BARSLAST((放量上涨= 1));MACD金叉:=CROSS(DIFF,DEA);JCSJ:=BARSLAST((MACD金叉= 1));启动:((((MBSJ <= 20) AND (SZSJ <= 1)) AND (JCSJ <= 1)) * 1);老鸭头MA5 := MA(close,5);MA10 := MA(close,10);MA60 := MA(close,60);pday1 := barslast(cross(ma5,ma60));pday2 := barslast(cross(ma10,ma60));pday3 := barslast(high=hhv(high,pday2));pday4 := barslast(cross(ma10,ma5){ or (ref(ma10,1)<ref(ma5,1) and ma5=ma10)});pday5 := barslast(cross(ma5,ma10){ or (ref(ma5,1)=ref(ma10,1) and ma5>ma10)});a1:= pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;a2:= count(cross(ma10,ma5),pday2)=1;a3:=ma5>ma60 and ma10>ma60;(A1 AND A2 and a3) and FILTER(A1 AND A2 and a3 ,5);主升行情顶:=85;V AR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;CC:=SMA(V AR5,20,1);CC1:=SMA(CC,5,1);出击:CROSS(CC,CC1) AND (CC1 < 顶) ;超越庄股K2:=EMA(C,5);K3:=EMA(C,10);K5:=EMA(C,30);K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);CROSS(K8,0);强势拉升Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);跨越:=EMA(Q3, 3);V AR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线:=SMA(V AR12,3,1);CROSS(跨越,机构做空能量线);吸庄血{底部笑脸的信号买入}V AR1:=4*SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1),3.2,1); V AR2:=8;CROSS(V AR1,V AR2);智能操盘K2:=EMA(C,5);K3:=EMA(C,10);K5:=EMA(C,30);K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);买入:CROSS(K8,0);财富拐点ma3:=ema(c,3);ma5:=ema(c,5);var1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);Var2:=REF(Var1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var3:=REF(Var2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var4:=REF(Var3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var5:=REF(Var4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var6:=REF(Var5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var7:=REF(Var6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var8:=REF(Var7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var9:=REF(Var8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VarA:=REF(Var9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VarB:=REF(VarA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VarC:=REF(VarB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VarD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VarE:=REF(VarD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VarF:=REF(VarE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var10:=REF(VarF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var11:=REF(Var10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var12:=REF(Var11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var13:=REF(Var12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var14:=REF(Var13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var15:=REF(Var14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var16:=REF(Var15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var17:=REF(Var16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var18:=REF(Var17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var19:REF(VarD OR VarE OR VarF OR Var10 OR Var11 OR Var12 OR Var13 OR V ar14 OR Var15 OR Var16 OR Var17 OR Var18,1) AND V ar1 AND CROSS(MA3,MA5);金牌逃顶V AR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;V AR2:=SMA(V AR1,9,1)+100;V AR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V AR4:=SMA(V AR3,3,1);V AR5:=SMA(V AR4,3,1)+100;V AR6:=V AR5-V AR2;趋势:=IF(V AR6>45,V AR6-45,0);第一个粉色:ref(REF(趋势,1) >趋势,1) and REF(趋势,1)< 趋势;领头羊{绿线上穿白线}白色:=SMA(HIGH,21,2)*1.05;绿色:=SMA(CLOSE,2,1);领头羊:CROSS(绿色,白色);财神到RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;J1:=REVERSE(J);AA:=REF(MA(C,1),10)>REF(MA(C,60),10);买点:CROSS(J,J1) AND AA;MACD提示DIFF:=(EMA(CLOSE,3) - EMA(CLOSE,13));DEA:=EMA(DIFF,9);绿变红:CROSS(DIFF,DEA)变色MACDDIF:=EMA(CLOSE,8)-EMA(CLOSE,13);DEA:=EMA(DIF,9),;买卖频谱买线:=EMA(C,3);卖线:=EMA(SLOPE(C,21)*20+C,55);N:CROSS(买线,卖线);底部爆发V AR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5); V AR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);V AR03:=CROSS(V AR02,V AR01);V AR04:=REF(V AR02,2)<REF(V AR02,1) AND V AR02<REF(V AR02,1);V AR05:=COUNT(V AR03,7)>0 AND V AR04;V AR06:V AR05 AND COUNT(V AR05,5)=1;顶天立地V AR26:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);V AR27:=REVERSE(V AR26);V AR28:=SMA(VAR26,3,1);快线:=SMA(V AR28,3,1);慢线:=SMA(快线,3,1);金叉买:CROSS(快线,慢线) AND (快线<40);短线套利MA6:=MA(C,6);MA18:=MA(C,18);买进价:=((C-REF(MA6,1))/6+MA6)*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);加码价:=((C-REF(MA18,1))/18+MA18)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);(ref(买进条件,1) and 加码条件) OR (ref(加码条件,1) and 买进条件) ;雷电交加V ARF:=TROUGHBARS(3,15,1)<4;FILTER(V ARF=1,3);买必涨diff:=EMA(CLOSE,12)-EMA(CLOSE,26);dea:=EMA(diff,9);买入:CROSS(diff,dea);金叉:CROSS(DIF,DEA) AND DIF<0.3;要涨停陡峭度:=IF((BARSCOUNT(CLOSE) > 7),(100)*((MA(CLOSE,7))/(LLV(MA(CLOSE,7),7)) - 1),1); N:=IF((陡峭度> 0.35),6,65);V AR1:=((-((100)*(HHV(HIGH,N) - CLOSE))/(HHV(HIGH,N) - LLV(LOW,N))))*((DATE < 20170110)); 要涨停:(30)*(CROSS(V AR1,(-2)));指标公式涨停{参数M1 2 1000 5M2 2 1000 10M3 2 1000 20M4 2 1000 30M5 2 1000 60M6 2 1000 120M7 2 1000 250}MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);MA5:MA(CLOSE,M5);MA6:MA(CLOSE,M6);MA7:MA(CLOSE,M7);C3:=REF(C,1); 涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),2,0);STICKLINE(涨停,OPEN,CLOSE,5,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),2,0);STICKLINE(跌停,OPEN,CLOSE,5,0),COLORGREEN;黑马王N:=20;N1:=7;N2:=69;M3:=EMA(CLOSE,3);M8:EMA(CLOSE,8),CoLor008000;M13:EMA(M8,13),CoLor0000FF;M62:EMA(M8,55),CoLorF0F000;V AR1:=EMA(M13,62);M81:EMA(M62,81),CoLor00FFFF;M144:EMA(V AR1,144),Linethick2,CoLor0000FF;M250:EMA(V AR1,250),POINTDOT,Linethick2,CoLorF00FF0;V AR2:=(CLOSE+HIGH+LOW)/(3);V AR3:=(EMA(V AR2,10));V AR4:=(REF(VAR3,1));STICKLINE((V AR3>V AR4),V AR3,V AR4,4,0),CoLor00FFFF;STICKLINE((V AR3<V AR4),V AR3,V AR4,4,0),CoLorFF0000;V AR5:=((REF(HIGH,1)+REF(LOW,1))/(2));V AR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));DRAWTEXT(CROSS(VAR3,V AR4),(V AR3)*(0.98),'★'),CoLor00FFFF;DRAWTEXT(CROSS(VAR5,V AR6),(HIGH)*(1.04),'↓卖'),CoLor008000;V AR7:=REF(CLOSE,1);V AR8:=((SMA(MAX(CLOSE-V AR7,0),N1,1))/(SMA(ABS(CLOSE-V AR7),N1,1)))*(100);V AR9:=CROSS(N2,V AR8);V ARA:=(FILTER(V AR9,4));DRAWTEXT(V ARA,(HIGH)*(1.04),'↓卖'),CoLorFFFFFF;V ARB:=((2)*(CLOSE)+HIGH+LOW)/(4);V ARC:=LLV(LOW,34);V ARD:=HHV(HIGH,34);V ARE:=(EMA(((V ARB-VAR1)/(V AR5-V AR1))*(100),7));V ARF:=(EMA((0.667)*(REF(V ARE,1))+(0.333)*(VARE),5));DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((V ARE>=V ARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),CoLorFF00FF; DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((V ARE>V ARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),CoLor00FFFF;V AR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3));DRAWTEXT(IF((CLOSE<V AR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),CoLor0000FF;金叉MACDDIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:=2*(DIFF-DEA);STICKLINE(MACD>=0,MACD,0,4,1),COLORF00FF0;STICKLINE(MACD<0,MACD,0,4,1),COLORWHITE;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4,0 ),COLOR00AAFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3.3,0 ),COLOR00BBFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR00CCFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.65,0 ),COLOR00DDFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.1,0 ),COLOR00EEFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.55,0 ),COLOR00FFFF;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4 ,0 ),COLOR0000AA;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3.3 ,0 ),COLOR0011BB;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR0022CC;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.65 ,0 ),COLOR0033DD;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.1 ,0 ),COLOR0044EE;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.55 ,0 ),COLOR0055FF;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORAA00BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORBB11BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORCC22BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.65,0 ),COLORDD33BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.1,0 ),COLOREE44BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFF55BB;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORFFAA00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORFFBB11;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORFFCC22;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.65 ,0 ),COLORFFDD33;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.1 ,0 ),COLORFFEE44;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFFFF55;IF(DIFF<0,DIFF,0),COLORRED,LINETHICK1;IF(DIFF<0,0,DIFF),COLORYELLOW,LINETHICK1;IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK1;IF(DIFF>DEA,DEA,DEA),COLORWHITE,LINETHICK1;↑低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;STICKLINE(↑低位金叉,0,-0.5,2,0),COLORYELLOW;DRAWTEXT(↑低位金叉,-0.4,' ↑低位金叉'),COLORYELLOW;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));↑二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;STICKLINE(↑二次金叉,0,-0.2,5,0),COLORFF00FF;DRAWICON(↑二次金叉,DEA*1.2,11) ;DRAWTEXT(↑二次金叉,-0.2,' ↑二次金叉'),COLORFF00FF;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));↑底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); STICKLINE(↑底背离,0,0.2,3,0),COLOR00FF00;DRAWLINE(A1=0,DEA,↑底背离,DEA,0),COLORRED,LINETHICK2;DRAWTEXT(↑底背离,0.2,' ↑底背离'),COLOR00FF00;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));↑顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF); DRAWLINE(A2=0,DEA,↑顶背离,DEA,0),COLORGREEN,LINETHICK2红进绿出V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);V AR5:=3*V AR3-2*VAR4;AA:=CROSS(VAR5,V AR3) AND V AR3<2.1 AND C>O;V AR6:=(2*CLOSE+HIGH+LOW)/4;V AR7:=LLV(LOW,13);V AR8:=HHV(HIGH,13);V AR9:=EMA((V AR6-V AR7)/(V AR8-V AR7)*100,13);V ARA:=EMA(0.667*REF(V AR9,1)+0.333*V AR9,2);多:V AR9,COLORRED,POINTDOT;空:EMA(0.382*REF(VAR9,2)+0.618*V AR9,12),COLORGREEN;STICKLINE(V AR9>V ARA,V AR9,V ARA,6,0),COLORRED;STICKLINE(V AR9<=V ARA,V AR9,V ARA,6,0),COLORGREEN;DRAWTEXT(AA,10,'底'),COLORYELLOW;战无不胜危机线:85,colorred;中间线:50,colorwhite;安全线:15,colorgreen;v1:=(2*close+high+low)/4;v2:=llv(low,34);va:=hhv(high,34);防线b:=ema((v1-v2)/(va-v2)*100,13);防线bb:=ema((0.667*ref(防线b,1)+0.333*防线b),2);战术线:防线b,coloryellow,pointdot;战略线:ema(0.382*ref(防线b,2)+0.618*防线b,12),coloryellow;stickline(防线b>防线bb,防线b,防线bb,6,0),colorred;stickline(防线b<=防线bb,防线b,防线bb,6,0),;紫黄同现{紫黄同现股票将大涨}JJ :=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);SD := EMA(SK,3);SP := EMA(SK,10);A1:=EMA(C,7)-EMA(C,21);B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);B1,COLORSTICK;X1:=V/SUM(V,13);X2:=DMA(C,X1);X3:=(C-X2)/X2*40;L2:=MA(AMOUNT/(100*V),13);CYS13:= (C-L2)/L2*100;做多:IF(A1>=B1,A1,B1),LINETHICK2,COLORFF00FF;做空:IF(B1-A1,B1,A1),COLORGREEN,LINETHICK2;强庄:STICKLINE(CYS13>5,0,-做空,2,0 ),COLORYELLOW;主力强度:STICKLINE(X3>0 AND 做多>0,做多+0.1,做多,1,0),COLORFF80FF;C>MA(C,30),COLORFF80FF,LINETHICK2;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J1:=DIFF;J2:=DEA;J3:=K;J4:=D;VL:=REF(LOW,1); VH:=REF(H,1);V AR1:=SMA(ABS(H-VH),13,1)/SMA(MAX(H-VH,0),13,1)*100;V AR2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;V AR3:=REF(CLOSE,1);V AR4:=MA(V AR2,13);V AR5:=LLV(L,34);V AR6:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;V AR7:=CROSS(93,V AR6);V AR8:=EMA(IF(L<=VAR5,V AR4,0),3);V AR9:=H>LLV(L,0)*7;V AR10:=(SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1));V AR11:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - (V AR10 * 10.9);上攻:FILTER(CROSS(J1,J2) AND VOL>REF(SUM(VOL,5),1),3),COLOR0066FF,LINETHICK2;WR10:=-100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10)),COLORWHITE,LINETHICK1;WR45:=-100*(HHV(HIGH,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45)),COLORFFB900,LINETHICK1;WR99:=-100*(HHV(HIGH,99)-CLOSE)/(HHV(HIGH,99)-LLV (LOW,99)),COLORRED,LINETHICK1;顶:= 0, LINETHICK2 ,COLOR446600;底1:=-95, LINETHICK2 ,COLOR446600;红柱初现工作线:MA(CLOSE,14),COLORRED,LINETHICK2;操盘线:MA(CLOSE,26),Color00A800,LINETHICK2;X1:=MA(C,1);X2:=SMA(SMA(SMA(x1,2,1),2,1),2,1);X3:=MA(x2,3);X4:=(L+H+C*4)/6;X5:=EMA(x4,12);x6:=EMA(x4,19);x7:=(x5-REF(x5,1))/REF(x5,1)*100;x9:=(x6-REF(x6,1))/REF(x6,1)*100;G:=BARSLAST(CROSS(x7,0));X8:=REF(x4,G);A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30)) *100,5);A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;A5:=EMA(CLOSE,12)-EMA(CLOSE,26);A6:=EMA(A5,9);A7:=(A5-A6);STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),HIGH,LOW,0.5,0),color0000CD;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,8,0),color070084;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,7,0),color0000A3;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,6,0),color0000B7;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,5,0),color0000CD;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,4,0),color0000E9;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,2,0),color0754E9;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,0.6,0),Color68B8FF;Z1:MA(CLOSE,5),COLORYELLOW,;Z2:MA(CLOSE,55){,ColorFF8080},Color00FF00,LINETHICK2;玄黄吉星XF: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);V AR2:=MA(CLOSE,80)-MA(CLOSE,13)/3;神奇趋势线:=MA((CLOSE-V AR2)/V AR2,1);狙击:DRAWTEXT(CROSS(神奇趋势线,0) AND LOW/REF(HIGH,1)<1.012,LOW,'狙击'),COLORYELLOW;盈利临界: DRAWTEXT(COUNT(神奇趋势线>REF(神奇趋势线,1),3)=3 AND COUNT(神奇趋势线<0,10)=10 AND REF(神奇趋势线,3)=LLV(神奇趋势线,10),LOW,'盈利临界'),COLORYELLOW;参与: DRAWTEXT(REF(神奇趋势线,2)=LLV(神奇趋势线,20) AND REF(神奇趋势线,2)<0.071 AND REF(神奇趋势线,2)<REF(神奇趋势线,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1),LOW,'参与'),COLORYELLOW;DRAWICON(CROSS(EMA(CLOSE,8),EMA(EMA(CLOSE,8),20)) AND EMA(CLOSE,8)<MA(CLOSE,120),LOW,1),COLORRED;DRAWTEXT((WINNER(CLOSE)-WINNER(OPEN))*100>=17 AND VOL/CAPITAL*100<=2,LOW,'无量长阳,谨慎'),COLORWHITE;V AR1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR21:=SMA(VAR1,20,1);V AR3:=SMA(V AR21,15,1);V AR4:=100-3*VAR21+2*V AR3;V AR5:=(3*VAR21+2*V AR3)/4;V AR6:=ABS(ABS(V AR5)-ABS(V AR4));V AR7:=ABS(ABS(V AR5)-ABS(V AR6));阴跌区域:=V AR4-V AR7;见顶区域:=阴跌区域<0;均衡:=V AR5-V AR7;DRAWTEXT(CROSS(阴跌区域,均衡),LOW,'阴跌延续'),COLORGREEN;DRAWTEXT(CROSS(阴跌区域,-0.1),LOW,'见顶回落'),COLORWHITE;STICKLINE(C>=O,C,H,0.1,0),COLORRED;TTZF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 {AND TTZF>=ZF};STICKLINE(TTZF>=2.50 ,O ,C ,8,0),COLOR00FFFF;中轨:HHV(MA(H,11),15),COLORRED;趋势:LLV(MA(H,11),1),COLORGREEN;三合成RSI6:SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,colorwhite;DIFF:=EMA(C,5)-EMA(C,20);DEA:=EMA(DIFF,10);MACD:800*(DIFF-DEA)/EMA(C,30),colorSTICK,linethick3;RSV:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;K20:SMA(RSV,5,1),COLORyellow;D20:SMA(K20,5,1),COLORFF00ff;20;50;80;DRAWICON(count(c>ref(c,1),5)=5,h*1.01,3);DRAWICON(count(c<ref(c,1),5)=5,l*0.995,1);机构能量做多能量线: SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;做空能量线: SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3; 20,pointdot,colorf00ff0;50,pointdot,colorgreen;80,pointdot,colorwhite;短线之星Var1:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));Var2:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));Var3:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),28);买入信号: IF(Var2<MA(Var3,6),MA(Var3,6),Var2),colorred ;卖出信号: IF(Var1>MA(Var3,6),MA(Var3,6),Var1),colorgreen ;强弱线: MA(Var3,6),coloryellow ,linethick2 ;极品逃顶V AR2:=LLV(LOW,10);V AR3:=HHV(HIGH,25);阶段卖出: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓卖出: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-V AR2)/(V AR3-V AR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00; 底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2); DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);强弱分界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:动力线,COLORA8A8A8;超级逃顶Var2:=llv(low,10);var3:=hhv(high,25);3.5,color0088ff;清仓卖出: 3.5;动力线:= ema((close-var2)/(var3-var2)*4,4);stickline(动力线>ref(动力线,1) ,动力线,ref(动力线,1),8 ,1),colorred;stickline(动力线<=ref(动力线,1) ,动力线,ref(动力线,1),8 ,1),colorgreen;底部介入:0.2,colorgreen;重点关注:0.5, coloryellow;drawicon( filter(cross(动力线,重点关注),20),动力线+0.02 ,1);drawicon( filter(cross(清仓卖出,动力线),20),动力线+0.02,2);drawicon( filter(cross(动力线,底部介入),20),动力线+0.02 ,1);drawicon( filter(cross(JDMC,动力线),20),动力线+0.02,2);强弱分界线:1.75,pointdot,linethick2,colordddddd;抄底逃顶趋势: 5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW ,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,2 7)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLOR7F52AF;趋势1: EMA(MA(趋势,5),3),LINETHICK0,COLORA6B8C1;STICKLINE(趋势>=趋势1,趋势,趋势1,5,0),COLOR7F52AF;STICKLINE(趋势<趋势1,趋势,趋势1,5,0),COLORA6B8C1;STICKLINE(趋势>108 AND 趋势>=趋势1,趋势,108,5,0),COLORFF0000;STICKLINE(趋势1>108 AND 趋势<趋势1,趋势1,108,5,0),COLORFFFFFF;STICKLINE(趋势<0 AND 趋势<趋势1,趋势,0,5,0),COLORF00FF0;STICKLINE(趋势1<0 AND 趋势>趋势1,趋势1,0,5,0),COLORF0F000;V1:= MA(CLOSE,5)=HHV(MA(CLOSE,5),20);V2:= MA(CLOSE,5)>MA(CLOSE,20);V3:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险: IF(V1 AND V2 AND V3,30,0),LINETHICK0,STICK,COLOR00FF00;V11:= MA(CLOSE,5)=HHV(MA(CLOSE,5),120);V21:= MA(CLOSE,5)>MA(CLOSE,120);V31:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险1: IF(V11 AND V21 AND V31,60,0),LINETHICK0,STICK,COLORF0F000;底部: 5,LINETHICK0,COLOR00FFFF;抄底: IF(CROSS(趋势,底部),60,0),LINETHICK2,STICK,COLOR00FFFF;DRAWTEXT(抄底,50,'抄底'),COLOR0000FF;天线: 108,LINETHICK0,COLORFF9D00;逃顶: IF(CROSS(天线,趋势),1,0),LINETHICK0,STICK,COLORFF9D00;STICKLINE(CROSS(天线,趋势),90,108,3,0),COLORFF9D00;DRAWTEXT(CROSS(天线,趋势),85,'逃顶'),COLORFF9D00;金牌黑马A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))黑马线:EMA(A1,5),LINETHICK2,COLOR6600FF;A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;A3:=EMA(C,5);A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A2<0,7),黑马线,'跑'),COLOR00FF00;DRAWTEXT(CROSS(A1,黑马线)AND 黑马线<A5,黑马线,'黑马');DRAWTEXT(CROSS(黑马线,A5)AND 趋势线<80,黑马线,'追涨');DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大黑马');底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED;DRAWICON(底部AND A3>REF(A3,1),25,4);机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0; 大势已去:IF(CROSS(黑马线,A1)AND 黑马线>70 AND 趋势线>80,90,100),COLORFF0000;中短长线90,COLOR9966FF,LINETHICK2;80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;长期线:MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100,color9900FF;短期线:-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100,color888888;中期线:EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100,coloryellow,linethick2;见顶:(ref(中期线,1)>85 and ref(短期线,1)>85 and ref(长期线,1)>65) and cross(长期线,短期线) ;顶部区域:(中期线<ref(中期线,1) and ref(中期线,1)>80) and (ref(短期线,1)>95 or ref(短期线,2)>95 ) and 长期线>60 and 短期线<83.5and 短期线<中期线and 短期线<长期线+4;顶部:=filter(顶部区域,4);底部区域:(长期线<12 and 中期线<8 and (短期线<7.2 or ref(短期线,1)<5) and (中期线>ref(中期线,1) or 短期线>ref(短期线,1)))or (长期线<8 and 中期线<7 and 短期线<15 and 短期线>ref(短期线,1)) or (长期线<10 and 中期线<7 and 短期线<1) ;stickline( 顶部,99,103,20,1 ),colorred,linethick2;stickline( 底部区域,-4,0,22,0 ),colorgreen;低位金叉:长期线<15 and ref(长期线,1)<15 and 中期线<18 and 短期线>ref(短期线,1) and cross(短期线,长期线) and 短期线>中期线and (ref(短期线,1)<5 or ref(短期线,2)<5 ) and (中期线>=长期线or ref( 短期线,1)<1 );stickline( 低位金叉,0,5,11,0 ),colorred;仓位增减(主图)。
大智慧公式
买进低值:=re f(L,1)-MA(r e f(L,2)-r e f(L,1),3);今天低点:=re f(L,1);趋势回档买进值:=((r e f(H,1)+re f(L,1)+r e f(C,1))/3)*2-r e f(H,1);买进值:=(下跌值+买进低值+今天低点+趋势回档买进值)/4;上涨值:=ma((re f(h,1)-re f(l,2)),3)+r e f(l,1);买进高点:=ma(re f(h,1)-re f(h,2),3)+re f(h,1);今天高点:=re f(H,1);趋势回档卖出值:=((r e f(h,1)+r e f(l,1)+re f(c,1))/3)*2-re f(l,1);{LS S轴点突破买入值}卖出值:=(上涨值+买进高点+今天高点+趋势回档卖出值)/4;D R A W TEX TA B S(75,8,' 《LS S系统》'),C o l o rF F F F00;D R A W TEX TA B S(150,8,' 支撑压力:'),C o l o r208F F F;D R A W TEX TA B S(90,27,'买入封套'),C o l o rF F F F F F;D R A W TEX TA B S(80,44,' '+下跌值),C o l o ry e l l o w;D R A W TEX TA B S(80,62,' '+买进低值),C o l o ry e l l o w;D R A W TEX TA B S(80,80,' '+今天低点),C o l o ry e l l o w;D R A W TEX TA B S(80,98,' '+趋势回档买进值),C o l o ry e l l o w;D R A W TEX TA B S(80,115,' '+买进值),C o l o rre d;D R A W TEX TA B S(160,27,'卖出封套'),C o l o r00F F00;D R A W TEX TA B S(160,44,' '+上涨值),C o l o rF F00F F;D R A W TEX TA B S(160,62,' '+买进高点),C o l o rF F00F F;D R A W TEX TA B S(160,80,' '+今天高点),C o l o rF F00F F;D R A W TEX TA B S(160,98,' '+趋势回档卖出值),C o l o rF F00F F;D R A W TEX TA B S(160,115,' '+卖出值),C o l o rg r e e n;D R A W TEX TA B S(75,5,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,17,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,29,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,41,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,53,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,65,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,77,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,89,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,101,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,113,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,5,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,17,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,29,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,41,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,53,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,65,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,77,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,89,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,101,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,113,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,25,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,29,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,41,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,53,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,65,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,77,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,89,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,101,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,113,'│'),C o l o r00F F F F;D R A W TEX TA B S(80,0,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,20,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,37,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,54,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,71,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,88,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,105,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,120,'────────────'),C o l o r00F F F F;。
大智慧L2-公式编写实例及系统函数说明
一、相关性函数1. BETA 贝塔系数BETA(N),贝塔系数表示当前股票的收益与大盘收益相比的放大系数,该系数表明大盘每变动1%,则该股票将变动多少。
该函数有一个参数N,表示在多少个周期中计算。
例如:BETA(10)表示10周期贝塔系数2. BETA2 贝塔系数2 BETA2(X,Y,N),贝塔系数2表示第一个参数X相对于第二个参数Y的收益的放大系数,该系数表明参数Y每变动1%,则参数X将变动多少。
该函数的第三个参数N表示在多少个周期中计算。
例如:BETA2(CLOSE,INDEXC,10)就完全等同于BETA(10)3. BETADOWN 下跌贝塔系数BETADOWN(N),为当前股票收益与大盘收益相比的下跌贝塔系数,该系数表明大盘每下跌1%,则该股票将下跌N%。
它的计算方法是只计算股票下跌时的贝塔系数。
例如:BETADOWN(10)表示10周期下跌贝塔系数4. BETAUP 上涨贝塔系数BETAUP(N),为当前股票收益与大盘收益相比的上涨贝塔系数,该系数表明大盘每上涨1%,则该股票将上涨N%。
它的计算方法是只计算股票上涨时的贝塔系数。
例如:BETAUP(10)表示10周期上涨贝塔系数5. COVAR 两样本的协方差COVAR(X,Y,N),计算X与Y的N周期协方差.协方差的计算方法是:例如:COVAR(CLOSE,INDEXC,10)表示收盘价与大盘指数之间的10周期协方差。
6. RELATE 两样本的相关系数RELATE(X,Y,N),为X与Y的N周期相关系数,其有效值范围在±1之间.例如:RELATE(CLOSE,INDEXC,10)表示收盘价与大盘指数之间的10周期相关系数二、除权除息1. DIVIDENDBARS 上次派息到现在的周期数DIVIDENDBARS(N),取得之前第N次派息到当前的周期数。
例如:DIVIDENDBARS(0)=0表示当天发生派息。
2. DIVIDEND每股派息数量DIVIDEND(N),取得之前第N次每股派息数量,例如:DIVIDEND(0)表示最近一次派息的数量。
大智慧Level2公式函数大全
大智慧公式函数大全大智慧新一代的公式编写系统使用了多类的函数,以达到快速提取数据和提高运算能力,同时简化计算过程的要求。
因此在不同类型的函数我们赋予了相当精确的含义,有的函数定义为行情数据提取函数,那么它的功能就是从静态历史上的行情数据或者动态的及时盘中数据提取我们所需要的数据以方便以后的分析和计算;有的函数定义为运算函数,是考虑到一些复杂的数学计算过程过于冗长,从而设计的简化运算的函数等等。
在以下的几节当中,我们将会分别介绍一共17类函数。
(1). 函数的基本模型:K(X1,X2,X3…)1. K表示函数的名称;2. X1,X2,X3…表示该函数的所有参数。
不同参数用逗号分隔并用括号将所有函数括起来列于函数名称之后;参数的取值可以是变量也可以是一个常量,具体取值和含义因函数不同而不同;(2). 函数的引用周期:应不同的使用者在分析周期习惯上的差异,大智慧特别设定了周期选择。
这主要是针对在引用类函数在引用数据时锁定自己所需要的周期,例如在日线上,或者在周线上等等的要求。
一. 行情函数行情函数是最基本的函数。
首先,它为我们提供计算所需的数据,这些函数从存储的数据中取得我们所需要的各类数据,而其它多数函数所需的计算数据一般也是由通过引用行情函数产生的。
23456789二. 时间函数时间函数,顾名思义,在大智慧的函数中专门用来对时间数据进行描述和引用,以满足我们在分析的过程当中对时间的限定和要求。
10三. 引用函数引用类函数是在公式编写过程当中经常会使用到的一类函数。
该类函数主要有两大功能,其一是对相邻周期上的行情数据进行引用,以便计算和操作,例如使用昨天的收盘价;其二是大智慧为方便计算,将一些经常会使用到的比较复杂的数学计算过程简化成一个简单的函数,在实际的运算过程当中,可以直接引用这些函数避免复杂的数学计算。
例如将计算移动平均值直接用MA代替。
四. 逻辑函数逻辑函数的参数或返回值为逻辑值,用0表示条件不成立,用五. 算术函数阐释:SIN(X)返回X的正弦值23 SQRT 开平方阐释:SQRT(X)为X的平方根,例如:SQRT(CLOSE)收盘价的平方根24 TAN 正切值阐释:TAN(X)返回X的正切值六. 统计函数统计函数主要用于对股票数据进行计统计计算,得到数据分布、趋势等方面的信息,包括方差类和线形回归类函数。
30分钟选股及警告公式大智慧L2
30分钟选股及警告公式大智慧L2选股及预警公式:TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);X:=(CROSS(CCI修正1,CCI修正2) OR (CCI修正1 >=CCI修正2))AND CCI修正1>=-101 AND CCI修正1>=REF(CCI修正1,1) AND REF(CCI修正1,1)<-101 ;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;K1:= EMA(EMA(EMA(K,2),2),2);D1:= EMA(EMA(EMA(D,2),2),2);J1:= EMA(EMA(EMA(J,2),2),2);Y:= J1 > REF(J1,1) ;X AND Y;公式说明:对CCI的杂波进行了多重过滤,使CCI信号特征更加稳定;同时加入了更多条件,加入了短线KDJ条件,对KDJ的杂波进行了多重过滤,使KDJ信号特征更加稳定;努力使得该指标能达到接近超级短线战神指标的意义。
使得信号发出几率更高,信号发出质量更稳定,可靠度更高。
使用周期:30分钟,可设置成预警公式;既是选股又是预警的公式30分钟周期分时预警,通达信没有分时预警功能,即使通过软件解封,但通达信不提供分时数据源,所以用通达信的是没办法进行分时预警的,也没办法进行盘中选股的。
用大智慧L2完全可以分时预警。
特此提醒!操作原理:原理非常简单,就是大家常用的经典CCI指标,平时我们用日周期使用得比较多,在这里用30分钟周期来使用.KDJ指标也要求J指标同时向上运行。
大智慧L2公式变形每笔手数SMACD(源码及其用法) - 股票公式,股票软件,股票书籍,...
大智慧L2公式变形每笔手数SMACD(源码及其用法)- 股票公式,股票软件,股票书籍,...指标源码如下:{每笔MA}mbss:=VOL/TICKCOUNT;SDIFF : EMA(mbss,12) - EMA(mbss,26);SDEA : EMA(SDIFF,9);SMACD : 2*(SDIFF-SDEA), COLORSTICK;用法如下:大智慧有个函数叫MBSS,很简单的求出每笔手数,即成交量除以总笔数——VOL/ZBS 。
研究成交量最大的问题是不清楚谁是买卖双方,查尔斯.道也指出量在技术分析中是第二位的,因此这里谈每笔手数的运用也是第二位的,是用来验证和辅助其他技术分析手段的。
由于成交量无法告诉我们谁买谁卖,因此我们无法很清楚地知道买卖双方谁才是大资金,而其他成交量指标比如OBV之类依靠价格的升跌或者加减处理来衡量买卖双方力量则理由牵强。
相反使用使用每笔手数衡量买卖双方的力量比较可靠,因为无论买卖,只要每笔手数放大,则肯定是有大资金介入(即使是对倒,仍然是有大资金在运作)。
虽然某些阶段大资金也可以小单进出,但是他一旦要大动作,肯定是大手笔。
下面我们详细讲将应用。
每笔手数其实每天都会上下变化,所以直接看它的指示线容易眼花,所以我将每笔手数的数据MACD化(我称为SMACD),这样我们就能清楚地看到每笔手数的变化趋势。
SMACD结合成交量运用有以下情况:1、成交量增加同时SMACD则处于多头(即SDIFF 和SDEA大于0)红柱,则证明大资金踊跃买入,当然这可以通过对倒造出来,所以我们要结合价格所处的位置来判断,如果是低位向上突破或者股价向下跳水则吉,如果在高位向上升,有仓位的则要随时注意止赢,无仓位的则根据自己价格技术分析系统判断是否参与,这个第一决定权还是你的价格技术分析系统,而不在成交量;2、成交量萎缩,或者是一段芝麻量,而SMACD虽然处于空头(SDIFF和SDEA小于0),但是SDIFF、SDEA 在上升,绿柱减少甚至是红柱,这应该是大资金在暗中吸纳,但这不是买进信号,第一决定权仍然在价格技术分析系统那里,而且大资金被套也是常有的事,所以小心小心。
大智慧绝对厉害的主图指标公式
大智慧绝对厉害的主图指标公式R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);X1:=(C+L+H)/3;DD:=FINANCE2(35);SS:=FINANCE2(37);GG:=FINANCE2(3);TH:=DYNAINFO(39);A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);a1:=IF((CLOSE < 800),((AMOUNT / VOL) / 100),((((CLOSE * 2) + HIGH) + LOW) / 4));a2:=((HHV(HIGH,15)) + (LLV(LOW,30))) / 2;a3:=EMA((MA(a1,5)),10);a4:=EMA((MA(a1,15)),10);a5:=EMA((MA(a1,13)),21);a6:=((a3 + a4) + a5) / 3;决策线:EMA((MA(CLOSE,5)),3),linethick2,colorFF0000;PARTLINE(决策线,决策线> (REF(决策线,3)),RGB(255,0,0)),linethick2,Color3300FF;DRAWTEXT(((CLOSE > 0) AND (DISPSTATUS = 2)),(决策线* 0.95),'决策价:'+决策线),MOVE10,ALIGN2,linethick2,colorRed;{支撑}VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2222:=CROSS(VAR1111,0.9);VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4444:=CROSS(VAR3333,0.9);压力: REF(HIGH,BARSLAST(Var2222)), POINTDOT,ColorEA91B5;STICKLINE(CLOSE,REF(HIGH,BARSLAST(Var2222)),REF(HIGH, BARSLAST(Var2222)),5,0),LINETHICK3,ColorEA91B5;支撑: REF(LOW,BARSLAST(Var4444)), POINTDOT,Color00b4ff,linethick3;STICKLINE(CLOSE,REF(LOW,BARSLAST(Var4444)),REF(LOW,B ARSLAST(Var4444)),5,0),LINETHICK3,Color00b4ff;弱势双线持币:HHV(MA(HIGH,(3)),2),LINETHICK2,COLOR00FF00;强势单线持股:LLV(MA(HIGH,(3)),1),LINETHICK2,ColorFF00FF;{老鼠仓}AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:BB1 AND CC1 AND DD1 AND EE1,linethick0;DRAWTEXT(老鼠仓, (LOW* 0.99),'老鼠仓'),LINETHICK3,Color40CCFF;A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10))) + IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T := BARSLAST(DISPSTATUS=1)+1;T := BARSLAST(DISPSTATUS=1)+1;HHg := HHV(H, T);ddg := LLV(L, T);{Hk := LL-HH; G12 := LL-HK*1.55; }IF BARSTATUS=2 and c<200 and ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THENDRAWTEXTABS(32,100,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
直接引入大智慧L2公式文件{资金博弈}jgV:=(BIGORDER(1,3)-BIGORDER(2,3))*vol/CAPITAL;dhV:=(BIGORDER(1,2)-BIGORDER(2,2)-BIGORDER(1,3)+BIGORDER(2,3))*vol/CAPITAL; zhV:=(BIGORDER(1,1)-BIGORDER(2,1)-BIGORDER(1,2)+BIGORDER(2,2))*vol/CAPITAL; shV:=(BIGORDER(2,1)-BIGORDER(1,1))*vol/CAPITAL;A1:=MIN((COUNT(ORDER(2),0)),60);超级资金:EMA(jgV,A1)*A1,COLORMAGENTA;大户资金:EMA(dhV,A1)*A1,color3399FF ;中户资金:EMA(zhV,A1)*A1,colorcyan;散户资金:EMA(shV,A1)*A1,colorgreen;0,color333333;{超级资金}A1:=MIN((COUNT(ORDER(2),0)),60);超户:(BIGORDER(1,3)-BIGORDER(2,3))*vol/CAPITAL,COLOR3D ;累计:EMA(超户,A1)*A1,COLORMAGENTA;均值:EMA(累计,10),colorwhite;{大户资金}A1:=MIN((COUNT(ORDER(2),0)),60);大户:(BIGORDER(1,2)-BIGORDER(2,2)-BIGORDER(1,3)+BIGORDER(2,3))*vol/CAPITAL,COLOR3D ; 累计:EMA(大户,A1)*A1,color3399FF;均值:EMA(累计,10),colorwhite;{中户资金}A1:=MIN((COUNT(ORDER(2),0)),60);中户:(BIGORDER(1,1)-BIGORDER(2,1)-BIGORDER(1,2)+BIGORDER(2,2))*vol/CAPITAL,COLOR3D ; 累计:EMA(中户,A1)*A1,colorcyan;均值:EMA(累计,10),colorwhite;{散户资金}A1:=MIN((COUNT(ORDER(2),0)),60);散户:(BIGORDER(2,1)-BIGORDER(1,1))*vol/capital,COLOR3D ;累计:EMA(散户,A1)*A1,colorgreen;均值:EMA(累计,10),colorwhite;{大单比率}input:P1(5,0,100),P2(30,0,100);A1:=MIN((COUNT(ORDER(2),0)),60);大单比率:(BIGORDER(1,2) - BIGORDER(2,2))*vol/CAPITAL,color3d; 均值1:EMA(大单比率,P1),coloryellow;均值2:EMA(大单比率,P2),colormagenta;{筹码聚散}聚散程度:10*(ORDER(2)-ORDER(1))/CAPITAL, COLOR3D;聚散方向:ema( 聚散程度,10),linethick2 ;{资金流变}input:n1(5,0,100);a:=((BIGORDER(1,2) - BIGORDER(2,2)) *AMOUNT/100000000) ; STICKLINE(a>0,0,a,6,0 ),COLORred;STICKLINE(a<0,0,a,6,0 ),COLORgreen;当日资金净流:a,precis4,linethick0;资金累净流:SUM(a,n1),precis4,coloryellow;{成本均线}input:p1(5,0,100), p2(13,0,100),p3(34,0,100); cb1:ema(AMOUNT,P1)/EMA(VOL,P1)/100; cb2:ema(amount,P2)/ema(vol,P2)/100;cb3:ema(amount,P3)/ema(vol,P3)/100;∞:DMA(C,V/CAPITAL);{按部就班}现价:C;顶部: cost(95) ,colorffff33;卖出: cost(75) ,colorgreen;买入: cost(30) ,colorred;底部: cost(5) ,coloryellow;{龙腾四海}input:n(8,0,100);坐标线:0;20;50;80;100;100-100*(HHV(HIGH,5*N)-CLOSE)/(HHV(HIGH,5*N)-LLV(LOW,5*N)),colorwhite;海面:20,COLORGREEN;海天分界线:50,COLORYELLOW;天际:80,COLORRED;{趋势顶底}80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;90,COLOR9966FF,LINETHICK2;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:=((REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线));顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5AND 短期线<中期线AND 短期线<长期线+4,COLORGREEN;顶部:=FILTER(顶部区域,4);STICKLINE( {见顶OR} 顶部,99,103,20,1 ),COLORRED,LINETHICK2;底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ,COLORGREEN;STICKLINE( 底部区域,-4,0,22,0 ),COLORGREEN;低位金叉:50*(长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线OR REF( 短期线,1)<1 )),COLORRED; STICKLINE( 低位金叉,0,5,11,0 ),COLORRED;{冰火两重天}input:p1(16,0,100);能量:=SQRT(VOL)*(((C-(H+L)/2))/((H+L)/2));平滑能量:=EMA(能量,P1);能量惯性:EMA(平滑能量,P1) ;STICKLINE(能量惯性>=0,(能量惯性-能量惯性*0.05),(能量惯性-能量惯性*0.15),3,0), COLOR0000CC; STICKLINE(能量惯性>=0,(能量惯性-能量惯性*0.2),(能量惯性-能量惯性*0.35),3,0), COLOR0066FF; STICKLINE(能量惯性>=0,(能量惯性-能量惯性*0.4),(能量惯性-能量惯性*0.55),3,0),COLOR0099FF; STICKLINE(能量惯性>=0,(能量惯性-能量惯性*0.6),(能量惯性-能量惯性*0.75),3,0), COLOR00CCFF; STICKLINE(能量惯性>=0,(能量惯性-能量惯性*0.8),(能量惯性-能量惯性*0.95),3,0), COLOR00FFFF; STICKLINE(能量惯性<0,(能量惯性-能量惯性*0.05),(能量惯性-能量惯性*0.15),3,0), COLORFF3300; STICKLINE(能量惯性<0,(能量惯性-能量惯性*0.2),(能量惯性-能量惯性*0.35),3,0), COLORFF6600; STICKLINE(能量惯性<0,(能量惯性-能量惯性*0.4),(能量惯性-能量惯性*0.55),3,0), COLORFF9900; STICKLINE(能量惯性<0,(能量惯性-能量惯性*0.6),(能量惯性-能量惯性*0.75),3,0), COLORFFCC00; STICKLINE(能量惯性<0,(能量惯性-能量惯性*0.8),(能量惯性-能量惯性*0.95),3,0), COLORFFFF00;{波段无敌}P1:=0;P2:= IF (CLOSE>MA(CLOSE,5),P1+10,P1-10);P3:= IF (CLOSE>MA(CLOSE,10),P2+10,P2-10);P4:= IF (CLOSE>MA(CLOSE,10),P3+10,P3-10);P5:= IF (MA(CLOSE,5)>MA(CLOSE,10),P4+10,P4-10);P6:= IF (MA(CLOSE,10)>MA(CLOSE,20),P5+10,P5-10);BD:P6;STICKLINE(BD>=-50,-50,BD,3,0),COLORGREEN;STICKLINE(BD>=-30,-30,BD,3,0),COLORFFFF00;STICKLINE(BD>=0,0,BD,3,0),COLORYELLOW;STICKLINE(BD<=50 AND BD>=30,30,BD,3,0),COLORRED;{买卖频谱}买线:EMA(C,3);卖线:EMA(SLOPE(C,21)*20+C,55);买卖差:=买线-卖线;STICKLINE(买卖差>=0,(买线-买卖差*0.05),(买线-买卖差*0.15),5,0) ,COLOR00FFFF; STICKLINE(买卖差>=0,(买线-买卖差*0.2),(买线-买卖差*0.35),5,0) ,COLOR00CCFF; STICKLINE(买卖差>=0,(买线-买卖差*0.4),(买线-买卖差*0.55),5,0) ,COLOR0099FF; STICKLINE(买卖差>=0,(买线-买卖差*0.6),(买线-买卖差*0.75),5,0) ,COLOR0066FF; STICKLINE(买卖差>=0,(买线-买卖差*0.8),(买线-买卖差*0.95),5,0) ,COLOR0000CC; STICKLINE(买卖差<0,(卖线+买卖差*0.05),(卖线+买卖差*0.15),5,0) ,COLOR006600; STICKLINE(买卖差<0,(卖线+买卖差*0.2),(卖线+买卖差*0.35),5,0) ,COLOR009900; STICKLINE(买卖差<0,(卖线+买卖差*0.4),(卖线+买卖差*0.55),5,0) ,COLOR00CC00; STICKLINE(买卖差<0,(卖线+买卖差*0.6),(卖线+买卖差*0.75),5,0) ,COLOR00FF00; STICKLINE(买卖差<0,(卖线+买卖差*0.8),(卖线+买卖差*0.95),5,0) ,COLOR66FF00;{主力进出}MAV:=(C*2+H+L)/4;SK:= EMA(MAV,13) - EMA(MAV,34);SD := EMA(SK,5);中轴:0;空方主力: (-2*(SK-SD))*3.8,COLORGREEN;多方主力: (2*(SK-SD))*3.8,COLORRED;{多空博弈}VAR1:=(HHV(HIGH,21)-C)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;VAR2:=(C-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;VAR3:=SMA(VAR2,13,8);高位:90;低位:0;多方: SMA(VAR3,13,8),COLORRED;空方: SMA(VAR1,21,8),COLORGREEN;中轴:45;{筹码分析}HSL:=EMA(VOL/CAPITAL,3);ZDL:=HHV(HSL,240);ZXL:=LLV(HSL,240);XS:=MA(C,33);锁定筹码:EMA((HSL-ZXL)/ZXL*XS,13);浮动筹码:EMA((ZDL-HSL)/HSL*XS,13);力量对比:锁定筹码-浮动筹码,COLORSTICK;。