找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
楼主: 王向辉

王子主图画线的公式表达

   火... [复制链接]
发表于 2017-10-4 15:32 | 显示全部楼层
通达信 赚10%以上指标 无未来

赚10%;以上指标 通达信

赚10%;以上指标 通达信
回复

使用道具 举报

发表于 2017-10-4 23:36 | 显示全部楼层
谢谢楼主分享。。。。。。。。。。
回复

使用道具 举报

发表于 2017-10-7 20:46 | 显示全部楼层
好像哪里有问题!不能用
回复

使用道具 举报

发表于 2017-10-12 23:38 | 显示全部楼层
谢谢分享谢谢分享学习了
回复

使用道具 举报

发表于 2017-10-13 10:47 | 显示全部楼层
想学王子画线
回复

使用道具 举报

发表于 2017-10-15 10:18 | 显示全部楼层
谢谢楼主分享!
回复

使用道具 举报

发表于 2017-10-15 10:28 | 显示全部楼层

谢谢楼主分享
回复

使用道具 举报

发表于 2017-10-17 13:30 | 显示全部楼层
MA5:=MA(C,5); MA10:=MA(C,10); MA20:=MA(C,20); 均线:=MA5>REF(MA5,1) AND MA10<REF(MA10,1) AND MA20<REF(MA20,1);  RV1:=REF(V,1); RV2:=REF(V,2); RV3:=REF(V,3);  RC1:=REF(C,1); RC2:=REF(C,2); RC3:=REF(C,3); RC4:=REF(C,4);  RO1:=REF(O,1); RO2:=REF(O,2); RO3:=REF(O,3); RO4:=REF(O,4);  不破价顶:=C>=RC3 AND RC1>=RC3 AND RC2>=RC3; 不破价底:=L>RO3 AND REF(L,1)>RO3 AND REF(L,2)>RO3;  均价:=AMOUNT/VOL/100; RJ1:=REF(均价,1); RJ2:=REF(均价,2);  阳柱:=C>=O OR (C<O AND 均价>RC1); 三日二阳:=COUNT(阳柱,3)>=2; 基价柱阳:=RC3>RO3;  价渐升:=(均价>=RJ1 OR C>RC1) AND (RJ1>=RJ2 OR RC1>=RC2); 均价升:=(C+RC1+RC2)/3>RC3; 量渐升:=V>RV1 AND RV1>RV2 ; 量渐减:=V<=RV1 AND RV1<=RV2 ; 均量减:=(V+RV1+RV2)/3<=RV3 AND NOT(量渐升);  日价量比:=C/V; 日价量比升:=日价量比>=REF(日价量比,1) AND REF(日价量比,1)>=REF(日价量比,2);  均价升幅:=(C+RC1+RC2)/3/RC3; 均量升幅:=(V+RV1+RV2)/3/RV3;  价量比:=比系数*均价升幅/均量升幅>1;  基前跳空:=RO3>RC4 AND RC4>RO4;   黄金柱1T:=基价柱阳 AND 价渐升 AND 量渐减 AND 不破价顶 AND 不破价底 AND 基前跳空;     BACKSET101T:=BACKSET(黄金柱1T,5);     FILTER101T:=FILTER(BACKSET101T,4);  黄金柱1:=基价柱阳 AND 价渐升 AND 量渐减 AND 不破价顶 AND 不破价底 ;     BACKSET101:=BACKSET(黄金柱1,4);     FILTER101:=FILTER(BACKSET101,3);  黄金柱11:=黄金柱1 AND REF(黄金柱1,1);     BACKSET1011:=BACKSET(黄金柱11,4);     FILTER1011:=FILTER(BACKSET1011,3);  黄金柱12:=黄金柱1 AND REF(黄金柱1,2);     BACKSET1012:=BACKSET(黄金柱12,4);     FILTER1012:=FILTER(BACKSET1012,3);  黄金柱13:=黄金柱1 AND REF(黄金柱1,3);     BACKSET1013:=BACKSET(黄金柱13,4);     FILTER1013:=FILTER(BACKSET1013,3);   黄金柱2T:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T);     BACKSET201T:=BACKSET(黄金柱2T,5);     FILTER201T:=FILTER(BACKSET201T,4);   黄金柱2:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱1T);     BACKSET201:=BACKSET(黄金柱2,4);     FILTER201:=FILTER(BACKSET201,3);  黄金柱21:=黄金柱2 AND REF(黄金柱2,1);     BACKSET2011:=BACKSET(黄金柱21,4);     FILTER2011:=FILTER(BACKSET2011,3);  黄金柱22:=黄金柱2 AND REF(黄金柱2,2);     BACKSET2012:=BACKSET(黄金柱22,4);     FILTER2012:=FILTER(BACKSET2012,3);  黄金柱23:=黄金柱2 AND REF(黄金柱2,3);     BACKSET2013:=BACKSET(黄金柱23,4);     FILTER2013:=FILTER(BACKSET2013,3);   黄金柱3T:=基价柱阳  AND 均价升 AND 量渐减 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T)  AND NOT(黄金柱2T);     BACKSET301T:=BACKSET(黄金柱3T,5);     FILTER301T:=FILTER(BACKSET301T,4);  黄金柱3:=基价柱阳  AND 均价升 AND 量渐减 AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);     BACKSET301:=BACKSET(黄金柱3,4);     FILTER301:=FILTER(BACKSET301,3);  黄金柱31:=黄金柱3 AND REF(黄金柱3,1);     BACKSET3011:=BACKSET(黄金柱31,4);     FILTER3011:=FILTER(BACKSET3011,3);  黄金柱32:=黄金柱3 AND REF(黄金柱3,2);     BACKSET3012:=BACKSET(黄金柱32,4);     FILTER3012:=FILTER(BACKSET3012,3);  黄金柱33:=黄金柱3 AND REF(黄金柱3,3);     BACKSET3013:=BACKSET(黄金柱33,4);     FILTER3013:=FILTER(BACKSET3013,3);   黄金柱4T:=基价柱阳  AND 均价升 AND 均量减 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T) AND NOT(黄金柱2) AND NOT(黄金柱2T) AND NOT(黄金柱3) AND NOT(黄金柱3T);     BACKSET401T:=BACKSET(黄金柱4T,5);     FILTER401T:=FILTER(BACKSET401T,4);  黄金柱4:=基价柱阳  AND 均价升 AND 均量减 AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T);     BACKSET401:=BACKSET(黄金柱4,4);     FILTER401:=FILTER(BACKSET401,3);  黄金柱41:=黄金柱4 AND REF(黄金柱4,1);     BACKSET4011:=BACKSET(黄金柱41,4);     FILTER4011:=FILTER(BACKSET4011,3);  黄金柱42:=黄金柱4 AND REF(黄金柱4,2);     BACKSET4012:=BACKSET(黄金柱42,4);     FILTER4012:=FILTER(BACKSET4012,3);  黄金柱43:=黄金柱4 AND REF(黄金柱4,3);     BACKSET4013:=BACKSET(黄金柱43,4);     FILTER4013:=FILTER(BACKSET4013,3);   黄金柱5T:=基价柱阳  AND 均价升 AND 价量比 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T)   AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);     BACKSET501T:=BACKSET(黄金柱5T,5);     FILTER501T:=FILTER(BACKSET501T,4);  黄金柱5:=基价柱阳  AND 均价升 AND 价量比 AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T)   AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);     BACKSET501:=BACKSET(黄金柱5,4);     FILTER501:=FILTER(BACKSET501,3);  黄金柱51:=黄金柱5 AND REF(黄金柱5,1);     BACKSET5011:=BACKSET(黄金柱51,4);     FILTER5011:=FILTER(BACKSET5011,3);  黄金柱52:=黄金柱5 AND REF(黄金柱5,2);     BACKSET5012:=BACKSET(黄金柱52,4);     FILTER5012:=FILTER(BACKSET5012,3);  黄金柱53:=黄金柱5 AND REF(黄金柱5,3);     BACKSET5013:=BACKSET(黄金柱53,4);     FILTER5013:=FILTER(BACKSET5013,3);  黄金柱6T:=基价柱阳  AND 均价升 AND 日价量比升 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);     BACKSET601T:=BACKSET(黄金柱6T,5);     FILTER601T:=FILTER(BACKSET601T,4);   黄金柱6:=基价柱阳  AND 均价升 AND 日价量比升 AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);     BACKSET601:=BACKSET(黄金柱6,4);     FILTER601:=FILTER(BACKSET601,3);  黄金柱61:=黄金柱6 AND REF(黄金柱6,1);     BACKSET6011:=BACKSET(黄金柱61,4);     FILTER6011:=FILTER(BACKSET6011,3);  黄金柱62:=黄金柱6 AND REF(黄金柱6,2);     BACKSET6012:=BACKSET(黄金柱62,4);     FILTER6012:=FILTER(BACKSET6012,3);  黄金柱63:=黄金柱6 AND REF(黄金柱6,3);     BACKSET6013:=BACKSET(黄金柱63,4);     FILTER6013:=FILTER(BACKSET6013,3);  FIL1:=(FILTER101 AND NOT(REF(FILTER101,4))) OR (FILTER1011 AND NOT(REF(FILTER1011,4))) OR (FILTER1012 AND NOT(REF(FILTER1012,4))) OR (FILTER1013 AND NOT(REF(FILTER1013,4))); FIL2:=(FILTER201 AND NOT(REF(FILTER201,4))) OR (FILTER2011 AND NOT(REF(FILTER2011,4))) OR (FILTER2012 AND NOT(REF(FILTER2012,4))) OR (FILTER2013 AND NOT(REF(FILTER2013,4))); FIL3:=(FILTER301 AND NOT(REF(FILTER301,4))) OR (FILTER3011 AND NOT(REF(FILTER3011,4))) OR (FILTER3012 AND NOT(REF(FILTER3012,4))) OR (FILTER3013 AND NOT(REF(FILTER3013,4))); FIL4:=(FILTER401 AND NOT(REF(FILTER401,4))) OR (FILTER4011 AND NOT(REF(FILTER4011,4))) OR (FILTER4012 AND NOT(REF(FILTER4012,4))) OR (FILTER4013 AND NOT(REF(FILTER4013,4))); FIL5:=(FILTER501 AND NOT(REF(FILTER501,4))) OR (FILTER5011 AND NOT(REF(FILTER5011,4))) OR (FILTER5012 AND NOT(REF(FILTER5012,4))) OR (FILTER5013 AND NOT(REF(FILTER5013,4))); FIL6:=(FILTER601 AND NOT(REF(FILTER601,4))) OR (FILTER6011 AND NOT(REF(FILTER6011,4))) OR (FILTER6012 AND NOT(REF(FILTER6012,4))) OR (FILTER6013 AND NOT(REF(FILTER6013,4))); FIL:=FIL1 OR FIL2 OR FIL3 OR FIL4 OR FIL5 OR FIL6; STICKLINE(FIL AND NOT(REF(FIL,4)),OPEN,CLOSE,3,0),COLOR0099FF; DRAWTEXT (FIL AND NOT(REF(FIL,4)),LOW*0.986,'↖黄金柱'),COLOR0099FF; K1:=SUMBARS(FIL,1); STICKLINE(K1 AND 金线=1,REF(C,K1-1),REF(C,K1-1),10,0),COLOR8822FF;  FIL1T:=(FILTER101T AND NOT(REF(FILTER101T,5))); FIL2T:=(FILTER201T AND NOT(REF(FILTER201T,5))); FIL3T:=(FILTER301T AND NOT(REF(FILTER301T,5))); FIL4T:=(FILTER401T AND NOT(REF(FILTER401T,5))); FIL5T:=(FILTER501T AND NOT(REF(FILTER501T,5))); FIL6T:=(FILTER601T AND NOT(REF(FILTER601T,5))); FILT:=FIL1T OR FIL2T OR FIL3T OR FIL4T OR FIL5T OR FIL6T; STICKLINE(FILT AND NOT(REF(FILT,5)),OPEN,CLOSE,3,0),COLOR0000FF; DRAWTEXT (FILT AND NOT(REF(FILT,5)),LOW*0.978,'↖元帅柱'),COLOR0000FF; K2:=SUMBARS(FILT,1); STICKLINE(K2 AND 金线=1,REF(C,K2-1),REF(C,K2-1),10,0),COLOR8822FF;   黄金柱LJ:=(黄金柱1 OR 黄金柱2 OR 黄金柱3 OR 黄金柱4 OR 黄金柱5  OR 黄金柱6 ) AND 均线  AND 临界点;     BACKSET10LJ:=BACKSET(黄金柱LJ ,4);     FILTER10LJ:=FILTER(BACKSET10LJ,3);     STICKLINE(FILTER10LJ AND NOT(REF(FILTER10LJ,4)),OPEN,CLOSE,3,0),COLOR0099FF;     DRAWTEXT(FILTER10LJ  AND NOT(REF(FILTER10LJ,4)) ,LOW*0.958,'↖临界点'),COLOR0099FF;  黄金柱LJT:=(黄金柱1T OR 黄金柱2T OR 黄金柱3T OR 黄金柱4T OR 黄金柱5T OR 黄金柱6T) AND 均线 AND 临界点 ;     BACKSET10LJT:=BACKSET(黄金柱LJT ,5);     FILTER10LJT:=FILTER(BACKSET10LJT,5);     STICKLINE(FILTER10LJT AND NOT(REF(FILTER10LJT,4)),OPEN,CLOSE,3,0),COLOR0099FF;     DRAWTEXT(FILTER10LJT  AND NOT(REF(FILTER10LJT,4)) ,LOW*0.958,'↖临界点'),COLOR0099FF;
回复

使用道具 举报

发表于 2017-10-17 15:11 | 显示全部楼层

感谢楼主分享
回复

使用道具 举报

发表于 2017-10-17 15:38 | 显示全部楼层
为什么不能用
回复

使用道具 举报

发表于 2017-10-17 20:36 | 显示全部楼层
峰谷周期:=5;
峰谷虚实:=1;
高量周期:=10;
M周期内:=10;
X3:=REF(CLOSE,1);
X4:=ISLASTBAR AND CLOSE<500;
X5:=VOL;
X6:=MA(VOL,5);
X7:=X5<=LLV(X5,100)*1;
X8:=COUNT(X7,5)>=3 OR X6<=LLV(X6,100) AND X5>0 AND BARSCOUNT(X5)>=100;
X9:=FILTER(X8,5);
X10:=VOL>=REF(VOL,1)*1.9 AND CLOSE>X3;
X11:=HIGH<0.382*HHV(HIGH,240) OR LOW<1.382*LLV(LOW,240);
X12:=VOL<0.382*HHV(VOL,240) AND MA(VOL,5)<=MA(VOL,40);
X13:=X12 AND X11;
X14:=VOL/REF(VOL,1)>=1.1;
X15:=CLOSE>OPEN AND BETWEEN(VOL/REF(VOL,1),1.1,2.5);
X16:=CLOSE>REF(CLOSE,1) AND REFX(LLV(MIN(CLOSE,OPEN),3),3)>=LOW;
X17:=X14 AND X16;
X18:=X17 AND X13;
X19:=CLOSE>OPEN AND CLOSE<REFX(OPEN,1) AND REFX(X16,1);
X20:=LLV(MIN(OPEN,CLOSE),3);
X21:=0.97*MA(VOL,3)<=REF(VOL,3);
X22:=REF(CLOSE>X3 AND VOL>1.1*REF(VOL,1),3) AND CLOSE>=REF(CLOSE,3) AND REF(CLOSE>=OPEN,3) AND X20>=REF(OPEN,3) AND X21;
X23:=BARSLAST(X22);
X24:=REF(X20,X23);
X25:=REF(CLOSE,X23+3);
X26:=REF(OPEN,X23+3);
X27:=峰谷周期;
X28:=IF(峰谷虚实=0,HIGH,MAX(CLOSE,OPEN));
X29:=5;
X30:=X29*1;
X31:=BARSLAST(FILTER(BACKSET(FILTER(REF(X28,X30)=HHV(X28,2*X30+1),X30),X30+1),X30));
X32:=REF(X28,X31);
X33:=X29*2;
X34:=BARSLAST(FILTER(BACKSET(FILTER(REF(X28,X33)=HHV(X28,2*X33+1),X33),X33+1),X33));
X35:=REF(X28,X34);
X36:=X29*4;
X37:=BARSLAST(FILTER(BACKSET(FILTER(REF(X28,X36)=HHV(X28,2*X36+1),X36),X36+1),X36));
X38:=REF(X28,X37);
X39:=X29*8;
X40:=BARSLAST(FILTER(BACKSET(FILTER(REF(X28,X39)=HHV(X28,2*X39+1),X39),X39+1),X39));
X41:=REF(X28,X40);
X42:=1+0/100;
X43:=CROSS(CLOSE,X42*X32);
X44:=X43 AND REF(HHV(X28,X31),1)<=X32;
X45:=CROSS(CLOSE,X42*X35);
X46:=X45 AND REF(HHV(X28,X34),1)<=X35;
X47:=CROSS(CLOSE,X42*X38);
X48:=X47 AND REF(HHV(X28,X37),1)<=X38;
X49:=CROSS(CLOSE,X42*X41);
X50:=X49 AND REF(HHV(X28,X40),1)<=X41;
X51:=X44 OR X48 OR X48 OR X50;
X52:=IF(X44,X31,IF(X46,X34,IF(X48,X37,X40)));
X53:=REF(X28,X52);
X54:=IF(峰谷虚实=0,LOW,MIN(CLOSE,OPEN));
X55:=FILTER(BACKSET(FILTER(REF(X54,X27)=LLV(X54,2*X27+1),X27),X27+1),X27);
X56:=BARSLAST(X55);
X57:=REF(X54,X56);
X58:=0.002*LOW+0.005;
X59:=X55 AND ABS(X57-REF(X57,1))<=X58 AND REF(X56,1)>=5;
X60:=X55 AND ABS(X57-REF(X53,X52+1))<=X58;
X61:=BETWEEN(X28,X53*0.995,X53*1.001);
X62:=COUNT(X61,10)>=3 AND HHV(HIGH,X52)<=X53*1.001;
X63:=X5/HHV(X5,20)<=0.618;
X64:=HIGH>LOW AND (CLOSE/REF(CLOSE,1)<=0.96 OR CLOSE/OPEN<=0.96) AND X63;
X65:=HIGH>LOW AND (CLOSE/REF(CLOSE,1)>=1.04 OR CLOSE/OPEN>=1.04) AND X63;
X66:=3;
X67:=3;
X68:=HHV(HIGH,240)-LLV(LOW,240);
X69:=IF(X68<=1,0,IF(X68<=5,0.02,2.5/1000*X68)+0.005);
X70:=VOL>=REF(VOL,1)*1.1 OR CLOSE>OPEN*IF(CLOSE<500,1.03,1.01);
X71:=REFX(LLV(LOW,X67),X67);
X72:=X70 AND LOW<=X71;
X73:=REF(HHV(HIGH,X66),1);
X74:=REF(HHV(MAX(CLOSE,OPEN),X66),1);
X75:=X72 AND ABS(X73-X71)<=X69;
X76:=X72 AND ABS(X74-X71)<=X69;
X77:=REFX(LLV(MIN(CLOSE,OPEN),X67),X67);
X78:=X70 AND LOW<=X77;
X79:=X78 AND ABS(X73-X77)<=X69;
X80:=X78 AND ABS(X74-X77)<=X69;
X81:=X75 OR X76 OR X79 OR X80;
X82:=50/IF(CLOSE>=1,10000,100000);
X83:=1.1*X3-X82;
X84:=1.05*X3-X82;
X85:=0.9*X3+X82;
X86:=0.95*X3+X82;
X87:=NAMELIKE(4) OR NAMELIKE(5);
X88:=IF(X87,CLOSE>=X84,CLOSE>=X83);
X89:=CLOSE<OPEN AND (CLOSE<=X86 OR CLOSE<0.95*OPEN+X82) OR (CLOSE>1000 AND CLOSE<=X3*0.975);
X90:=X89;
X91:=BARSLAST(FILTER(X90,3));
X92:=REF(OPEN,X91);
X93:=LOW<OPEN*0.96 AND X11 AND MA(CLOSE,60)<=REF(MA(CLOSE,60),1);
X94:=BARSLAST(X93);
X95:=REF(OPEN,X94)>=HHV(MAX(CLOSE,OPEN),X94) AND REF(LOW,X94)<=1.01*LLV(MIN(CLOSE,OPEN),X94);
X96:=X95 AND X94>=5 AND MA(VOL,5)<MA(VOL,60);
X97:=FILTER(X96,5);
X98:=LOW*0.005;
X99:=LOW<=LLV(LOW,3);
X100:=ABS(LOW-REF(X24,1))<=X98 OR ABS(LOW-REF(X24,X23+1))<=X98 AND LOW<=LLV(MIN(OPEN,CLOSE),X23);

回复

使用道具 举报

发表于 2017-10-19 14:10 | 显示全部楼层
怎么是出错误啊!
回复

使用道具 举报

发表于 2017-10-20 08:39 | 显示全部楼层
学了王子量学,进步明显
回复

使用道具 举报

发表于 2017-10-20 08:49 | 显示全部楼层

王子主图画线的公式表达 ,学习一下
回复

使用道具 举报

发表于 2017-10-20 08:59 | 显示全部楼层
谢谢学长的无私分享!!!
希望能加你为“好友”,向你讨教编程的学习内容!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|股海明灯官网 ( 京ICP备18020431号 )

GMT+8, 2024-11-22 19:51 , Processed in 0.104316 second(s), Total 11, Slave 10 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表