通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
天际: (MA(CLOSE,40)) + 2*STD(CLOSE,40),LINETHICK2,COLORBLUE;
海底: (MA(CLOSE,40)) - 2*STD(CLOSE,40),LINETHICK2,COLORBLUE;
决策①:EXPMA(CLOSE,12),CIRCLEDOT,COLORWHITE;
红持绿抛②:MA(CLOSE,25),COLORRED;
红持绿抛③:MA(CLOSE,30),COLORGREEN;DRAWBAND(红持绿抛②,RGB(255,0,0),红持绿抛③,RGB(0,255,0));
NOTEXT1:IF(CLOSE 买卖决策① AND CLOSE!=买卖决策①,买卖决策①,DRAWNULL),CIRCLEDOT,COLORRED;
NOTEXT2:IF(CLOSE 买卖决策① AND CLOSE!=买卖决策①,买卖决策①,DRAWNULL),CIRCLEDOT,COLORGREEN;
现价:=C,POINTDOT;
M3:MA(C,3);
持股13线:=EMA(CLOSE,13);
77线:=EMA(CLOSE,77);
翻锅99线:=EMA(CLOSE,99);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
AA:=EMA(CLOSE,10);
多头:=STICKLINE(DIF DEA,CLOSE,OPEN,2,0),COLORRED;
STICKLINE(DIF DEA,HIGH,LOW,0,0),COLORRED;
空头:=STICKLINE(DIF =DEA,CLOSE,OPEN,2,0),COLORGREEN;
STICKLINE(DIF =DEA,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(DIF =DEA AND AA MA(CLOSE,50),CLOSE,OPEN,2,0),COLORYELLOW;
STICKLINE(DIF =DEA AND AA MA(CLOSE,50),HIGH,LOW,0,0),COLORYELLOW;
DRAWTEXT(CROSS(DIF,DEA),LOW*0.995, 'B'),COLORYELLOW,LINETHICK3,;
DRAWTEXT(CROSS(DEA,DIF),HIGH*1.02, 'S'),COLORGREEN,LINETHICK3,;
A:=TROUGH(3,10,1);
B:=TROUGHBARS(3,10,1)=0;
画底线:DRAWLINE(B,A,B,A,1),COLORYELLOW;
D:=PEAK(3,10,1);
E:=PEAKBARS(3,10,1)=0;
画顶线:DRAWLINE(E,D,E,D,1),COLOR00FF00;
百分比:=10;{也可设立参数:百分比(5,30,10)}
误差:=2;{误差百分比}
允许误差:=误差/100+0.004;{也可设立参数:允许误差(0,0.02,0)}
波谷1距离:= 1+CONST(TROUGHBARS(2,百分比,1));
波谷值1: CONST(TROUGH(2,百分比,1));
波谷值2:= CONST(TROUGH(2,百分比,2));
波谷值3:= CONST(TROUGH(2,百分比/2,2));
波谷值4:= CONST(TROUGH(2,百分比*2,2));
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
HY1:=REF(EMA(V1,3),1);
多空趋势:=(MA((CLOSE - HY1) * 28,2))*0.1;
操盘4:STICKLINE(多空趋势 =0 AND 多空趋势 =REF(多空趋势,1),24,24+多空趋势,1.5,0),COLORRED;
减仓4:STICKLINE(多空趋势 =0 AND 多空趋势 REF(多空趋势,1),24,24+多空趋势,1.5,0), COLORRED;
反弹4:STICKLINE(多空趋势 0 AND 多空趋势 =REF(多空趋势,1),24,22+多空趋势,1.5,0),COLORGREEN;
寻底4:STICKLINE(多空趋势 0 AND 多空趋势 REF(多空趋势,1),24,24+多空趋势,1.5,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(多空趋势 =0,22,22.3),' 多空'),COLORWHITE;
换手:=V*100/CAPITAL;
:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
:V,COLORWHITE,NODRAW;
主力能量:(主力-均量)COLORMAGENTA,NODRAW;
大户能量:(大户-均量)COLORYELLOW,NODRAW;
中户能量:(中户-均量)COLORLIBLUE,NODRAW;
散户能量:(散户-均量)COLORBLUE,NODRAW;
操盘:STICKLINE(主力能量 =0 AND 主力能量 =REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORRED;
减仓:STICKLINE(主力能量 =0 AND 主力能量 REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORYELLOW;
反弹:STICKLINE(主力能量 0 AND 主力能量 =REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORGREEN;
寻底:STICKLINE(主力能量 0 AND 主力能量 REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(主力能量 =0,14.4,14.6),' '),COLORMAGENTA;
操盘1:STICKLINE(大户能量 =0 AND 大户能量 =REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORRED;
减仓1:STICKLINE(大户能量 =0 AND 大户能量 REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORYELLOW;
反弹1:STICKLINE(大户能量 0 AND 大户能量 =REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORGREEN;
寻底1:STICKLINE(大户能量 0 AND 大户能量 REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(大户能量 =0,9.6,9.8),' 大户'),COLORYELLOW;
操盘2:STICKLINE(中户能量 =0 AND 中户能量 =REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORRED;
减仓2:STICKLINE(中户能量 =0 AND 中户能量 REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORRED;
反弹2:STICKLINE(中户能量 0 AND 中户能量 =REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORGREEN;
寻底2:STICKLINE(中户能量 0 AND 中户能量 REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(中户能量 =0,4.8,5),' 中户'),COLORLIBLUE;
操盘3:STICKLINE(散户能量 =0 AND 散户能量 =REF(散户能量,1),0,散户能量,1.5,0),COLORRED;
减仓3:STICKLINE(散户能量 =0 AND 散户能量 REF(散户能量,1),0,散户能量,1.5,0),COLORRED;
反弹3:STICKLINE(散户能量 0 AND 散户能量 =REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;
寻底3:STICKLINE(散户能量 0 AND 散户能量 REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(散户能量 =0,-0.3,0.3),' 散户'),COLORBLUE;
JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));{4,9,17,34日换手偏离值均分成交量}
ZLCJ:=JZ*ABS(主力能量);{4日换手偏离均量值换算当日成交量}
DHCJ:=JZ*ABS(大户能量);{9日换手偏离均量值换算当日成交量}
ZHCJ:=JZ*ABS(中户能量);{17日换手偏离均量值换算当日成交量}
SHCJ:=JZ*ABS(散户能量);{34日换手偏离均量值换算当日成交量};
:VOL/CAPITAL*100,LINETHICK0;
机构量:=ZLCJ,COLORMAGENTA,NODRAW;
大户量:=DHCJ,COLORYELLOW,NODRAW;
中户量:=ZHCJ,COLORLIBLUE,NODRAW;
散户量:=SHCJ,COLORBLUE,NODRAW;
DRAWBAND(-100,RGB(0,250,0),"CCI.CCI",RGB(250,0,0));
DRAWBAND(100,RGB(0,0,0),-100,RGB(0,0,0));
CCI:"CCI.CCI";
DRAWBAND(100,RGB(250,0,0),100,RGB(250,0,0)),DOTLINE;
DRAWBAND(-100,RGB(250,0,0),-100,RGB(250,0,0)),DOTLINE;
公式解读:
二、趋势通道画线指标公式N:=5;N2:=26;
LC:=REF(CLOSE,1);
RSI0:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100-50;
R1:MEMA(RSI0,3),COLORWHITE;
IF(R1 REF(R1,1)*1.01,R1 ,DRAWNULL),COLORRED;
IF(R1 REF(R1,1),R1 ,DRAWNULL),COLORBLUE;
R2:MEMA(R1,2),COLORYELLOW;
STICKLINE(R1 R2,R1,R2,0.3,0),COLORLIMAGENTA;
RSI1:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100-50;
Q1:MEMA(RSI1,3);
IF(Q1 REF(Q1,1),Q1 ,DRAWNULL),COLORLIRED;
IF(Q1 REF(Q1,1),Q1 ,DRAWNULL),COLORLIGREEN;
Q2:MEMA(Q1,2),COLORBROWN;
IF(Q2 REF(Q2,1), Q2,DRAWNULL),COLORLIGRAY,LINETHICK2;
IF(Q2 REF(Q2,1),Q2 ,DRAWNULL),COLORCYAN;
INPUT:N(240,0,999);
hh:=hhv(h,N);
hhh:=h;
aa:=BARSLAST(h=hh[datacount]);
ba:datacount-aa,LINETHICK0;
ja:=1;
tm1:=999999;
for i1=ba[datacount]+1 to datacount do begin
k1:=(hh[datacount]-hhh[i1])/ja;
if k1 tm1 then begin
tm1:=k1;
ts1:=ja;
end;
ja:=ja+1;
end;
A1:LINEVALUE(h=hh[datacount] and aa=0,h,BARPOS=datacount-aa[datacount]+ts1,h,0,0),colorffff54;
cha:=hhv(abs(l-a1),aa);
A2:a1-cha[datacount],colorffff54;
AI:a1-cha[datacount]/2,colorffff54,LINEDASH;
ll:=llv(l,N);
lll:=l;
a3:=BARSLAST(l=ll[datacount]);
b3:=datacount-a3;
j3:=1;
tm3:=999999;
for i3=b3[datacount]+1 to datacount do begin
k3:=(lll[i3]-ll[datacount])/j3;
if k3 tm3 then begin
tm3:=k3;
ts3:=j3;
end;
j3:=j3+1;
end;
B1:LINEVALUE(l=ll[datacount] and a3=0,l,BARPOS=datacount-a3[datacount]+ts3,l,0,0),color5454ff;
chb:=hhv(abs(h-b1),a3);
b2:b1+chb[datacount],color5454ff;
bi:b1+chb[datacount]/2,color5454ff,LINEDASH;
N1:=6; N2:=12; N3:=24;
RSI1:SMA(MAX((C+L)/2-REF((C+H)/2,1),0),N1,1)/SMA(ABS((C+L)/2-REF((C+H)/2,1)),N1,1)*100;
RSI2:SMA(MAX((C+L)/2-REF((C+H)/2,1),0),N2,1)/SMA(ABS((C+L)/2-REF((C+H)/2,1)),N2,1)*100;
RSI3:SMA(MAX((C+L)/2-REF((C+H)/2,1),0),N3,1)/SMA(ABS((C+L)/2-REF((C+H)/2,1)),N3,1)*100;
RSI4:SMA(MAX((C+H)/2-REF((C+L)/2,1),0),N1,1)/SMA(ABS((C+H)/2-REF((C+L)/2,1)),N1,1)*100-50;
RSI5:SMA(MAX((C+H)/2-REF((C+L)/2,1),0),N2,1)/SMA(ABS((C+H)/2-REF((C+L)/2,1)),N2,1)*100-50;
RSI6:SMA(MAX((C+H)/2-REF((C+L)/2,1),0),N3,1)/SMA(ABS((C+H)/2-REF((C+L)/2,1)),N3,1)*100-50;
N:=14;
LC:=REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;
DRAWLINE(RSI =HHV(RSI,10),RSI,RSI =LLV(RSI,3),HHV(RSI,3),1),COLORFF6000,LINETHICK1;
AA0:=REF(RSI,N)=HHV(RSI,2*N+1);
QY0:=BACKSET(AA0,N+1);
CC0:=FILTER(QY0,N) AND RSI=HHV(RSI,N+1);
DRAWICON(CC0,RSI,2);
AA1:=REF(RSI,N)=LLV(RSI,2*N+1);
QY1:=BACKSET(AA1,N+1);
CC1:=FILTER(QY1,N) AND RSI=LLV(RSI,N+1);
DRAWICON(CC1,RSI,1);
Q:=5;
AA:=REF(RSI,Q)=HHV(RSI,2*Q+1);
BB:=FILTER(AA,Q);
CC:=BACKSET(BB,Q+1);
DD:=FILTER(CC,Q);
AAA:=REF(RSI,Q)=LLV(RSI,2*Q+1);
BBB:=FILTER(AAA,Q);
CCC:=BACKSET(BBB,Q+1);
DDD:=FILTER(CCC,Q);
R11:=BACKSET(ISLASTBAR,BARSLAST(DD)+1);
S11:=R11 REF(R11,1);
压力:DRAWLINE(DD,RSI,S11,RSI,1),LINETHICK1,COLOR00FF00;
T11:=BACKSET(ISLASTBAR,BARSLAST(DDD)+1);
U11:=T11 REF(T11,1);
支撑:DRAWLINE(DDD,RSI,U11,RSI,1),LINETHICK1,COLOR0088FF;
公式解读:
[源码注释]通达信公式动态公式解读输出股东总人数:引用1号ID的序列数据,NODRAW
BB赋值:如果股东总人数不等于1日前的股东总人数,返回股东总人数,否则返回1
CC赋值:如果数据位置状态=2,返回1,否则返回0
输出NOTEXT1:当满足条件BB=股东总人数ORCC时以股东总人数位置为顶点画折线连接,COLOR00FFFF,线宽为2
输出NOTEXT2:如果BB=股东总人数,返回股东总人数,否则返回无效数,COLORFF00FF,POINTDOT,线宽为5
输出人均持股:引用239号ID的序列数据/引用242号ID的序列数据
输出股东人数:引用242号ID的序列数据
MA7:EMA(CLOSE,7),COLORFFFFFF;
MID:MA(CLOSE,20),COLORYELLOW;
UPPER:MID+2*STD(CLOSE,20),COLORRED,DOTLINE;
LOWER:MID-2*STD(CLOSE,20),COLORGREEN,DOTLINE;
N:=14;
M:=6;
WTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD 0 HD LD,HD,0),N);
DMM:=EXPMEMA(IF(LD 0 LD HD,LD,0),N);
PDI:DMP*100/WTR;
MDI:DMM*100/WTR;
ADX:EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:EXPMEMA(ADX,M);
RSI:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100,COLORWHITE;
A1:=REF(RSI,2)=HHV(RSI,2*2+1);
B1:=FILTER(A1,2);
C1:=BACKSET(B1,2+1);
D1:=FILTER(C1,2);{高}
A2:=REF(RSI,2)=LLV(RSI,2*2+1);
B2:=FILTER(A2,2);
C2:=BACKSET(B2,2+1);
D2:=FILTER(C2,2);{低}
H1:=(D1ANDNOT(D2))ORBARSTATUS=2ORBARSCOUNT(C)=1;
L1:=(D2ANDNOT(D1));
H2:=D1ANDNOT(D2);
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1ANDCOUNT(L1,X1) 0,LLVBARS(IF(L1,L,10000),X1));
G1:=F1 REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1 REF(I1,1);{过滤后低点}
L2:=LDORBARSTATUS=2ORBARSCOUNT(C)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2ANDCOUNT(H2,X2) 0,HHVBARS(IF(H2,H,0),X2));
G2:=F2 REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2 REF(I2,1);{过滤后高点}
R1:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);
S1:=R1 REF(R1,1);{前一高}
R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);
S2:=R2 REF(R2,1);{前二高}
R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2);
S3:=R3 REF(R3,1);{前三高}
T1:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);
U1:=T1 REF(T1,1);{前一低}
T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);
U2:=T2 REF(T2,1);{前二低}
T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2);
压一:=DRAWLINE(S2,RSI,S1,RSI,1),COLOR00B5B9,COLORRED;{压力1}
压二:=DRAWLINE(S3,RSI,S2,RSI,1),COLOR009AFF;{压力2}
XG:CROSS(RSI,压一)ORCROSS(RSI,压二);
N:=14;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;
DRAWLINE(RSI =HHV(RSI,10),RSI,RSI =LLV(RSI,3),HHV(RSI,3),1),COLORFF6000,LINETHICK1;
AA0:=REF(RSI,N)=HHV(RSI,2*N+1);
QY0:=BACKSET(AA0,N+1);
CC0:=FILTER(QY0,N)ANDRSI=HHV(RSI,N+1);
DRAWICON(CC0,RSI,2);
AA1:=REF(RSI,N)=LLV(RSI,2*N+1);
QY1:=BACKSET(AA1,N+1);
CC1:=FILTER(QY1,N)ANDRSI=LLV(RSI,N+1);
DRAWICON(CC1,RSI,1);
Q:=5;
AA:=REF(RSI,Q)=HHV(RSI,2*Q+1);
BB:=FILTER(AA,Q);
CC:=BACKSET(BB,Q+1);
DD:=FILTER(CC,Q);
AAA:=REF(RSI,Q)=LLV(RSI,2*Q+1);
BBB:=FILTER(AAA,Q);
CCC:=BACKSET(BBB,Q+1);
DDD:=FILTER(CCC,Q);
R11:=BACKSET(ISLASTBAR,BARSLAST(DD)+1);
S11:=R11 REF(R11,1);
压力:DRAWLINE(DD,RSI,S11,RSI,1),LINETHICK1,COLOR00FF00;
T11:=BACKSET(ISLASTBAR,BARSLAST(DDD)+1);
U11:=T11 REF(T11,1);
支撑:DRAWLINE(DDD,RSI,U11,RSI,1),LINETHICK1,COLOR0088FF;
我的RSI:RSI,COLORFFFFFF;
IF(RSI 65,RSI,DRAWNULL),COLOR0000FF;
IF(RSI 35,RSI,DRAWNULL),COLORFF00FF;
CONST(RSI),COLOR00FFFF,DOTLINE;
M:=5;N1:=3;N2:=3;
LC:=REF(CLOSE,1);
RS1:=SMA(MAX(CLOSE-LC,0),M,1)/SMA(ABS(CLOSE-LC),M,1)*100;
:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
SM:MA(RS1,20),COLORFF00FF,NODRAW;
SU:SM+2*STD(RS1,20),COLORFFFF00,NODRAW;
SD:SM-2*STD(RS1,20),COLOR00FF00,NODRAW;
TR1:=MA(MAX(MAX((RS1-RS1),ABS(REF(RS1,1)-RS1)),ABS(REF(RS1,1)-RS1)),15);
VM:MA(RS1,N1),COLORFF00FF,NODRAW;
VU:VM+2.3*TR1,COLORFFFFFF,NODRAW;
VD:VM-2.1*TR1,COLOR00FFFF,NODRAW;
DRAWBAND(SU,RGB(0,170,140),SD,RGB(0,170,140));
DRAWBAND(VU,RGB(220,220,220),VD,RGB(220,220,220));
DRAWTEXT(ISLASTBARANDRSI REF(RSI,1),VM,27),COLORDD00FF;
DRAWTEXT(ISLASTBARANDRSI REF(RSI,1),VM,28),COLORCCEE00;
MA1:MA(RS1,N1),COLOR000000;
MA2:MA(RS1,N2),COLORFF0000,LINETHICK2;
RSI:RS1,COLORRED,LINETHICK2;
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK1;
长短5倍:=DRAWTEXT(长期/短期 5,(50),'5'),COLORFFFF00;
单针二十:=DRAWTEXT(短期 20AND长期 55,(80),'2'),COLORFFFF00;
四线小六:=DRAWTEXT(短期 6AND100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)) 6AND长期 6,(3),'6'),COLORFFFF00;
DRAWICON(单针二十,RSI*1.05,12);
DRAWICON(四线小六,RSI,9);
DRAWICON(长短5倍,RSI,15);
{1.重心线}
HH:=HHV(H,3);LL:=LLV(L,3);
ZXC:=WMA((2*C+HH+LL)/4,4);
ZXO:=REF(ZXC,1);
ZXC,COLOR00FF00,LINETHICK2;
IF(ZXC REF(ZXC,1),ZXC,DRAWNULL),COLORRED,LINETHICK3;
{2.重心K线--------可以加减大括弧-------}
STICKLINE(ZXO =ZXC,ZXO,ZXC,3,0),COLOR003300;
STICKLINE(ZXO =ZXC,ZXO,ZXC,2,0),COLOR005500;
STICKLINE(ZXO =ZXC,ZXO,ZXC,1,0),COLOR007700;
STICKLINE(ZXO =ZXC,ZXO,ZXC,0.5,0),COLOR009900;
STICKLINE(ZXO ZXC,ZXO,ZXC,3,0),COLOR0099FF;
STICKLINE(ZXO ZXC,ZXO,ZXC,2,0),COLOR0077FF;
STICKLINE(ZXO ZXC,ZXO,ZXC,1,0),COLOR0055FF;
STICKLINE(ZXO ZXC,ZXO,ZXC,0.5,0),COLOR0033FF;
{3.BOLL-金}
MID:MA(ZXC,18),COLOR00FFFF,DOTLINE;
UPPER:MID+1.8*STD(ZXC,18),COLORFF66FF;
LOWER:MID-1.8*STD(ZXC,18),COLORFF9900;
{4.高抛.低吸}
RC:=(H+L+C*2)/4;
R2D:=WMA(RC,27);
R2E:=STD(RC,27);
R3F:=(RC-R2D)/R2E*100;
R40:=WMA(R3F,3);
R41:=WMA(R40,3);
JD:=WMA(R41,2);
AJ:=3*R41-2*JD;
DRAWTEXT(CROSS(AJ,JD),L-0.2,'←买呗'),COLOR00FFFF,LINETHICK2;
DRAWTEXT(CROSS(JD,AJ),H+0.2,'←跑哇'),COLOR00FFFF,LINETHICK2;
公式编写要求:
前一日缩量板(不是一字板);第二日巨量长阴,跌幅不超过3%的公式。
公式编写方法:
ZT:=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),C=ZTPRICE(REF(C,1),0.05),
IF(CODELIKE('688') OR (CODELIKE('300') AND DATE =1200824),C=ZTPRICE(REF(C,1),0.2),
C=ZTPRICE(REF(C,1),0.1)));
XG:REF(ZT AND H!=L AND VREF(V,1)*3 AND C=0.97;