通达信指标公式源码生命线买卖— 副图源码
通达信指标公式源码 买卖监控 主图源码 无未来
MA5:MA(CLOSE,5);
短趋势:MA(CLOSE,13),COLORRED,LINETHICK2;
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250);
AA10:=MA(CLOSE,8);
AA12:=MA(CLOSE,12);
BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);
VAR01:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);
中期大底:=LLV(LOW,30),COLORCDFFBB;
短底:=EMA(VAR01,5);
支撑:=HHV(短底,60);
压力1:=HHV(LOW,20),COLORFAABEC;
中线:=MA(CLOSE,3);
天:=(MA(LOW,15) * 0.985);
人:=(MA(LOW,15) * 0.96);
地:=(((HIGH + LOW) + CLOSE) / 3);
B1:=HHV(地,(4 * 15));
B6:=LLV(地,(4 * 15));
B7:=(B1 - B6);
B8:=(MA(((地- B6) / B7),2) * 80);
VAR1:=(((CLOSE - LLV(LOW,100)) / (HHV(HIGH,100) - LLV(LOW,100))) * 200); 飞龙顶底线1:=SMA(VAR1,3,1);
VAR2:=SMA(飞龙顶底线1,3,1);
通达信副图指标公式源码大全
副图指标公式源码
1、百万踏浪(相传为杨百万看图公式)
N1:=9;N:=3;
V AR1:=REF(CLOSE,1);
标尺: SMA(MAX(CLOSE-V AR1,0),5,1)/SMA(ABS(CLOSE-V AR1),5,1)*100;
V AR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
V AR3:=SMA(V AR2,3,1);
V AR4:=SMA(V AR3,3,1);
V AR5:=SMA(V AR4,3,1);
浪: V AR3,COLORBLUE;
波: V AR4, COLORRED;
段: V AR5 ,COLORYELLOW;
V AR6:=CROSS(V AR3,VAR4) AND V AR4<25;
STICKLINE(V AR6,0,V AR4+15,5,0), COLORGREEN;
V AR7:=CROSS(V AR4,VAR5) AND V AR4<25;
V AR8:=V AR7 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2; STICKLINE(V AR7,0,V AR4+55,5,0),COLORWHITE;
DRAWTEXT(V AR7 AND COUNT(V AR7,10)=1,V AR4+25,'抄底'),COLORYELLOW; STICKLINE(V AR8,0,V AR4+15,5,0),COLORBLUE;
DRAWTEXT(V AR8 AND COUNT(V AR8,10)=1,V AR4-1,'放量'),COLORGREEN;
通达信指标公式源码 筹码趋势 副图源码
庄筹:=WINNER(CLOSE)*100,COLORRED, LINETHICK2;
筹码集中度:EMA(庄筹,20),COLORRED, LINETHICK1;
筹码集中警戒线:EMA(筹码集中度,5),COLORYELLOW, LINETHICK1;
筹码集中生命线:EMA(筹码集中警戒线,5),COLORBLUE, LINETHICK1;
STICKLINE(筹码集中度>筹码集中警戒线,筹码集中度,筹码集中警戒线,2,0),COLORRED; STICKLINE(筹码集中度<筹码集中警戒线,筹码集中度,筹码集中警戒线,2,0),COLORGREEN; STICKLINE(筹码集中警戒线>筹码集中生命线,筹码集中警戒线,筹码集中生命线,2,0),COLORFF00FF;
STICKLINE(筹码集中警戒线<筹码集中生命线,筹码集中警戒线,筹码集中生命线,2,0),COLORFFFF00;
A:=CROSS(筹码集中度,筹码集中警戒线);
B:=CROSS(筹码集中警戒线,筹码集中度);
DRAWICON(A,筹码集中度-0.1,10);
DRAWICON(B,筹码集中度+0.1,12);
通达信指标公式源码主力动向副图(主买主卖副图) 傻买傻卖公式
DRAWRECTREL(0,0,400,988,IF(120,RGB(10,0,0),0));
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
主买A:=ACTINVOL,COLORRED,NODRAW;
主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;
主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;
主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
【量能饱和】:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;
主力净买量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW;
大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;
主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;
主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLORCYAN,NO DRAW;
通达信指标公式源码 自用副图SSS买
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA1:=EMA(DIFF1,9);
MACD1:=200*(DIFF1-DEA1);
DIFF2:=EMA(CLOSE,4)-EMA(CLOSE,8); DEA2:=EMA(DIFF2,4);
MACD2:=200*(DIFF2-DEA2);
DIFF3:=EMA(CLOSE,2)-EMA(CLOSE,4); DEA3:=EMA(DIFF3,2);
MACD3:=200*(DIFF3-DEA3);
A1:=MACD1>REF(MACD1,1) AND MACD1>0; A2:=MACD2>REF(MACD2,1) AND MACD2>0; A3:=MACD3>REF(MACD3,1) AND MACD3>0; SSS买:A1 AND A2 AND A3;
操盘专用系统通达信指标公式源码
参数:显示仪表盘1 0 1 1
短线5日:EMA(C,5),COLOR00FF00,LINETHICK1;
红升5:IF(短线5日>REF(短线5日,1),短线5日,DRAWNULL),COLORFFFFFF,LINETHICK2; 绿降5:IF(短线5日<REF(短线5日,1),短线5
日,DRAWNULL)DOTLINE,COLORFFFFFF,LINETHICK1;
短线13日:EMA(C,13),COLOR00FF00,LINETHICK1;
升:IF(短线13日>REF(短线13日,1),短线13日,DRAWNULL),COLOR00E8E8,LINETHICK2; 降:IF(短线13日<REF(短线13日,1),短线13
日,DRAWNULL)DOTLINE,COLOR00FFFF,LINETHICK1;
操作线21日:EMA(C,21),COLOR00FF00,LINETHICK1;
红升:IF(操作线21日>REF(操作线21日,1),操作线21
日,DRAWNULL),COLOR0000FF,LINETHICK3;
绿降:IF(操作线21日<REF(操作线21日,1),操作线21
日,DRAWNULL)DOTLINE,COLOR00FF00,LINETHICK3;
生命线62日:EMA(C,62),COLORYELLOW,LINETHICK1,NODRAW;
红升4:IF(生命线62日>REF(生命线62日,1),生命线62
日,DRAWNULL),COLORFF00FF,LINETHICK2;
通达信指标公式源码 精准波段买卖副图指标
Z1:=STRCAT('【',STRCAT(CODE,STKNAME));
Z2:=STRCAT(' 行业:',HYBLOCK);
Z3:=STRCAT(' 地域:',DYBLOCK);
Z4:=STRCAT(STRCAT(' 概念:',GNBLOCK),'】');
Z5:=STRCAT(Z1,Z2);
Z6:=STRCAT(Z3,Z4);
Z7:=STRCAT(Z5,Z6);
DRAWTEXT_FIX(1,0,0.0,0,Z7),COLOR00EEEE;
DRAWTEXT_FIX(1,0,0.06,0,STRCAT('【风格:',STRCAT(FGBLOCK,'】'))),COLOREEEE00; EMA13:=EMA(C,13),COLORWHITE;
EMA21:=EMA(C,21),COLORYELLOW;
EMA34:=EMA(C,34),COLORFF00FF;
EMA60:=MA(C,60),COLORFFCC66;
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);
散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←观望'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←吃饱离场'),COLORGREEN; DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);
通达信指标公式源码大全
源码:
获利了结:EMA(EMA(EMA(HIGH,5),5),5)*1.15,COLORFFFFFF,LINETHICK1;风险: EMA(EMA(EMA(HIGH,5),5),5)*1.1,COLORYELLOW;
回档: EMA(EMA(EMA(HIGH,5),5),5)*1.05,COLOR00FF00;
平衡: EMA(EMA(EMA(HIGH,5),5),5),COLORFF00FF,LINETHICK1;
反弹: EMA(EMA(EMA(HIGH,5),5),5)*0.95,COLORGRAY,LINETHICK1;
超跌: EMA(EMA(EMA(HIGH,5),5),5)*0.9,COLORBLUE,LINETHICK1;
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3;
VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100; VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100; VAR7:=0;
VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100 ;
VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*10 0;
通达信公式指标源码通达信超级共振副图指标源码.docx
通达信超级共振副图指标源码
轴1:0,COLORYELLOW;
轴2:5,COLORWHITE,POINTDOT;
轴3:10,COLORWHITE,POINTDOT;
轴4:15Z COLORWHITE,POINTDOT;
轴5:20,COLORWHITE,POINTDOT;
轴6:25Z COLORWHITE Z POINTDOT;
轴7:30,COLORYELLOW;
{金兰三宝}
N:=9;
Nl:=6;
M: = 14;
AAATYP := (HIGH + LOW + CLOSE)/3;
AAAl:=(AAATYP-MA(AAATYP,M))/(0.015*AVEDEV(AAATYP,M)); C1:
=SMA(AAA1,3,1);
C2:=SMA(C1,3,1);
C3:=3*C1-2*C2;
CB1:=EMA(C3,5);
CB2:=REF(CB1,1);
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1Z1)/SMA(ABS(CLOSE-LC)Z N1,1)*100;
RSI:=(RSI1-5O)*5;
R1:=SMA(RSI,3,1);
D1:=SMA(R1,3,1);
J1:=3*R1-2*D1;
RR1:=EMA(J1,5);
RR2:=REF(RR1,1);
RR:=RR1>RR2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,3,1); Kl:=(K-50)*5;
K2:=SMA(K1,3,1);
通达信指标公式源码 线上阴线买经常涨停板
转发一个线上阴线买经常涨停板{主图:}
工作线:(EMA(C,14)),POINTDOT,LINETHICK3,COLOR22ACDE;
生命线:(MA(C,25)),LINETHICK1,COLORMAGENTA;
不惑线:(MA(C,40)),COLORCYAN,LINETHICK1;
姊妹线:(EMA(C,56)),POINTDOT,COLOR33CCDD,LINETHICK1;
A3:=EMA((((SLOPE(C,21)) * 20) + C),68);
A4:=EMA(C,10);
A5:=REF(C,2);
A6:=((SMA((MAX((C - A5),0)),6,1)) / (SMA(ABS((C - A5)),6,1))) * 100; A7:=IF(((A6 < (REF(A6,1))) AND (A6 > 79)),A6,0);
A8:=LLV(L,21);
A9:=HHV(H,21);
A10:=EMA((((CLOSE - A8) / (A9 - A8)) * 100),5);
A11:=EMA((((CLOSE - A8) / (A9 - A8)) * 50),13);
A12:=EMA(((0.667 * (REF(A10,1))) + (0.333 * A10)),2);
A13:=LLV(L,55);
A14:=HHV(H,34);
A15:=EMA((((C - A13) / (A14 - A13)) * 100),3);
A16:=(A11 + A15) / 2;
A17:=EMA(((0.667 * (REF(A15,1))) + (0.333 * A10)),2);
通达信指标公式源码 主力资金副图指标
ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3); ZSHTL:=SHCM/(ZLCM+SHCM)*100;
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;
ZCMZL:=MA(ZLCM+SHCM,13);
ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);
ZSHJJ:=EMA(ZSHTL,89);
ZZLJJ:=EMA(ZZLKP,89);
ZJLRQD:=INTPART(ZZLKP-ZZLJJ);
SH8:=EMA(ZSHTL,8);
DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);
STICKLINE(REF(ZSHTL,1)>90 AND ZSHTL<90,ZSHTL,0,4,0),COLOR9966FF; STICKLINE(C>0,ZSHTL,ZZLKP,0,0),COLOREEEEEE;
STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,1,0),COLORAAAAAA; STICKLINE(C>0,ZZLKP,0,3,0),COLORBLUE;
STICKLINE(ZZLKP>75,ZZLKP,0,3,0),COLORFFFFFF;
STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,3,0),COLORRED; STICKLINE(ZSHTL>=90,ZZLKP,0,3,0),COLORYELLOW;
通达信指标公式源码主力动向副图(主买主卖副图) 傻买傻卖公式
DRAWRECTREL(0,0,400,988,IF(120,RGB(10,0,0),0));
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
主买A:=ACTINVOL,COLORRED,NODRAW;
主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;
主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;
主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
【量能饱和】:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;
主力净买量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW;
大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;
主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;
主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLORCYAN,NO DRAW;
通达信指标公式源码主力动向副图(主买主卖副图) 傻买傻卖公式
DRAWRECTREL(0,0,400,988,IF(120,RGB(10,0,0),0));
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
主买A:=ACTINVOL,COLORRED,NODRAW;
主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;
主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;
主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
【量能饱和】:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;
主力净买量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW;
大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;
主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;
主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLORCYAN,NO DRAW;
通达信全仓买副图源码指标公式
STICKLINE(C>0,-100,150,100,0),COLOR334400;
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
短期底部:=LLV(OPEN,30);
K:SMA(RSV,3,1),COLORFFFFFF;
D:SMA(K,3,1),COLOR00FFFF;
J:3*K-2*D,COLOR33FF33;
AA10:=MA(CLOSE,10);
AA12:=MA(CLOSE,12);
BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);
BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);
MA13:=MA(CLOSE,13);
80,POINTDOT,COLOR00FF00,LINETHICK4;
VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);
VAR6:=MA(VAR5,3);
底部1:IF(VAR6 ,20,0),POINTDOT,COLORFFFF00,LINETHICK4;
通达信指标公式源码 短线买卖指标组合
1.投机指标
投机5:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORred;
投机10:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORwhite;
投机20:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORFF8000;
投机30:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLOR00FFFF;
抄底: IF(TROUGHBARS(2,5,1)=0 AND
HIGH>LOW+0.01,20,0),COLORFF66FF ,LINETHICK2 ;
卖出: IF(投机20>=100,30,0),LINETHICK2,COLORGREEN;
2.收藏很久
(N 1 100 5)
趋势线:
3*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,N,1),3,1);
见底: 10;
准备: IF(趋势线<=20,40,0);
买入: IF(CROSS(趋势线,见底),60,0),colorred;
卖出: IF(趋势线>=80,100,0);
3.绝对稳赚
(N 1 100 5)
Var1:=REF(CLOSE,2);
A2: SMA(MAX(CLOSE-Var1,0),N,1)/SMA(ABS(CLOSE-Var1),N,1)*100, COLORyellow;
通达信指标公式源码通达信主买卖盘控盘力度资金副图指标
通达信主买卖盘控盘力度资金副图指标
AB1:=VOL*CLOSE;{A} AB2:=SUM(AB1,1)/SUM(VOL,1);{B} AB3:=EMA(AB2,17);{B1}
AB4:=(C*2+H+L)/4*10;{V1B} AB5:=EMA(AB4,13)-EMA(AB4,34);{V2B}
AB6:=EMA(AB5,5);{V3B} AB7:=2*(AB5-AB6)*5.5;{V4B}
AB8:=(INDEXC*2+INDEXH+INDEXL)/4;{V8B} AB9:=EMA(AB8,13)-EMA(AB8,34);{V9B} AB10:=EMA(AB9,3);{VA} AB11:=(AB9-AB10)/2;{VB} 个股资金:=(AB2-AB3)*100/AB2;
主力资金:=AB7; 大资金:=AB11; 红点主力进场:IF(个股资金>0 AND 主力资金>0 AND 大资金>0,-10,DRAWNULL),COLORRED,CIRCLEDOT,LINETHICK1;
V1:=EMA(EMA(CLOSE,20),20);{V1} 力
度:=(V1-REF(V1,1))/REF(V1,1)*1000,COLORFF00FF,LINETHICK2;{控盘力度} 开始控
盘:IF(CROSS(力度,0),20,0),LINETHICK2,COLORYELLOW; 【庄控盘】:IF(力度>REF(力度,1) AND 力度>0,8,0),LINETHICK2,COLORRED; 白线主力减仓:IF(力度< REF(力度,1) AND 力度>0,力度,0),LINETHICK2,COLORWHITE; 绿点主力出场:IF(个股资金<=0 AND 主力资金<=0 AND 大资金<=0,-10,DRAWNULL),COLORGREEN,CIRCLEDOT,LINETHICK1; 主力动态:(个股资金+主力资金+大资金),COLORYELLOW,NODRAW; STICKLINE(主力动态>0,0,主力动态,1,0),COLORFF00FF; STICKLINE(主力动态<=0,0,ABS(主力动
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
生命线:MA(CLOSE,26),COLORRED,LINETHICK2;STICKLINE(C>=生命线AND C>=O,C,O,7,0),COLORRED;STICKLINE(C>=生命线AND C>=O,H,L,0,0),COLORRED;DP:=IF(C=INDEXC,0,1);GJ:=AMOUNT/V/100 ;
多头线:EMA(C,1.5),COLORYELLOW;空头线:EMA(C,5),COLOR00FF00;
均衡线:EMA(空头线,5),COLORWHITE;VARF1:=COUNT(CROSS(多头线,均衡线),2)=1; VARF2:=COUNT(CROSS(空头线,均衡线),2)=1;ZAI:=FILTER(VARF1 AND VARF2,2); DRAWTEXT(ZAI,均衡线*0.98,' 主力拉升'),COLOR00FF00;
MTM:=CLOSE-REF(CLOSE,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6); DY:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);
LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.8,O,C,6,0),COLORRED;STICKLINE(ZDF<-9.8,O,C,6,0),COLORBLUE; VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21)))); VAR2:=(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)); DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.998),8);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.013),9);DRAWTEXT(CROSS(VAR2,MA (VAR3,6)),(LOW * 0.984),'买'),COLOR4440FF;DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.035),'卖'),COLORFFFF34;
VARE1:=EMA(C,3);VARE2:=EMA(C,5);VARE3:=EMA(C,10);VAR4:=EMA(C,20);VAR5:=EM A(C,30);VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,1 5)*100;
VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6,
15)*100;VAR9:=EMA(VAR7,8);STICKLINE(VAR7<1*REF(VAR7,1),H,L,0.5,0),COLORBLUE; STICKLINE(VAR7<1*REF(VAR7,1),O,C,5,1),COLORBLUE;STICKLINE
(VAR7>1*REF(VAR7,1),H,L,0.5,0),COLORRED;STICKLINE(VAR7>1*REF(VAR7,1),O,C,5,1) ,COLORRED;STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),H,L,0.5,0),COLORGREEN;
STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),O,C,5,1),COLORGREEN;买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);STICKLINE(买进条
件,H,L,0.5,1),COLORWHITE,LINETHICK2; STICKLINE(买进条件,O,C,6,0),COLORWHITE,LINETHICK2;
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);STICKLINE(加码条件,H,L,0.5,1),COLORYELLOW,LINETHICK2; STICKLINE(加码条件,O,C,6,0),COLORYELLOW,LINETHICK;