【量价突破】指标(广角量价突破 主买成交量、KDJ自编、MACD自编、分时主图、选股预警公式) {公式名称: 主买成交量
参数数量: 1
参数1: 前高ZIG, 最小: 1, 最大: 99, 缺省: 2
画线方法: 副图
}
NOTEXTGGG:VOL*1.6,COLORBLACK;
DRAWGBK(CLOSE>1,RGB(0,0,0),RGB(1,1,1),1,0,0);
VAR1:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
VAR2:=MOD(FROMOPEN,VAR1);
VAR3:=IF(VAR2<0.5,VAR1,VAR2);
VAR4:=IF(CURRBARSCOUNT=1 AND DYNAINFO(8)>1,VOL*VAR1/VAR3,DRAWNULL);
虚拟VS昨量:VAR4/REF(VOL,1),NODRAW,COLORYELLOW;
STICKLINE(CURRBARSCOUNT=1 AND DYNAINFO(8)>1,VAR4,0,(-1),(-1)),COLORYELLOW;
量:VOL,VOLSTICK;
{http://www.fxjgsw.com} VAR5:=ACTINVOL-ACTOUTVOL;
STICKLINE(1,IF(VAR5>0,VAR5,DRAWNULL),0,2,0),COLORRED;
STICKLINE(VOL>=REF(VOL,1)*1.8 AND CLOSE>REF(CLOSE,1) AND CLOSE>OPEN,VOL*0.98,0,0.1,0),COLORYELLOW;
STICKLINE(VOL<=REF(VOL,1)/2,VOL*0.98,0,0.1,0),COLORBLUE;
VAR6:=MA(VOL,5);
VAR7:=MA(VOL,20);
VAR8:=ZIG(HIGH,4);
VAR9:=REF(VAR8,1)<REF(VAR8,2) AND VAR8>REF(VAR8,1);
VAR10:=IF(VAR8>REF(VAR8,1) AND ISLASTBAR,CONST(SUMBARS(VAR9,2)),CONST(SUMBARS(VAR9,1)));
VAR11:=CONST(LLVBARS(VOL,VAR10));
VAR12:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR13:=SMA(VAR12,3,1);
VAR14:=SMA(VAR13,3,1);
VAR15:=3*VAR13-2*VAR14;
VAR16:=CROSS(VAR15,VAR14) AND EXIST(VAR15<55,3);
VAR17:=VAR16 AND CLOSE>REF(CLOSE,1) AND CLOSE>OPEN;
DRAWICON(VAR17 AND CURRBARSCOUNT>1 AND CURRBARSCOUNT<=VAR11+1,VOL*1.35,11);
DRAWICON(VAR17 AND ISLASTBAR,VAR4*1.35,11);
VAR18:=ZIG(1,前高ZIG);
VAR19:=VAR18<REF(VAR18,1) AND REF(VAR18,1)>REF(VAR18,2);
VAR20:=IF(CONST(SUMBARS(VAR19,1))<=1,CONST(SUMBARS(VAR19,2)),CONST(SUMBARS(VAR19,1)));
VAR21:=CONST(REF(VOL,VAR20));
NOTEXT横线:IF(CURRBARSCOUNT<=VAR20+1,VAR21,DRAWNULL),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=VAR20+1,NOTEXT横线*0.9,112),COLORGREEN,LINETHICK9;
{公式名称: 广角量价突破
参数数量: 4
参数1: 高点算1低点算2, 最小: 1, 最大: 2, 缺省: 2
参数2: 显必杀线1, 最小: 0, 最大: 1, 缺省: 0
参数3: 前高ZIG, 最小: 1, 最大: 99, 缺省: 2
参数4: 显布林1, 最小: 0, 最大: 1, 缺省: 0
画线方法: 主图叠加
用法注释:
费布拉楔时间窗口调整方法:
自己可以选择从高点算起,还是从低点算起,也可改成参数形式:改参数为1,则从高点算起;改参数为2,则从低点算起{http://www.fxjgsw.com}
公式源码:}
VAR1:=0.85;
VAR2:=INBLOCK(119);
VAR3:=IF(VAR2,VAR1-0.075,0.85);
上影线%:(HIGH-MAX(OPEN,CLOSE))/MAX(OPEN,CLOSE)*100,NODRAW,COLORYELLOW;
NOTEXTGGG1:HIGH*1.098,COLORBLACK;
NOTEXTGGG2:MAX(CONST(ZTPRICE(CLOSE,0.1)),CONST(ZTPRICE(REF(CLOSE,1),0.1)))*1.08,COLORBLACK;
NOTEXTLLL:MIN(LOW*0.92,CONST(DTPRICE(REF(CLOSE,1),0.1))*0.98),COLORBLACK;
DRAWGBK(CLOSE>1,RGB(0,0,0),RGB(1,1,1),1,0,0);
VAR4:=IF(CODELIKE(120) OR CODELIKE(121) OR CODELIKE(21) OR NAMELIKE(22),DRAWNULL,CONST(今明涨跌价.今涨停#DAY));
VAR5:=IF(CODELIKE(120) OR CODELIKE(121) OR CODELIKE(21) OR NAMELIKE(22),DRAWNULL,CONST(今明涨跌价.今跌停#DAY));
VAR6:=IF(CODELIKE(120) OR CODELIKE(121) OR CODELIKE(21) OR NAMELIKE(22),DRAWNULL,CONST(今明涨跌价.明涨停#DAY));
VAR7:=5;
VAR8:=10;
VAR9:=IF(CODELIKE(120) OR CODELIKE(121) OR CODELIKE(21) OR NAMELIKE(22),DRAWNULL,IF(NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) OR NAMELIKE(4),CLOSE*VAR7/100+CLOSE,CLOSE*VAR8/100+CLOSE));
STICKLINE(IF(CODELIKE(120) OR CODELIKE(121) OR CODELIKE(21) OR NAMELIKE(22),0,ISLASTBAR AND DYNAINFO(10)>0),VAR4,VAR5,3.8,1),COLORWHITE;
STICKLINE(IF(CODELIKE(120) OR CODELIKE(121) OR CODELIKE(21) OR NAMELIKE(22),0,ISLASTBAR AND DYNAINFO(10)>0),VAR6,IF(VAR6>=VAR4,VAR4,CONST(CLOSE)),3.8,0),COLORA4A4FF;
VAR10:=MA(CLOSE,20);
VAR11:=POW(CLOSE-VAR10,2);
VAR12:=MA(VAR11,20);
VAR13:=SQRT(VAR12);
VAR14:=VAR10+2*VAR13;
VAR15:=VAR10-2*VAR13;
上:IF(显布林1=1,REF(VAR14,1),DRAWNULL),COLORWHITE;
中:IF(显布林1=1,REF(VAR10,1),DRAWNULL),COLORWHITE;
下:IF(显布林1=1,REF(VAR15,1),DRAWNULL),COLORWHITE;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000055;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.6,0),COLOR000077;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.1,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.9,0),COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.1,0),COLORRED;
STICKLINE(CLOSE>OPEN,HIGH,LOW,0,0),COLORRED;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3,0),COLOR646400;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.6,0),COLOR848400;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.1,0),COLOR9F9F00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.5,0),COLORB0B000;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.9,0),COLORC4C400;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.1,0),COLORDBDB00;
STICKLINE(CLOSE<OPEN,HIGH,LOW,0,0),COLORDDDD00;
STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORWHITE;
STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORWHITE;
VAR16:=CLOSE>=INTPART(REF(CLOSE,1)*1.1*100)/100;
VAR17:=CLOSE>=INTPART(REF(CLOSE,1)*1.05*100)/100;
VAR18:=IF(NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) OR NAMELIKE(4),VAR17,VAR16);
STICKLINE(IF(CODELIKE(120) OR CODELIKE(121) OR CODELIKE(21) OR NAMELIKE(22),DRAWNULL,VAR18 AND PERIOD=5 AND OPEN!=HIGH),(((OPEN+CLOSE)/2+OPEN)/2+OPEN)/2,(((OPEN+CLOSE)/2+CLOSE)/2+CLOSE)/2,0.005,0),COLORYELLOW;
VAR19:=IF(NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) OR NAMELIKE(4),CLOSE=DTPRICE(REF(CLOSE,1),0.05),CLOSE=DTPRICE(REF(CLOSE,1),0.1));
STICKLINE(IF(CODELIKE(120) OR CODELIKE(121) OR CODELIKE(21) OR NAMELIKE(22),DRAWNULL,VAR19 AND PERIOD=5 AND OPEN!=LOW),(((OPEN+CLOSE)/2+OPEN)/2+OPEN)/2,(((OPEN+CLOSE)/2+CLOSE)/2+CLOSE)/2,0.005,0),COLORBLUE;
STICKLINE(ISLASTBAR AND PERIOD=5,IF(CODELIKE(120) OR CODELIKE(121) OR CODELIKE(21) OR NAMELIKE(22),DRAWNULL,DYNAINFO(11)),IF(CODELIKE(120) OR CODELIKE(121) OR NAMELIKE(22),DRAWNULL,DYNAINFO(11)),3.8,0),COLORWHITE;
DRAWICON(上影线%>=3 AND PERIOD=5 AND NOT(CODELIKE(120) OR CODELIKE(121) OR CODELIKE(21) OR NAMELIKE(22)),HIGH*1.018,41);
VAR20:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR21:=NOT(CODELIKE(120) OR CODELIKE(121) OR CODELIKE(21) OR NAMELIKE(22));
DRAWTEXT(ISLASTBAR AND VAR21 AND DYNAINFO(10)>1 AND PERIOD=5,HIGH*1.01,122),COLORWHITE;
DRAWTEXT(ISLASTBAR AND VAR21 AND HIGH=ZTPRICE(REF(CLOSE,1),0.1) AND DYNAINFO(10)>1 AND PERIOD=5,HIGH*1.01,122),COLORRED;
DRAWTEXT(ISLASTBAR AND VAR21 AND DYNAINFO(10)>1 AND PERIOD=5,HIGH*1.024,IF(VAR20>0,STRCAT(STRCAT(123,CON2STR(VAR20,2)),11),STRCAT(STRCAT(124,CON2STR(VAR20,2)),11))),COLORWHITE;
DRAWTEXT(ISLASTBAR AND VAR21 AND HIGH=ZTPRICE(REF(CLOSE,1),0.1) AND DYNAINFO(10)>1 AND PERIOD=5,HIGH*1.024,IF(VAR20>0,STRCAT(STRCAT(123,CON2STR(VAR20,2)),11),STRCAT(STRCAT(124,CON2STR(VAR20,2)),11))), |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!