通达信擒龙图主图指标公式主图源码测试图分享
XS:=1;
{板块属性}
所属板块:=STRCAT('所属板块: ',STRCAT(STRCAT(STRCAT(' 【行业】:',HYBLOCK),STRCAT(' 【地域】:',DYBLOCK)),STRCAT(' 【概念】:',GNBLOCK)));
DRAWTEXT_FIX(O>0,0,0.00,0,所属板块),COLORYELLOW;
DRAWTEXT_FIX(O>0,0,0.05,0,'同花顺概念:');
DRAWTEXT_FIX(O>0,0.08,0.05,0,EXTERNSTR(0,1)),COLORFF00FF;
自由流通市值:=STRCAT(STRCAT('自由流通市值:', CON2STR(C*FINANCE(46)/100000000,2)),'亿');
DRAWTEXT_FIX(O>0,0,0.09,0,自由流通市值),COLORYELLOW;
{阴线战法“大阴实顶”的主图显示}
RC1:=REF(C,1);
大阴线:=C<0.96*O OR C<=RC1*0.96 OR C>1000 AND C<=RC1*0.98;
大阴T:=BARSLAST(FILTER(大阴线,3));{调整显示密度}
大阴实顶: REF(O,大阴T),COLORLIGREEN,POINTDOT;{显示大阴K线的开盘价O};
大阴二一: REF((L+H)/2,大阴T),NODRAW;
AA:=(C-REF(C,1))/REF(C,1)*100;
ZS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA>=4.945;
DS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA<=-4.945;
涨停价:IF(ZS,REF(C,1)*1.05,REF(C,1)*1.1),NODRAW;
跌停价:IF(DS,REF(C,1)*0.95,REF(C,1)*0.9),NODRAW;
{元帅主图}
比系数:=1.3;
金线:=1;
临界点:=0;
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);
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;
黄金柱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;
{}
{};
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORFF00FF;
STICKLINE(涨停,H,L,0,0),COLORFF00FF;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;N:=10;
{//黄金分割线//中枢分割线}
HIGH1:=REF(HHV(H,90),3);{//3周期前的90周期的最高价}
LOW1:=REF(LLV(L,90),3);{//3周期前的90周期的最低价}
J11:=HIGH1+(HIGH1-LOW1)*0.382;
J1:=HIGH1-(HIGH1-LOW1)*0.191;
J0:=HIGH1-(HIGH1-J1)/2;
J2:=HIGH1-(HIGH1-LOW1)*0.382;
J3:=HIGH1-(HIGH1-LOW1)*0.5;
J4:=HIGH1-(HIGH1-LOW1)*0.618;
J5:=HIGH1-(HIGH1-LOW1)*0.809;
J6:=HIGH1-(HIGH1-LOW1)*1.191;
J7:=HIGH1-(HIGH1-LOW1)*1.382;
JZ:=J2-(J2-J5)/2;
ZQJ11:=CONST(J11);
STICKLINE(REF(C,50),ZQJ11,ZQJ11,2,0),COLORGREEN;
亢龙:ZQJ11*XS,NODRAW,COLORGREEN;
ZQH:=CONST(HIGH1),COLORCYAN;
飞龙:ZQH*XS,NODRAW,COLORCYAN;
STICKLINE(REF(C,50),ZQH,ZQH,2,0),COLORCYAN;{DRAWSL((PERIOD>=3) AND X=1 AND ISLASTBAR,HIGH1,0,100,1),COLORCYAN;}
ZQJ2:=CONST(J2);
腾龙:ZQJ2*XS,NODRAW,COLORWHITE;
STICKLINE(REF(C,50),ZQJ2,ZQJ2,2,0),COLORWHITE;{DRAWSL((PERIOD>=3) AND X=1 AND ISLASTBAR,JZ,0,100,1),COLORWHITE;}
ZQJ5:=CONST(J5);
潜龙:ZQJ5*XS,NODRAW,COLORRED;
STICKLINE(REF(C,50),ZQJ5,ZQJ5,2,0),COLORRED;{DRAWSL((PERIOD>=3) AND X=1 AND ISLASTBAR,J5,0,100,1),COLORRED;}
ZQJL:=CONST(LOW1)*XS;
渊低:ZQJL*XS,NODRAW,COLORYELLOW;
STICKLINE(REF(C,50),ZQJL,ZQJL,8,0),COLORYELLOW;{DRAWSL((PERIOD>=3) AND X=1 AND ISLASTBAR,LOW1,0,100,1),COLORYELLOW;};
未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
XS赋值:1
{板块属性}
所属板块赋值:STRCAT('所属板块: ',STRCAT(STRCAT(STRCAT(' 【行业】:',HYBLOCK),STRCAT(' 【地域】:',DYBLOCK)),STRCAT(' 【概念】:',GNBLOCK)))
当满足条件O>0时,在横轴0纵轴0.00位置书写文字
当满足条件O>0时,在横轴0纵轴0.05位置书写文字
DRAWTEXT_FIX(O>0,0.08,0.05,0,EXTERNSTR(0,1)),COLORFF00FF
自由流通市值赋值:STRCAT(STRCAT('自由流通市值:', CON2STR(C*FINANCE(46)/100000000,2)),'亿')
当满足条件O>0时,在横轴0纵轴0.09位置书写文字
{阴线战法“大阴实顶”的主图显示}
RC1赋值:1日前的C
大阴线赋值:C<0.96*O OR C<=RC1*0.96 OR C>1000 AND C<=RC1*0.98
大阴T赋值:上次大阴线的3过滤距今天数
输出{调整显示密度}
大阴实顶: 大阴T日前的O,COLORLIGREEN,POINTDOT
{显示大阴K线的开盘价O}
输出大阴二一: REF((L+H)/2,大阴T),NODRAW
AA赋值:(C-1日前的C)/1日前的C*100
ZS赋值:(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA>=4.945
DS赋值:(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA<=-4.945
输出涨停价:IF(ZS,1日前的C*1.05,1日前的C*1.1),NODRAW
输出跌停价:IF(DS,1日前的C*0.95,1日前的C*0.9),NODRAW
{元帅主图}
比系数赋值:1.3
金线赋值:1
临界点赋值:0
MA5赋值:C的5日简单移动平均
MA10赋值:C的10日简单移动平均
MA20赋值:C的20日简单移动平均
均线赋值:MA5>1日前的MA5 AND MA10<1日前的MA10 AND MA20<1日前的MA20
RV1赋值:1日前的V
RV2赋值:2日前的V
RV3赋值:3日前的V
RC2赋值:2日前的C
RC3赋值:3日前的C
RC4赋值:4日前的C
RO1赋值:1日前的O
RO2赋值:2日前的O
RO3赋值:3日前的O
RO4赋值:4日前的O
不破价顶赋值:C>=RC3 AND RC1>=RC3 AND RC2>=RC3
不破价底赋值:L>RO3 AND 1日前的L>RO3 AND 2日前的L>RO3
均价赋值:AMOUNT/成交量/100
RJ1赋值:1日前的均价
RJ2赋值:2日前的均价
阳柱赋值:C>=O OR (CRC1)
三日二阳赋值:统计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
日价量比升:=日价量比>=1日前的日价量比 AND 1日前的日价量比>=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赋值:BACKSET101T的4过滤
黄金柱1赋值:基价柱阳 AND 价渐升 AND 量渐减 AND 不破价顶 AND 不破价底
BACKSET101赋值:BACKSET(黄金柱1,4)
FILTER101赋值:BACKSET101的3过滤
黄金柱11:=黄金柱1 AND 1日前的黄金柱1
BACKSET1011:=BACKSET(黄金柱11,4)
FILTER1011:=BACKSET1011的3过滤
黄金柱12:=黄金柱1 AND 2日前的黄金柱1
BACKSET1012:=BACKSET(黄金柱12,4)
FILTER1012:=BACKSET1012的3过滤
黄金柱13:=黄金柱1 AND 3日前的黄金柱1
BACKSET1013:=BACKSET(黄金柱13,4)
FILTER1013:=BACKSET1013的3过滤
黄金柱2T赋值:基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T)
BACKSET201T赋值:BACKSET(黄金柱2T,5)
FILTER201T赋值:BACKSET201T的4过滤
黄金柱2赋值:基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱1T)
BACKSET201赋值:BACKSET(黄金柱2,4)
FILTER201赋值:BACKSET201的3过滤
黄金柱21:=黄金柱2 AND 1日前的黄金柱2
BACKSET2011:=BACKSET(黄金柱21,4)
FILTER2011:=BACKSET2011的3过滤
黄金柱22:=黄金柱2 AND 2日前的黄金柱2
BACKSET2012:=BACKSET(黄金柱22,4)
FILTER2012:=BACKSET2012的3过滤
黄金柱23:=黄金柱2 AND 3日前的黄金柱2
BACKSET2013:=BACKSET(黄金柱23,4)
FILTER2013:=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赋值:BACKSET301T的4过滤
黄金柱3赋值:基价柱阳 AND 均价升 AND 量渐减 AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T)
BACKSET301赋值:BACKSET(黄金柱3,4)
FILTER301赋值:BACKSET301的3过滤
黄金柱31:=黄金柱3 AND 1日前的黄金柱3
BACKSET3011:=BACKSET(黄金柱31,4)
FILTER3011:=BACKSET3011的3过滤
黄金柱32:=黄金柱3 AND 2日前的黄金柱3
BACKSET3012:=BACKSET(黄金柱32,4)
FILTER3012:=BACKSET3012的3过滤
黄金柱33:=黄金柱3 AND 3日前的黄金柱3
BACKSET3013:=BACKSET(黄金柱33,4)
FILTER3013:=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赋值: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赋值:BACKSET401的3过滤
黄金柱41:=黄金柱4 AND 1日前的黄金柱4
BACKSET4011:=BACKSET(黄金柱41,4)
FILTER4011:=BACKSET4011的3过滤
黄金柱42:=黄金柱4 AND 2日前的黄金柱4
BACKSET4012:=BACKSET(黄金柱42,4)
FILTER4012:=BACKSET4012的3过滤
黄金柱43:=黄金柱4 AND 3日前的黄金柱4
BACKSET4013:=BACKSET(黄金柱43,4)
FILTER4013:=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赋值: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赋值:BACKSET501的3过滤
黄金柱51:=黄金柱5 AND 1日前的黄金柱5
BACKSET5011:=BACKSET(黄金柱51,4)
FILTER5011:=BACKSET5011的3过滤
黄金柱52:=黄金柱5 AND 2日前的黄金柱5
BACKSET5012:=BACKSET(黄金柱52,4)
FILTER5012:=BACKSET5012的3过滤
黄金柱53:=黄金柱5 AND 3日前的黄金柱5
BACKSET5013:=BACKSET(黄金柱53,4)
FILTER5013:=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赋值: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赋值:BACKSET601的3过滤
黄金柱61:=黄金柱6 AND 1日前的黄金柱6
BACKSET6011:=BACKSET(黄金柱61,4)
FILTER6011:=BACKSET6011的3过滤
黄金柱62:=黄金柱6 AND 2日前的黄金柱6
BACKSET6012:=BACKSET(黄金柱62,4)
FILTER6012:=BACKSET6012的3过滤
黄金柱63:=黄金柱6 AND 3日前的黄金柱6
BACKSET6013:=BACKSET(黄金柱63,4)
FILTER6013:=BACKSET6013的3过滤
FIL1赋值:(FILTER101 AND NOT(4日前的FILTER101)) OR (FILTER1011 AND NOT(4日前的FILTER1011)) OR (FILTER1012 AND NOT(4日前的FILTER1012)) OR (FILTER1013 AND NOT(4日前的FILTER1013))
FIL2赋值:(FILTER201 AND NOT(4日前的FILTER201)) OR (FILTER2011 AND NOT(4日前的FILTER2011)) OR (FILTER2012 AND NOT(4日前的FILTER2012)) OR (FILTER2013 AND NOT(4日前的FILTER2013))
FIL3赋值:(FILTER301 AND NOT(4日前的FILTER301)) OR (FILTER3011 AND NOT(4日前的FILTER3011)) OR (FILTER3012 AND NOT(4日前的FILTER3012)) OR (FILTER3013 AND NOT(4日前的FILTER3013))
FIL4赋值:(FILTER401 AND NOT(4日前的FILTER401)) OR (FILTER4011 AND NOT(4日前的FILTER4011)) OR (FILTER4012 AND NOT(4日前的FILTER4012)) OR (FILTER4013 AND NOT(4日前的FILTER4013))
FIL5赋值:(FILTER501 AND NOT(4日前的FILTER501)) OR (FILTER5011 AND NOT(4日前的FILTER5011)) OR (FILTER5012 AND NOT(4日前的FILTER5012)) OR (FILTER5013 AND NOT(4日前的FILTER5013))
FIL6赋值:(FILTER601 AND NOT(4日前的FILTER601)) OR (FILTER6011 AND NOT(4日前的FILTER6011)) OR (FILTER6012 AND NOT(4日前的FILTER6012)) OR (FILTER6013 AND NOT(4日前的FILTER6013))
FIL赋值:FIL1 OR FIL2 OR FIL3 OR FIL4 OR FIL5 OR FIL6
STICKLINE(FIL AND NOT(4日前的FIL),OPEN,收盘价,3,0),COLOR0099FF
DRAWTEXT (FIL AND NOT(4日前的FIL),最低价*0.986,'↖黄金柱'),COLOR0099FF
K1赋值:FIL累加至1的天数
STICKLINE(K1 AND 金线=1,K1-1日前的C,K1-1日前的C,10,0),COLOR8822FF
FIL1T:=(FILTER101T AND NOT(5日前的FILTER101T))
FIL2T:=(FILTER201T AND NOT(5日前的FILTER201T))
FIL3T:=(FILTER301T AND NOT(5日前的FILTER301T))
FIL4T:=(FILTER401T AND NOT(5日前的FILTER401T))
FIL5T:=(FILTER501T AND NOT(5日前的FILTER501T))
FIL6T:=(FILTER601T AND NOT(5日前的FILTER601T))
FILT:=FIL1T OR FIL2T OR FIL3T OR FIL4T OR FIL5T OR FIL6T
STICKLINE(FILT AND NOT(5日前的FILT),OPEN,收盘价,3,0),COLOR0000FF
DRAWTEXT (FILT AND NOT(5日前的FILT),最低价*0.978,'↖元帅柱'),COLOR0000FF
黄金柱LJ赋值:(黄金柱1 OR 黄金柱2 OR 黄金柱3 OR 黄金柱4 OR 黄金柱5 OR 黄金柱6 ) AND 均线 AND 临界点
BACKSET10LJ赋值:BACKSET(黄金柱LJ ,4)
FILTER10LJ:=BACKSET10LJ的3过滤
STICKLINE(FILTER10LJ AND NOT(4日前的FILTER10LJ),OPEN,收盘价,3,0),COLOR0099FF
DRAWTEXT(FILTER10LJ AND NOT(4日前的FILTER10LJ) ,最低价*0.958,'↖临界点'),COLOR0099FF
黄金柱LJT:=(黄金柱1T OR 黄金柱2T OR 黄金柱3T OR 黄金柱4T OR 黄金柱5T OR 黄金柱6T) AND 均线 AND 临界点
BACKSET10LJT:=BACKSET(黄金柱LJT ,5)
FILTER10LJT:=BACKSET10LJT的5过滤
STICKLINE(FILTER10LJT AND NOT(4日前的FILTER10LJT),OPEN,收盘价,3,0),COLOR0099FF
DRAWTEXT(FILTER10LJT AND NOT(4日前的FILTER10LJT) ,最低价*0.958,'↖临界点'),COLOR0099FF
{}
{}
C2赋值:1日前的C
涨停赋值:IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0)
当满足条件涨停时,在OPEN和收盘价之间画柱状线
当满足条件涨停时,在H和L之间画柱状线
跌停赋值:IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0)
当满足条件跌停时,在OPEN和收盘价之间画柱状线
当满足条件跌停时,在H和L之间画柱状线
N赋值:10
{//黄金分割线//中枢分割线}
HIGH1赋值:REF(90日内H最高值,3)
{//3周期前的90周期的最高价}
LOW1赋值:REF(90日内L最低值,3)
{//3周期前的90周期的最低价}
J11赋值:最高价1+(最高价1-最低价1)*0.382
J1赋值:最高价1-(最高价1-最低价1)*0.191
J0赋值:最高价1-(最高价1-J1)/2
J2赋值:最高价1-(最高价1-最低价1)*0.382
J3赋值:最高价1-(最高价1-最低价1)*0.5
J4赋值:最高价1-(最高价1-最低价1)*0.618
J5赋值:最高价1-(最高价1-最低价1)*0.809
J6赋值:最高价1-(最高价1-最低价1)*1.191
J7赋值:最高价1-(最高价1-最低价1)*1.382
JZ赋值:J2-(J2-J5)/2
ZQJ11:=CONST(J11)
STICKLINE(50日前的C,ZQJ11,ZQJ11,2,0),COLORGREEN
输出亢龙:ZQJ11*XS,NODRAW,COLORGREEN
ZQH赋值:CONST(最高价1),COLORCYAN
输出飞龙:ZQH*XS,NODRAW,COLORCYAN
STICKLINE(50日前的C,ZQH,ZQH,2,0),COLORCYAN
{DRAWSL((PERIOD>=3) AND X=1 AND ISLASTBAR,最高价1,0,100,1),COLORCYAN
}
ZQJ2赋值:CONST(J2)
输出腾龙:ZQJ2*XS,NODRAW,画白色
STICKLINE(50日前的C,ZQJ2,ZQJ2,2,0),画白色
{DRAWSL((PERIOD>=3) AND X=1 AND ISLASTBAR,JZ,0,100,1),画白色
}
ZQJ5赋值:CONST(J5)
输出潜龙:ZQJ5*XS,NODRAW,画红色
STICKLINE(50日前的C,ZQJ5,ZQJ5,2,0),画红色
{DRAWSL((PERIOD>=3) AND X=1 AND ISLASTBAR,J5,0,100,1),画红色
}
ZQJL赋值:CONST(最低价1)*XS
输出渊低:ZQJL*XS,NODRAW,画黄色
STICKLINE(50日前的C,ZQJL,ZQJL,8,0),画黄色
{DRAWSL((PERIOD>=3) AND X=1 AND ISLASTBAR,最低价1,0,100,1),画黄色
}