通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
公式解读:
通达信主图黄金柱指标公式-主力建仓 公式源码
A7:=(2*C+H+L)/4;
VAR1:=LLV(A7,21);
VAR2:=HHV(A7,21);
SK:=Ema((A7-VAR1)/(VAR2-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
买进:COUNT(CLOSE REF(CLOSE,1),13)/13 6/10AND
COUNT(SK SD,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE =OPEN,4)AND
REF(CLOSE OPEN,3)ANDREF(CLOSE OPEN,2)ANDREF(OPEN CLOSE,1)AND
OPEN REF(CLOSE,1);
MA5:MA(C,5);
MA6:=MA(C,6);
MA10:MA(C,10);
MA20:MA(C,20);A2:=REF(MA20,1);J1:=(MA20-A2)/A2*100;MJ1:=MA(J1,3);
MA30:MA(C,30);
MA60:MA(C,60);
MA120:MA(C,120);
乖离2:=(MA20-MA30)/MA30*100;
VAR1:=IF(BETWEEN(乖离2,-2,5),2,0);
MAX1:=MAX(MA20,MA30);
MAX2:=MAX(MAX1,MA60);
MIN1:=MIN(MA20,MA30);
MIN2:=MIN(MIN1,MA60);
K1:=(MAX2/MIN2-1)*100;{粘合度符合条件}
VAR2:=IF(K1 =8,1,0);
上火车轨:=MA20 MA30ANDMA20 REF(MA20,1)ANDMA30 REF(MA30,1)ANDMA20-MA30 REF((MA20-MA30),1);
STICKLINE(上火车轨,MA20,MA30,0,0),COLORRED;
神枪手:=DRAWTEXT(FILTER(上火车轨AND MACD.DIF 0.15AND MACD.DIF REF( MACD.DIF ,1)ANDMA(V,60) REF(MA(V,60),1)ANDMA(V,5) MA(V,10)ANDJ1 REF(J1,1)AND
(L =MA20ANDC MA20OR(CROSS(MA5,MA20))),5),L*0.98, ←神枪手
神枪手:=FILTER(上火车轨AND MACD.DIF 0.15AND MACD.DIF REF( MACD.DIF ,1)ANDMA(V,60) REF(MA(V,60),1)ANDMA(V,5) MA(V,10)ANDJ1 REF(J1,1)AND
(L =MA20ANDC MA20OR(CROSS(MA5,MA20))),5);{44.40%15240}
暴张:DRAWTEXT(FILTER((VAR1ORVAR2)ANDMA10 REF(MA10,1)ANDCOUNT(MA30 REF(MA30,1),3)=3ANDMA30 MA60ANDCOUNT(CROSS(MA5,MA30),3)ANDJ1 MJ1ANDMA(V,5) MA(V,60)
ANDMA(V,60) REF(MA(V,60),1),5),MA60*0.99, 短线暴张 ),COLORRED;
DRAWTEXT(CROSS( KDJ.K (5,2,3), KDJ.D (5,2,3))AND KDJ.D (5,2,3) 30ANDJ1 MJ1ANDMA60 REF(MA60,1)ANDCOUNT(J1 1,3) =1,L*0.995, ←买入 ),COLORYELLOW;
DRAWTEXT(CROSS( KDJ.D (5,2,3), KDJ.K (5,2,3))AND KDJ.D (5,2,3) 65ANDJ1 MJ1ANDCOUNT(J1 1,3) =1,H*1.005, ←卖出 ),COLORGREEN;
DRAWTEXT(CROSS( KDJ.D (18,9,6), KDJ.K (18,9,6))AND KDJ.D (18,9,6) 60AND KDJ.J (45,15,15) 90,H*1.03, ←顶 ),COLORRED;
DRAWTEXT(CROSS(MA5,MA6)AND KDJ.K (5,3,3) =50AND KDJ.J (5,3,3) 31,L*0.92, ←再买 ),COLORMAGENTA;
XL1:=((LLV(LOW,3)=LLV(LOW,60))AND((CLOSE/REF(CLOSE,1)) =1.04));
XL2:=(((CLOSE-EMA(CLOSE,21))/EMA(CLOSE,21))*100);
XL3:=CROSS(XL2,(0-20));
DRAWTEXT(FILTER(((XL1 0)ANDLOW),5),(LOW-0.4), ●买点
DRAWTEXT((XL3 0),(LOW-0.2), ●绝对底部
X6:=REF(CLOSE,1);
X7:=((SMA(MAX((CLOSE-X6),0),7,1)/SMA(ABS((CLOSE-X6)),7,1))*100);
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);
DRAWTEXT(X9,(HIGH*1.02), ●出货 ),COLOR9000F5;
STICKLINE(C 1.098*REF(C,1),C,O,0,0),COLORYELLOW;
AAA:=CONST(HHV(H,90));
R1:=MA(CLOSE,1);
R2:=MA(CLOSE,3);
R3:=(MA(R2,1)*1);
R4:=(MA(R2,3)*1);
DRAWTEXT(CROSS(R3,R4),(LOW-0.1), 进 ),COLORYELLOW;
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);
DRAWTEXT(CROSS(88,RSI),(HIGH*1.02), 出 ),COLORGREEN;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13 =150ANDVAR13 200ANDVAR14 =150ANDVAR14 200,10,0);
VAR16:=IF(VAR13 =-150ANDVAR13 -200ANDVAR14 =-150ANDVAR14 -200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18 90,VAR18,100);
VAR1A:=IF(VARE 0,VARE,0);
VAR1B:=IF(VAR14 =200ANDVAR13 =150,15,IF(VAR14 =-200ANDVAR13 =-150,-15,VAR16))+60;
VAR1C:=VAR1A 48ANDVAR1B 60ANDVAR19 100;
DRAWTEXT(VAR1CANDCOUNT(VAR1C,30)=1,HIGH*1.02, 大笔出货 ),LINETHICK1,COLORFFCC66;
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;
老鼠仓:=BB1ANDCC1ANDDD1ANDEE1,LINETHICK0;
DRAWTEXT(老鼠仓,(LOW*0.99), 老鼠仓 ),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(,5);
V2:=MA(VOL,10);
T1:=CONST(IF(C 200AND((CROSS(AVX,1)AND(V1 =V2))AND(DSLX =DSLX1)),1,0));
T2:=CONST(IF(C 200AND((CROSS(AVX,1)AND(V1 V2))AND(DSLX =DSLX1)),1,0));
T3:=CONST(IF(C 200AND((CROSS(AVX,1)AND(V1 V2))AND(DSLX DSLX1)),1,0));
T4:=CONST(IF(C 200AND((CROSS(AVX,1)AND(V1 =V2))AND(DSLX DSLX1)),1,0));
T5:=CONST(IF(C 200AND((CROSS(1,AVX)AND(V1 =V2))AND(DSLX =DSLX1)),1,0));
T6:=CONST(IF(C 200AND((CROSS(1,AVX)AND(V1 V2))AND(DSLX =DSLX1)),1,0));
T7:=CONST(IF(C 200AND((CROSS(1,AVX)AND(V1 =V2))AND(DSLX DSLX1)),1,0));
T8:=CONST(IF(C 200AND((CROSS(1,AVX)AND(V1 V2))AND(DSLX DSLX1)),1,0));
T9:=CONST(IF(C 200AND((((AVX =1)AND(REF(AVX,1) 0))AND(V1 =V2))AND(DSLX =DSLX1)),1,0));
T10:=CONST(IF(C 200AND((((AVX =1)AND(REF(AVX,1) 0))AND(V1 V2))AND(DSLX =DSLX1)),1,0));
T11:=CONST(IF(C 200AND((((AVX =1)AND(REF(AVX,1) 0))AND(V1 =V2))AND(DSLX DSLX1)),1,0));
T12:=CONST(IF(C 200AND((((AVX =1)AND(REF(AVX,1) 0))AND(V1 V2))AND(DSLX DSLX1)),1,0));
T13:=CONST(IF(C 200AND((((AVX 1)AND(REF(AVX,1) 0))AND(V1 =V2))AND(DSLX =DSLX1)),1,0));
T14:=CONST(IF(C 200AND((((AVX 1)AND(REF(AVX,1) 0))AND(V1 V2))AND(DSLX =DSLX1)),1,0));
T15:=CONST(IF(C 200AND((((AVX 1)AND(REF(AVX,1) 0))AND(V1 =V2))AND(DSLX DSLX1)),1,0));
T16:=CONST(IF(C 200AND((((AVX 1)AND(REF(AVX,1) 0))AND(V1 V2))AND(DSLX DSLX1)),1,0));
T17:=CONST(IF(C 200AND(CROSS(AVX,1)AND(V1 =V2)),1,0));
T18:=CONST(IF(C 200AND(CROSS(AVX,1)AND(V1 =V2)),1,0));
T19:=CONST(IF(C 200AND(CROSS(AVX,1)AND(V1 V2)),1,0));
T20:=CONST(IF(C 200AND(CROSS(1,AVX)AND(V1 =V2)),1,0));
T21:=CONST(IF(C 200AND(CROSS(1,AVX)AND(V1 V2)),1,0));
T22:=CONST(IF(C 200AND(((AVX =1)AND(REF(AVX,1) 0))AND(V1 =V2)),1,0));
T23:=CONST(IF(C 200AND(((AVX =1)AND(REF(AVX,1) 0))AND(V1 V2)),1,0));
T24:=CONST(IF(C 200AND(((AVX 1)AND(REF(AVX,1) 0))AND(V1 =V2)),1,0));
T25:=CONST(IF(C 200AND(((AVX 1)AND(REF(AVX,1) 0))AND(V1 V2)),1,0));
DRAWTEXT(T1=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 理想,明显走强,参与,仓位在2/3左右 ),COLORFF00FF;
DRAWTEXT(T2=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 走势趋强,还显不足,短线进场,仓位在1/2左右 ),COLORFF00FF;
DRAWTEXT(T3=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 量价良好,没有明显走强,短线进场,仓位1/2左右 ),COLORFF00FF;
DRAWTEXT(T4=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右 ),COLORFF00FF;
DRAWTEXT(T5=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 形态变坏,重仓者减持大半,清仓者观望 ),COLORFF00FF;
DRAWTEXT(T6=1ANDCURRBARSCOUNT=70,AAA*0.98
, 随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓 ),COLORFF00FF;
DRAWTEXT(T7=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 该股放量下跌,走势明显偏弱,离场观望 ),COLORFF00FF;
DRAWTEXT(T8=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 该股缩量下跌,走势偏弱,离场观望。 ),COLORFF00FF;
DRAWTEXT(T9=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 该股形态良好,强势明显,量能充足,可以继续持有 ),COLORFF00FF;
DRAWTEXT(T10=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 上行趋势不变,强势依然,量能开始转弱,注意风险 ),COLORFF00FF;
DRAWTEXT(T11=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 该股仍然具备上涨潜力,但股性偏弱,可考虑减仓 ),COLORFF00FF;
DRAWTEXT(T12=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 该股走势趋弱,量能不足,减持大部分筹码 ),COLORFF00FF;
DRAWTEXT(T13=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 该股形态不佳,注意成交量的变化,目前不适合参与 ),COLORFF00FF;
DRAWTEXT(T14=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 趋势不明,股价偏弱,注意量能变化,目前不宜参与 ),COLORFF00FF;
DRAWTEXT(T15=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 有走强迹象,但量能不足,趋势不明,不适合操作 ),COLORFF00FF;
DRAWTEXT(T16=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 该股走势太弱,没有参与价值。 ),COLORFF00FF;
DRAWTEXT(T17=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 大盘理想,有明显走强迹象,中线参与,仓位在2/3左右 ),COLORFF00FF;
DRAWTEXT(T18=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 如前期经过一轮下跌,最佳买点,前期有过一段涨幅需谨慎 ),COLORFF00FF;
DRAWTEXT(T19=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 考虑短线进场,仓位在1/2左右,一旦量能放大,加仓买入 ),COLORFF00FF;
DRAWTEXT(T20=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 大盘形态走坏,重仓者可以减去大部分仓位。 ),COLORFF0000;
DRAWTEXT(T21=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 大盘缩量调整,注意风险,短线清仓观望。 ),COLORFF0000;
DRAWTEXT(T22=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 大盘走势良好,量能理想,可以继续持有强势股。 ),COLORFF0000;
DRAWTEXT(T23=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 大盘形态良好,但量能稍显不足,随时准备减仓。 ),COLORFF0000;
DRAWTEXT(T24=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 大盘趋势不明,注意成交量变化,目前不适宜进场。 ),COLORFF0000;
DRAWTEXT(T25=1ANDCURRBARSCOUNT=70,AAA-(AAA*0.03)
, 大盘趋势向下,量能萎缩,不适合进场。 ),COLORFF0000;
AA:=BARSCOUNT(C);
AH:=HHV(H,200);
AL:=LLV(L,200);
A0:=(AH-AL)/40;
B1:=L-A0;
STICKLINE((AA+0)/34=FLOOR((AA+0)/34),B1,B1-1.5*A0,2,0),COLORF00FF0;
DRAWTEXT((AA+0)/34=FLOOR((AA+0)/34),B1-1*A0, 时间窗,变盘 ),COLORF00FF0;
VAR2S:=(2*CLOSE+HIGH+LOW)/4;
VAR3S:=IF(YEAR =2099ANDMONTH 2,0,1);
VAR4S:=LLV(LOW,5);VAR5S:=HHV(HIGH,4);
散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;
DRAWTEXT(CROSS(散户,庄家)AND散户 30,L-0.05, ←吸 ),COLORRED;
BBB1:=MA(C,1);
B2:=SMA(SMA(SMA(BBB1,2,1),2,1),2,1),COLORRED;
SMA2:=MA(B2,2);
VARB1:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));
买:DRAWTEXT(CROSS(VARB1,VAR3)ANDB2 SMA2,(LOW*0.97), ←⊙买 ),COLORRED;
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);
DRAWTEXT(CROSS(75,SMA(MAX(CLOSE-REF(CLOSE,1),0),8,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),8,1)*100),HIGH+0.25, ←卖 ),COLORGREEN;
ma6:=MA(C,6);
MA13:=MA(C,13);
MA18:=MA(C,18);
MA30:MA(C,30);
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2 =(10-0.01*100/C2),1,0);
stICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(涨停,H,L,3,0),COLORRED;
跌停:=IF((C2-C)*100/C2 =(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
A1:=REF(H,8)=HHV(H,2*8+1);
B1:=FILTER(A1,8);
C1:=BacKSET(B1,8+1);
D1:=FILTER(C1,8);{高点}
R11:=BACKSET(ISLASTBAR,BArslAST(D1)+1);S11:=R11 REF(R11,1);
DRAWLINE(D1,H,S11,H,1),COLORRED,LINETHICK2;
A2:=REF(L,8)=LLV(L,2*8+1);
B2:=FILTER(A2,8);
CB2:=BACKSET(B2,8+1);
D2:=FILTER(CB2,8);{低点}
T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);U11:=T11 REF(T11,1);
DRAWLINE(D2,L,U11,L,1),COLORRED,LINETHICK2;
M:=INTPART(3*8/5);
A12:=REF(H,M)=HHV(H,2*M+1);
B12:=FILTER(A12,M);
C12:=BACKSET(B12,M+1);
D12:=FILTER(C12,M);{高点}
R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1);S112:=R112 REF(R112,1);
DRAWLINE(D12,H,S112,H,1),COLORBLUE,LINETHICK2;
A22:=REF(L,M)=LLV(L,2*M+1);
B22:=FILTER(A22,M);
C22:=BACKSET(B22,M+1);
D22:=FILTER(C22,M);{低点}
T112:=BACKSET(ISLASTBAR,BARSLAST(D22)+1);U112:=T112 REF(T112,1);
DRAWLINE(D22,L,U112,L,1),COLORBLUE,LINETHICK2;
Y:=INTPART(5*9/2);
AA1:=REF(H,Y)=HHV(H,2*Y+1);
BA1:=FILTER(AA1,Y);
CA1:=BACKSET(BA1,Y+1);
DA1:=FILTER(CA1,Y);{高点}
RA12:=BACKSET(ISLASTBAR,BARSLAST(DA1)+1);SA12:=RA12 REF(RA12,1);
DRAWLINE(DA1,H,SA12,H,1),COLOR00FFFF;
AA2:=REF(L,Y)=LLV(L,2*Y+1);
BA2:=FILTER(AA2,Y);
CA2:=BACKSET(BA2,Y+1);
DA2:=FILTER(CA2,Y);{低点}
TA12:=BACKSET(ISLASTBAR,BARSLAST(DA2)+1);UA12:=TA12 REF(TA12,1);
DRAWLINE(DA2,L,UA12,L,1),COLOR00FFFF;
主:=(CLOSE+O+HIGH+LOW)/4;
力:=EMA(主,13)-EMA(主,34);
控:=EMA(力,5);
弃:=(-2)*(力-控)*5.8;
盘:=2*(力-控)*5.8;
方向:=crOSS(盘,弃);
DRAWICON(方向,0.99*LOW,1);
向下:=CROSS(弃,盘);
DRAWICON(向下,HIGH*1.01,2);
TY:=C;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD) BARSLAST(LD)ANDNOT(HD);
T2:=BARSLAST(HD) BARSLAST(LD)ANDNOT(LD);
顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK4;
STICKLINE(T1,A,A,9,0),COLORFF00FF;
波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK4;
STICKLINE(T2,B,B,9,0),COLORGREEN;
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA60:MA(CLOSE,60),COLORGREEN;
MA120:=MA(CLOSE,120),COLORLIMAGENTA;
MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;
vol5:=MA(VOL,5),COLORWHITE;
VOL10:=MA(VOL,10),COLORYELLOW;
VOL40:=MA(VOL,40),COLORFF00FF;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
ZJ:=AMOUNT/10000;{资金}
TM:=V-MA(V,10);{量填满}
{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;
STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW) 0.667,H,C,0.8,0),COLORBLUE;}
三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2)) =REF(L,3);
三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2)) REF(V,3));
三日价涨A:=C =REF(C,1);
三日价涨B:=C REF(C,1);
三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2)) =REF(L,3);
TIM:=IF(DATE 1140214,1,0);
缩倍柱:=(VOL*1.95 =REF(VOL,1))*TIM;
百日低量:=(VOL=LLV(VOL,100))*TIM;
倍量柱:=C REF(C,1)*1.04AND(VOL =1.9*REF(VOL,1))*TIM;
四日前倍量柱:=(REF(VOL,3) 1.9*REF(VOL,4))*TIM;
四日前高量柱:=(REF(VOL,3) =REF(VOL,4)ANDREF(VOL,3) 1.9*REF(VOL,4)AND三日量缩)*TIM;
前三引用不成立:=COUNT(REF(四日前倍量柱,1)AND(REF(三日不破,1)ORREF(三日价涨C,1)),3)=0ANDCOUNT(REF(四日前高量柱,1)AND(REF(三日不破,1)ORREF(三日价涨C,1)),3)=0;
倍量黄金柱:=四日前倍量柱AND三日量缩AND三日不破AND三日价涨AAND前三引用不成立;
高量黄金柱:=四日前高量柱AND三日量缩AND三日不破AND三日价涨AAND前三引用不成立;
黄金柱:=倍量黄金柱OR高量黄金柱;
次倍量黄金柱:=NOT(黄金柱)AND四日前倍量柱AND三日量缩AND三日不破AND三日价涨BAND前三引用不成立;
次高量黄金柱:=NOT(黄金柱)AND四日前高量柱AND三日量缩AND三日不破AND三日价涨BAND前三引用不成立;
次黄金柱:=次倍量黄金柱OR次高量黄金柱;
准倍量黄金柱:=NOT(黄金柱OR次黄金柱)AND四日前倍量柱AND((三日量缩AND三日价涨C)OR(COUNT(倍量柱,3) =1AND三日不破))AND前三引用不成立;
准高量黄金柱:=NOT(黄金柱OR次黄金柱)AND四日前高量柱AND(三日量缩AND三日价涨C)AND前三引用不成立;
准黄金柱:=准倍量黄金柱OR准高量黄金柱;
倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱)AND四日前倍量柱AND三日不破AND三日价涨AAND前三引用不成立;
高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱)AND四日前高量柱AND三日不破AND三日价涨AAND前三引用不成立;
将军柱:=倍量将军柱OR高量将军柱;
次倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱)AND四日前倍量柱AND三日不破AND三日价涨BAND前三引用不成立;
次高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱)AND四日前高量柱AND三日不破AND三日价涨BAND前三引用不成立;
次将军柱:=次倍量将军柱OR次高量将军柱;
准倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR次将军柱)AND四日前倍量柱AND三日价涨CAND前三引用不成立;
准高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR次将军柱)AND四日前高量柱AND三日价涨CAND前三引用不成立;
准将军柱:=准倍量将军柱OR准高量将军柱;
BACKSET100:=BACKSET(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR次将军柱OR准将军柱,4);
FILTER100:=FILTER(BACKSET100,3),NODRAW;
BACKSET101:=BACKSET(黄金柱,4);
FILTER101:=FILTER(BACKSET101,3);
BACKSET102:=BACKSET(次黄金柱,4);
FILTER102:=FILTER(BACKSET102,3);
BACKSET103:=BACKSET(准黄金柱,4);
FILTER103:=FILTER(BACKSET103,3);
BACKSET104:=BACKSET(将军柱,4);
FILTER104:=FILTER(BACKSET104,3);
BACKSET105:=BACKSET(次将军柱,4);
FILTER105:=FILTER(BACKSET105,3);
BACKSET106:=BACKSET(准将军柱,4);
FILTER106:=FILTER(BACKSET106,3);
黄金线下影线:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) =REF(L,3);
黄金线实体下端:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) =MIN(REF(C,3),REF(O,3))ANDMIN(MIN(L,REF(L,1)),REF(L,2)) REF(L,3),LINETHICK0;
黄金线上影线:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) =REF(H,3);
黄金线实体上端:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) =MAX(REF(C,3),REF(O,3))ANDREF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) REF(H,3);
黄金线实体中间:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) MAX(REF(C,3),REF(O,3))ANDREF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) MIN(REF(C,3),REF(O,3));
黄金线实体中间1:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) MAX(REF(C,3),REF(O,3))ANDREF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) MIN(REF(C,3),REF(O,3))ANDREF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));
黄金线实体中间2:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) MAX(REF(C,3),REF(O,3))ANDREF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) MIN(REF(C,3),REF(O,3))ANDREF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));
黄金线实体中间3:=REF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) MAX(REF(C,3),REF(O,3))ANDREF(FILTER100,3)=1ANDMIN(MIN(L,REF(L,1)),REF(L,2)) MIN(REF(C,3),REF(O,3))ANDL=MIN(MIN(L,REF(L,1)),REF(L,2));
T1:=count(v ref(v,1)*2,4)=1;
t2:=count(v ref(v,1)andl min(l,4)andl ref(l,1),3)=3;
t3:t1andt2;
BACKSET201:=BACKSET(黄金线下影线,4);
FILTER201:=FILTER(BACKSET201,3),NODRAW;
BACKSET202:=BACKSET(黄金线实体下端,4);
FILTER202:=FILTER(BACKSET202,3),NODRAW;
BACKSET203:=BACKSET(黄金线上影线,4);
FILTER203:=FILTER(BACKSET203,3),NODRAW;
BACKSET204:=BACKSET(黄金线实体上端,4);
FILTER204:=FILTER(BACKSET204,3),NODRAW;
BACKSET205:=BACKSET(黄金线实体中间,4);
FILTER205:=FILTER(BACKSET205,3),NODRAW;
BACKSET2051:=BACKSET(黄金线实体中间1,4);
FILTER2051:=FILTER(BACKSET2051,3),NODRAW;
BACKSET2052:=BACKSET(黄金线实体中间2,4);
FILTER2052:=FILTER(BACKSET2052,3),NODRAW;
BACKSET2053:=BACKSET(黄金线实体中间3,4);
FILTER2053:=FILTER(BACKSET2053,3),NODRAW;
BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER201));
BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER202));
BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER203));
BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER204));
BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER205));
BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2051));
BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2052));
BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2053));
最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT2053);
DAY1:=SUMBARS(FILTER100,1),NODRAW;
HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NODRAW;
HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;
HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NODRAW;
HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;
HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1 2,DRAWNULL,REF(LOW,DAY1-2))),0),NODRAW;
HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1 3,DRAWNULL,REF(LOW,DAY1-3))),0),NODRAW;
HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1 4,DRAWNULL,REF(LOW,DAY1-4))),0),NODRAW;
黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,NODRAW;
立桩量:=VOL=HHV(VOL,40)ANDVOL 1.9*REF(VOL,1);
立桩量三日:=IF(BARSLAST(立桩量)=1ANDCLOSE REF(HIGH,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE REF(HIGH,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE REF(HIGH,3),1,0)));
立桩量三日不破:=BARSLAST(立桩量)=3ANDREF(LOW,3) =MIN(MIN(C,REF(C,1)),REF(C,2));
BACKSET300:=BACKSET(立桩量三日不破,4);
BACKSET301:=BACKSET(立桩量三日突破,4);
立桩量成立:=FILTER(BACKSET300,3)ANDBACKSET301AND立桩量;
DRAWTEXT(立桩量成立,HIGH*1.01, ↙立桩量 ),COLOR00FF00;
DRAWTEXT(FILTER101,LOW*0.986, ↖黄金柱 ),COLORYELLOW;
STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;
DRAWTEXT(FILTER102,LOW*0.986, ↖次黄金柱 ),COLORYELLOW;
DRAWTEXT(FILTER104,LOW*0.986, ↖将军柱 ),COLORYELLOW;
STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW;
涨家数:INDEXADV,NODRAW,COLORLIMAGENTA;
跌家数:INDEXDEC,NODRAW,COLORGREEN;
公式解读:
[源码注释]通达信公式动态公式解读