通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信牛熊线主图指标公式
X_1:=FROMOPEN<240;
X_2:=X_1<=0;
X_3:=1;
X_4:=1281210;
X_5:=IF(DATE>X_4,X_2,X_3);
X_6:=IF(DATE>X_4,0,1);
X_7:=IF(DATE>X_4,1,0);
CLOSE;
DRAWGBK(OPEN>CLOSE,RGB(1,88,92),RGB(1,22,28),0,7,0);
X_8:=1ANDX_6;
X_9:=(XMA(XMA(HIGH,25),25)-
XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25);
X_10:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-
XMA(XMA(LOW,25),25))*1;
X_11:=X_8*(XMA(XMA(HIGH,60),60)-
XMA(XMA(LOW,60),60))*2.2+XMA(XMA(HIGH,60),60);
X_12:=X_8*XMA(XMA(LOW,60),60)-
(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.8;
X_13:=X_8*(X_9+X_11)/2;
X_14:=X_8*(X_10+X_12)/2;
DRAWBAND(X_13,RGB(0,100,0),X_11,RGB(0,100,0));
DRAWBAND(X_14,RGB(150,0,150),X_12,RGB(150,0,150));
收盘价:CLOSE,NODRAW,COLORWHITE;
涨最
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
跌幅:(CLOSE-
新
REF(CLOSE,1))/REF(CLOSE,1)*100,NODRAW,COLORYELLOW;
价:IF(CLOSE,CONST(CLOSE),DRAWNULL),DOTLINE,COLORRED;
X_15:=(HIGH+LOW)/2;
X_16:=X_15;
X_17:=XMA(X_15,3);
X_18:=XMA(X_15,5);
X_19:=XMA(X_15,10);
X_20:=XMA(X_15,15);
X_21:=XMA(X_15,20);
X_22:=XMA(X_15,25);
X_23:=XMA(X_15,30);
X_24:=XMA(X_15,35);
X_25:=XMA(X_15,40);
X_26:=XMA(X_15,45);
X_27:=XMA(X_15,50);
X_28:=XMA(X_15,55);
X_29:=XMA(X_15,60);
X_30:=(X_17+X_18+X_19+X_20+X_21+X_22+X_23+X_24+X_
25+X_26+X_27+X_28+X_29)/13;
X_31:=(X_16+X_17+X_18)/3;
X_32:=PLOYLINE(2>1,X_30);
X_33:=X_16>X_17ANDX_16>X_18ANDX_16>X_19AND
X_16>X_20ANDX_16>X_21ANDX_16>X_22ANDX_16>X_23
ANDX_16>X_24ANDX_16>X_25ANDX_16>X_26AND
X_16>X_27ANDX_16>X_28ANDX_16>X_29ANDX_17>X_18
ANDX_17>X_19ANDX_17>X_20ANDX_17>X_21AND
X_17>X_22ANDX_17>X_23;
X_34:=X_17>X_24ANDX_17>X_25ANDX_17>X_26AND
X_17>X_27ANDX_17>X_28ANDX_17>X_29ANDX_18>X_19
ANDX_18>X_20ANDX_18>X_21ANDX_18>X_22AND
X_18>X_23ANDX_18>X_24ANDX_18>X_25ANDX_18>X_26
ANDX_18>X_27ANDX_18>X_28ANDX_18>X_29AND
X_19>X_20ANDX_19>X_21ANDX_19>X_22ANDX_19>X_23
ANDX_19>X_24ANDX_19>X_25ANDX_19>X_26AND
X_19>X_27ANDX_19>X_28ANDX_19>X_29;
X_35:=X_20>X_21ANDX_20>X_22ANDX_20>X_23AND
X_20>X_24ANDX_20>X_25ANDX_20>X_26ANDX_20>X_27
ANDX_20>X_28ANDX_20>X_29ANDX_21>X_22AND
X_21>X_23ANDX_21>X_24ANDX_21>X_25ANDX_21>X_26
ANDX_21>X_27ANDX_21>X_28ANDX_21>X_29AND
X_22>X_23ANDX_22>X_24ANDX_22>X_25ANDX_22>X_26
ANDX_22>X_27ANDX_22>X_28ANDX_22>X_29AND
X_23>X_24ANDX_23>X_25;
X_36:=X_23>X_26ANDX_23>X_27ANDX_23>X_28AND
X_23>X_29ANDX_24>X_25ANDX_24>X_26ANDX_24>X_27
ANDX_24>X_28ANDX_24>X_29ANDX_25>X_26AND
X_25>X_27ANDX_25>X_28ANDX_25>X_29ANDX_26>X_27
ANDX_26>X_28ANDX_26>X_29ANDX_27>X_28AND
X_27>X_29ANDX_28>X_29;
X_37:=X_33ANDX_34ANDX_35ANDX_36;
X_38:=X_16<X_17ANDX_16<X_18ANDX_16<X_19AND
X_16<X_20ANDX_16<X_21ANDX_16<X_22ANDX_16<X_23
ANDX_16<X_24ANDX_16<X_25ANDX_16<X_26AND
X_16<X_27ANDX_16<X_28ANDX_16<X_29ANDX_17<X_18
ANDX_17<X_19ANDX_17<X_20ANDX_17<X_21AND
X_17<X_22ANDX_17<X_23;
X_39:=X_17<X_24ANDX_17<X_25ANDX_17<X_26AND
X_17<X_27ANDX_17<X_28ANDX_17<X_29ANDX_18<X_19
ANDX_18<X_20ANDX_18<X_21ANDX_18<X_22AND
X_18<X_23ANDX_18<X_24ANDX_18<X_25ANDX_18<X_26
ANDX_18<X_27ANDX_18<X_28ANDX_18<X_29AND
X_19<X_20ANDX_19<X_21;
X_40:=X_19<X_22ANDX_19<X_23ANDX_19<X_24AND
X_19<X_25ANDX_19<X_26ANDX_19<X_27ANDX_19<X_28
ANDX_19<X_29ANDX_20<X_21ANDX_20<X_22AND
X_20<X_23ANDX_20<X_24ANDX_20<X_25ANDX_20<X_26
ANDX_20<X_27ANDX_20<X_28ANDX_20<X_29AND
X_21<X_22;
X_41:=X_21<X_23ANDX_21<X_24ANDX_21<X_25AND
X_21<X_26ANDX_21<X_27ANDX_21<X_28ANDX_21<X_29
ANDX_22<X_23ANDX_22<X_24ANDX_22<X_25AND
X_22<X_26ANDX_22<X_27ANDX_22<X_28ANDX_22<X_29
ANDX_23<X_24ANDX_23<X_25ANDX_23<X_26AND
X_23<X_27;
X_42:=X_23<X_28ANDX_23<X_29ANDX_24<X_25AND
X_24<X_26ANDX_24<X_27ANDX_24<X_28ANDX_24<X_29
ANDX_25<X_26ANDX_25<X_27ANDX_25<X_28AND
X_25<X_29ANDX_26<X_27ANDX_26<X_28ANDX_26<X_29
ANDX_27<X_28ANDX_27<X_29ANDX_28<X_29;
X_43:=X_38ANDX_39ANDX_40ANDX_41ANDX_42;
X_44:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-
LLV(LOW,36))*100;
X_45:=SMA(X_14,3,1);
X_46:=SMA(X_45,3,1);
X_47:=SMA(X_46,3,1);
X_48:=X_46;
X_49:=X_47;
X_50:=X_46<20;
X_51:=X_46>80;
X_52:=X_50ORX_51;
STICKLINE(X_37ANDCLOSE>=OPENANDCLOSE<X_13*1.1
ANDX_52,HIGH,LOW,0.6,0),COLORRED;
STICKLINE(X_37ANDCLOSE>=OPENANDCLOSE<X_13*1.1
ANDX_52,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(X_43ANDCLOSE>=OPENANDCLOSE<X_13*1.1
ANDX_52,HIGH,LOW,0.6,0),COLORRED;
STICKLINE(X_43ANDCLOSE>=OPENANDCLOSE<X_13*1.1
ANDX_52,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(X_37ANDCLOSE<OPENANDCLOSE<X_14*1.1
ANDX_52,HIGH,LOW,0.6,0),COLORGREEN;
STICKLINE(X_37ANDCLOSE<OPENANDCLOSE<X_14*1.1
ANDX_52,CLOSE,OPEN,3,0),COLORGREEN;
STICKLINE(X_43ANDCLOSE<OPENANDCLOSE<X_14*1.1
ANDX_52,HIGH,LOW,0.6,0),COLORGREEN;
STICKLINE(X_43ANDCLOSE<OPENANDCLOSE<X_14*1.1
ANDX_52,CLOSE,OPEN,3,0),COLORGREEN;
X_53:=(HIGH+XMA(HIGH,3)+XMA(HIGH,5)+XMA(HIGH,10)
+XMA(HIGH,15)+XMA(HIGH,20)+XMA(HIGH,25)+XMA(HIGH,30
)+XMA(HIGH,35)+XMA(HIGH,40)+XMA(HIGH,45)+XMA(HIGH,5
0)+XMA(HIGH,55)+XMA(HIGH,60))/14;
X_54:=(LOW+XMA(LOW,3)+XMA(LOW,5)+XMA(LOW,10)+X
MA(LOW,15)+XMA(LOW,20)+XMA(LOW,25)+XMA(LOW,30)+XM
A(LOW,35)+XMA(LOW,40)+XMA(LOW,45)+XMA(LOW,50)+XMA(
LOW,55)+XMA(LOW,60))/14;
X_55:=X_20>X_21ANDX_20>X_22ANDX_20>X_23AND
X_20>X_24ANDX_20>X_25ANDX_20>X_26ANDX_20>X_27
ANDX_20>X_28ANDX_20>X_29ANDX_21>X_22AND
X_21>X_23ANDX_21>X_24ANDX_21>X_25ANDX_21>X_26
ANDX_21>X_27ANDX_21>X_28ANDX_21>X_29AND
X_22>X_23ANDX_22>X_24ANDX_22>X_25ANDX_22>X_26
ANDX_22>X_27ANDX_22>X_28ANDX_22>X_29AND
X_23>X_24ANDX_23>X_25ANDX_23>X_26ANDX_23>X_27
ANDX_23>X_28ANDX_23>X_29ANDX_24>X_25AND
X_24>X_26ANDX_24>X_27ANDX_24>X_28ANDX_24>X_29
ANDX_25>X_26ANDX_25>X_27ANDX_25>X_28AND
X_25>X_29ANDX_26>X_27ANDX_26>X_28ANDX_26>X_29
ANDX_27>X_28ANDX_27>X_29ANDX_28>X_29;
X_56:=X_20<X_21ANDX_20<X_22ANDX_20<X_23AND
X_20<X_24ANDX_20<X_25ANDX_20<X_26ANDX_20<X_27
ANDX_20<X_28ANDX_20<X_29ANDX_21<X_22AND
X_21<X_23ANDX_21<X_24ANDX_21<X_25ANDX_21<X_26
ANDX_21<X_27ANDX_21<X_28ANDX_21<X_29AND
X_22<X_23ANDX_22<X_24ANDX_22<X_25ANDX_22<X_26
ANDX_22<X_27ANDX_22<X_28ANDX_22<X_29AND
X_23<X_24ANDX_23<X_25ANDX_23<X_26ANDX_23<X_27
ANDX_23<X_28ANDX_23<X_29ANDX_24<X_25AND
X_24<X_26ANDX_24<X_27ANDX_24<X_28ANDX_24<X_29
ANDX_25<X_26ANDX_25<X_27ANDX_25<X_28AND
X_25<X_29ANDX_26<X_27ANDX_26<X_28ANDX_26<X_29
ANDX_27<X_28ANDX_27<X_29ANDX_28<X_29;
X_57:=XMA(X_53/X_54*X_30+(X_53/X_54*X_30-X_30),10);
X_58:=XMA(X_54/X_53*X_30-(X_30-X_54/X_53*X_30),10);
X_59:=IF(REF(X_30,1)<X_30
NOT(X_55),X_57,DRAWNULL);
X_60:=IF(REF(X_30,1)>X_30
NOT(X_56),X_58,DRAWNULL);
X_61:=XMA(X_53/X_54*X_30+(X_53/X_54*X_30-X_30)/2,10);
X_62:=XMA(X_54/X_53*X_30-0.5*(X_30-X_54/X_53*X_30),10);
X_63:=IF(REF(X_30,1)>X_30,X_61,DRAWNULL);
X_64:=IF(REF(X_30,1)<X_30,X_62,DRAWNULL);
X_65:=X_53/X_54*X_30+(X_53/X_54*X_30-X_30)*1.5;
X_66:=X_54/X_53*X_30-1.5*(X_30-X_54/X_53*X_30);
AND
AND
X_67:=PLOYLINE(2>1,X_65);
X_68:=PLOYLINE(2>1,X_66);
X_69:=IF(REF(X_30,1)<X_30ANDX_55,X_65,DRAWNULL);
X_70:=IF(REF(X_30,1)>X_30ANDX_56,X_66,DRAWNULL);
X_71:=IF(X_37,X_65,DRAWNULL);
X_72:=IF(X_43,X_66,DRAWNULL);
交时1:=FROMOPEN<240;
交时2:=交时1<=0;
交时3:=1;
DAYN1:=1281210;
定时1:=IF(DATE>DAYN1,交时2,交时3);
定时2:=IF(DATE>DAYN1,0,1);
定时3:=IF(DATE>DAYN1,1,0);
所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('
【行业】',HYBLOCK),STRCAT('【地域】',DYBLOCK)),STRCAT('【概
念】',GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0,0,0,所属板块),COLORYELLOW;
DRAWTEXT_FIX(1AND定时3,0.30,0.75,0,'如果看到这些文字,
说明【印钞机3代】指标公式试用已到期,如果认为对你炒股,炒原
油,炒外汇黄金'),COLORYELLOW;
DRAWTEXT_FIX(1AND定时3,0.30,0.81,0,'等期货有用,请加设
计编写QQ:2679426676,或者到股票公式指标群重新下载,(**号:
303313976)'),COLORYELLOW;
DRAWTEXT_FIX(1AND定时3,0.30,0.87,0,'【印钞机3代】必须
与副图的【印钞机副图3】MACD背离指标同步使用,则神效更准,
高胜算率。'),COLORYELLOW;
鬼头鬼脸鬼脚:IF(定时3,0,DRAWNULL),COLORBLUE;
KS:=(C-MA(C,13))/MA(C,13)*(-100);
RKS:=REF(KS,1);
MLS:=RKS/KS>=1.23ANDRKS>=8ANDC/REF(C,1)>=1.02;
反弹:STICKLINE(MLS=1,H,L,0,1),COLORMAGENTA,LINETHICK1;
STICKLINE(MLS=1,O,C,7,1),COLORMAGENTA,LINETHICK1;
顶:COST(98),COLORYELLOW;
拉升:COST(75),COLOR0066CC;
平均成本:COST(50),COLORGREEN;
控盘成本30:COST(30),COLORLIGRAY;
主力成本5:COST(5),COLORCYAN;
底:COST(0.05)COLORBLUE;
N:=10;
V1:=ISLASTBAR;
V2:=REF(HIGH,N)=HHV(HIGH,2*N+1);
V3:=FILTER(V2,N);
V4:=BACKSET(V3,N+1);
V5:=FILTER(V4,N);
V6:=V5ORV1;
V7:=REF(LOW,N)=LLV(LOW,2*N+1);
V8:=FILTER(V7,N);
V9:=BACKSET(V8,N+1);
VA:=FILTER(V9,N);
VB:=VAANDNOT(V5);
VC:=BACKSET(V6,REF(BARSLAST(VB),1)+1);
VD:=VC>REF(VC,1);
VE:=BACKSET(VD,2);
VF:=VE>REF(VE,1);
V10:=BACKSET(VF
V11:=V10>REF(V10,1);
V12:=BACKSET(V11AND
COUNT(V6,REF(BARSLAST(VB),1)+2)=0,REF(BARSLAST(VB),1)+2);
AND
COUNT(V6,REF(BARSLAST(VB),1)+2)=0,REF(BARSLAST(VB),1)+2);
V13:=V12>REF(V12,1);
V14:=IF(V6,COUNT(VB,REF(BARSLAST(V6),1)+1),0);
V15:=IF(V14=1ANDV6,BARSLAST(VF),0);
V16:=IF(V6
T(V11),BARSLAST(VF));
V17:=IF(V14=2ANDV6,V16,0);
V18:=IF(V14>=3
,0);
V19:=V15+V17+V18;
V1A:=BACKSET(V6,V19);
V1B:=V1A>REF(V1A,1);
V1C:=BACKSET(V1B,2);
V1D:=V1C>REF(V1C,1);
V1E:=V1DORV1;
V1F:=BACKSET(V1E,REF(BARSLAST(V6),1)+1);
V20:=V1F>REF(V1F,1);
V21:=BACKSET(V20,2);
V22:=V21>REF(V21,1);
V23:=BACKSET(V22
2);
V24:=V23>REF(V23,1);
V25:=BACKSET(V24
2);
V26:=V25>REF(V25,1);
V27:=IF(V1E,COUNT(V5,REF(BARSLAST(V1E),1)+1),0);
V28:=IF(V27=1ANDV1E,BARSLAST(V22),0);
AND
COUNT(V1E,REF(BARSLAST(V6),1)+2)=0,REF(BARSLAST(V6),1)+
AND
COUNT(V1E,REF(BARSLAST(V6),1)+2)=0,REF(BARSLAST(V6),1)+
ANDV6,IF(V6AND
REF(LOW,V16)>=REF(LOW,BARSLAST(V13)),BARSLAST(V13),V16)
AND
REF(LOW,BARSLAST(VF))>=REF(LOW,BARSLAST(V11)),BARSLAS
V29:=IF(V1E
AST(V24),BARSLAST(V22));
V2A:=IF(V27=2ANDV1E,V29,0);
V2B:=IF(V27>=3
9),0);
V2C:=V28+V2A+V2B;
V2D:=BACKSET(V1E,V2C);
V2E:=V2D>REF(V2D,1);
V2F:=BACKSET(V2E,2);
V30:=V2F>REF(V2F,1);
DRAWLINE(V1D,LOW,V30,HIGH,0),LINETHICK3;
DRAWLINE(V30,HIGH,V1D,LOW,0),LINETHICK3;
V31:=BACKSET(V1,BARSLAST(V1D)+1);
V32:=V31>REF(V31,1);
V33:=BACKSET(V1,BARSLAST(V30)+1);
V34:=V33>REF(V33,1);
V35:=IF(BARSLAST(V32)<BARSLAST(V34),V32,V34);
V36:=IF(BARSLAST(V32)<BARSLAST(V34),LOW,HIGH);
DRAWLINE(V35,V36,V1,CLOSE,0);
V37:=BACKSET(V1,BARSLAST(V1D)+1);
V38:=V37>REF(V37,1);
V39:=BACKSET(V38,REF(BARSLAST(V1D),1)+2);
V3A:=V39>REF(V39,1);
{DRAWLINE(V3A,LOW,V38,LOW,1);}
V3B:=BACKSET(V1,BARSLAST(V30)+1);
V3C:=V3B>REF(V3B,1);
V3D:=BACKSET(V3C,REF(BARSLAST(V30),1)+2);
V3E:=V3D>REF(V3D,1);
ANDV1E,IF(V1E
AND
REF(HIGH,BARSLAST(V22))<=REF(HIGH,BARSLAST(V24)),BARSL
AND
REF(HIGH,V29)<=REF(HIGH,BARSLAST(V26)),BARSLAST(V26),V2
{DRAWLINE(V3E,HIGH,V3C,HIGH,1);}
{前一低:REF(LOW,BARSLAST(V38)),COLORCCFF99,DOTLINE;
前二低:
REF(LOW,BARSLAST(V3A)),COLORMAGENTA,DOTLINE;
前一高:REF(HIGH,BARSLAST(V3C)),COLORCCFF99;
前二高:REF(HIGH,BARSLAST(V3E)),COLORMAGENTA;}
{以下语句是大盘指数显示}
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);
C1:=BACKSET(B1,3+1);D1:=FILTER(C1,3);{高点}
A2:=REF(LOW,3)=LLV(LOW,2*3+1);
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;{高低点出现在同一K线上时可作取舍}
H1:=(D1ANDNOT(D2ANDE1>=E2))ORISLASTBAROR
BARSCOUNT(CLOSE)=1;
L1:=(D2ANDNOT(D1ANDE1<E2));H2:=D1ANDNOT(D2
ANDE1>=E2);
X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1AND
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:=LDORISLASTBARORBARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2AND
COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);{过
滤后高点}
UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
B2:=FILTER(A2,3);
B1:=FILTER(A1,3);
常
1:=REF(INDEXC,BARSLAST(VV))/REF(CLOSE,BARSLAST(VV));
常
2:=REF(INDEXC,BARSLAST(XX))/REF(CLOSE,BARSLAST(XX));
{DRAWNUMBER(HD,HIGH*(1+0.002),2),COLORFF00FF;
数数
DRAWNUMBER(LD,LOW*(1.001-0.002),2),COLORFF00FF;}{有
未来函数};
{源码如下}
ZT:=C>REF(C,1)*1.098ANDC=HANDPERIOD=5;
DT:=C<REF(C,1)*0.902ANDC=LANDPERIOD=5;
STICKLINE(ZT,C,O,3.0,0),COLOR00BBFF;
STICKLINE(ZT,C,O,2.4,0),COLOR00CCFF;
STICKLINE(ZT,C,O,1.8,0),COLOR00DDFF;
STICKLINE(ZT,C,O,1.2,0),COLOR00EEFF;
STICKLINE(ZT,C,O,0.6,0),COLOR00FFFF;
STICKLINE(ZT,H,L,0.0,0),COLOR00FFFF;
STICKLINE(DT,C,O,3.0,0),COLOR00BB00;
STICKLINE(DT,C,O,2.4,0),COLOR00CC00;
STICKLINE(DT,C,O,1.8,0),COLOR00DD00;
STICKLINE(DT,C,O,1.2,0),COLOR00EE00;
STICKLINE(DT,C,O,0.6,0),COLOR00FF00;
STICKLINE(DT,H,L,0.0,0),COLOR00FF00;
STICKLINE(H=ZTPRICE(REF(C,1),0.1)
STICKLINE(L=DTPRICE(REF(C,1),0.1)
AND
AND
C<H
C>L
AND
AND
PERIOD=5,C,O,1,0),COLOR00FFFF;{盘中涨停实体K线上画细黄柱}
PERIOD=5,C,O,1,0),COLOR00FF00;{盘中跌停实体K线上画细绿柱}
二、通达信牵牛线主图指标公式
CV:=CLOSE;
BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
UPR:=BBIBOLL+6*STD(BBIBOLL,11);
DWN:=BBIBOLL-6*STD(BBIBOLL,11);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LO
W),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ
*(HIGH-LOW),0-VOL/2)));
HSL:=(XVL/3)/1.15;
攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击,3);
B1:=IF(SUM(LLJX,1)>REF(MA(SUM(LLJX,1),1),1),SUM(LLJX,1),DRAWNULL);
B2:=IF(SUM(LLJX,2)>REF(MA(SUM(LLJX,2),1),1),SUM(LLJX,2),DRAWNULL);
B3:=IF(SUM(LLJX,3)>REF(MA(SUM(LLJX,3),1),1),SUM(LLJX,3),DRAWNULL);
B4:=IF(SUM(LLJX,4)>REF(MA(SUM(LLJX,4),1),1),SUM(LLJX,4),DRAWNULL);
B5:=IF(SUM(LLJX,5)>REF(MA(SUM(LLJX,5),1),1),SUM(LLJX,5),DRAWNULL);
B6:=IF(SUM(LLJX,6)>REF(MA(SUM(LLJX,6),1),1),SUM(LLJX,6),DRAWNULL);
B7:=IF(SUM(LLJX,7)>REF(MA(SUM(LLJX,7),1),1),SUM(LLJX,7),DRAWNULL);
B8:=IF(SUM(LLJX,8)>REF(MA(SUM(LLJX,8),1),1),SUM(LLJX,8),DRAWNULL);
B9:=IF(SUM(LLJX,9)>REF(MA(SUM(LLJX,9),1),1),SUM(LLJX,9),DRAWNULL);
B10:=IF(SUM(LLJX,10)>REF(MA(SUM(LLJX,10),1),1),SUM(LLJX,10),DRAWNULL);
XG:B1ANDB2ANDB3ANDB4ANDB5ANDB6ANDB7ANDB8ANDB9ANDB10AND
(CLOSE-OPEN)>=(UPR-BBIBOLL)ANDV/REF(V,1)>=1.9
YM:EMA(SLOPE((CLOSE+HIGH+LOW)/3,24)*20+(CLOSE+HIGH+LOW)/3,40),COLORRED,LINETHICK1;
IF(EMA((CLOSE+HIGH+LOW)/3,3)>=YM,YM,DRAWNULL),DOTLINE,COLORRED;
IF(EMA((CLOSE+HIGH+LOW)/3,3)<=YM,YM,DRAWNULL),DOTLINE,COLORGREEN;
STICKLINE(EMA((CLOSE+HIGH+LOW)/3,3)>=YM,LOW,HIGH,0,0),COLORRED;
STICKLINE(EMA((CLOSE+HIGH+LOW)/3,3)>=YM,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(EMA((CLOSE+HIGH+LOW)/3,3)<=YM,LOW,HIGH,0,0),COLORGREEN;
STICKLINE(EMA((CLOSE+HIGH+LOW)/3,3)<=YM,CLOSE,OPEN,3,0),COLORGREEN;
MACD价格1:=EMA(CLOSE,3)-EMA(CLOSE,9);
DEA1021:=EMA((EMA(MACD价格1,102)-EMA(MACD价格1,204)),9);
DEA511:=EMA((EMA(MACD价格1,51)-EMA(MACD价格1,102)),9);
DEA36361:=EMA((EMA(MACD价格1,36)-EMA(MACD价格1,72)),9);
展开全⽂
DEA24241:=EMA((EMA(MACD价格1,24)-EMA(MACD价格1,48)),9);
DEA18181:=EMA((EMA(MACD价格1,18)-EMA(MACD价格1,36)),9);
DEA661:=EMA((EMA(MACD价格1,6)-EMA(MACD价格1,12)),9);
DEA331:=EMA((EMA(MACD价格1,3)-EMA(MACD价格1,9)),9);
DEA12121:=EMA((EMA(MACD价格1,12)-EMA(MACD价格1,24)),9);
MACD24241:=2*((EMA(MACD价格1,24)-EMA(MACD价格1,48))-DEA24241);
HH1:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,COLORBLUE,LINETHICK1;
LL1:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,COLORBLUE,LINETHICK1;
D90H1:=EMA(HH1,90),COLORRED,LINETHICK1;
D90L1:=EMA(LL1,90),COLORRED,LINETHICK1;
D901:=(D90H1+D90L1)/2;
Y1M:=EMA(SLOPE((CLOSE+HIGH+LOW)/3,24)*20+(CLOSE+HIGH+LOW)/3,48);
CCI151:=((HIGH+LOW+CLOSE)/3-MA((HIGH+LOW+CLOSE)/3,15))/(0.015*AVEDEV((HIGH+LOW+CLOSE)/3,15));
CCI101:=((HIGH+LOW+CLOSE)/3-MA((HIGH+LOW+CLOSE)/3,10))/(0.015*AVEDEV((HIGH+LOW+CLOSE)/3,10))
评论(0)