通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★
指标分类: 策略
画线方法: 副图
一、黄紫绿三线主图指标公式
a20:ma(c,20),colorwhite,linethick2;
ma120:ma(c,120),colorffcccc,linethick2;
ma250:ma(c,250),colorffcc66,linethick2;
乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;
tt1:=cross(ma20,ma120)andcross(ma20,ma250)andv>ref(v,1);
tt2:=ma20>ref(ma20,2)andv>ref(v,1)andcross(c,ma20);
STICKLINE(TT1,l,l-0.09,4,0),coloryellow;
DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;
STICKLINE(cross(c,ma120)andcross(c,ma250)and
cross(c,ma20),l,l-0.09,4,0),coloryellow;
DRAWTEXT(cross(c,ma120)andcross(c,ma250)andcross(c,ma20),l-0.13,'并线开花
'),coloryellow;
STICKLINE(tt2,l,l-0.09,4,0),coloryellow;
DRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;
STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;
DRAWTEXT(cross(c,乖离线),h+0.13,'卖点'),color00ff00;
STICKLINE(ma250>=ref(ma250,1)andma20>=ref(ma20,1)and
cross(c,ma250),l,l-0.09,4,0),colorffcc66;
DRAWTEXT(ma250>=ref(ma250,1)andma20>=ref(ma20,1)andcross(c,ma250),l-0.13,'
牛象'),colorffcc66;
STICKLINE(ma120>=ref(ma120,1)andcross(c,ma20)andcross(c,ma120)and
v>ref(v,1),l,l-0.09,4,0),colorff00ff;
DRAWTEXT(ma120>=ref(ma120,1)andcross(c,ma20)andcross(c,ma120)and
v>ref(v,1),l-0.13,'买点2'),colorff00ff;
A1:=SUM(AMOUNT,3)/SUM(VOL,3)/100;
A2:=SUM(AMOUNT,8)/SUM(VOL,8)/100;
A3:=SUM(AMOUNT,21)/SUM(VOL,21)/100;
DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26));
DEA:=EMA(DIFF,9);
macd:=2*(DIFF-DEA);
V1:=c-(a1+ma(c,3))/2;
V2:=c-(a2+ma(c,8))/2;
V3:=c-(a3+ma(c,21))/2;
Va1:=(C+v3-v1+macd);
Va4:=(C+v2-v1+macd);
短线:EMA(Va1,6),linethick2,Coloryellow;
H1:=IF(RANGE(DATE,1150501,1150701),H,DRAWNULL);
第一次:REF(H1,BARSLAST(FILTERX(H1=HHV(H1,0),BARSCOUNT(C)))),COLORRED;
H2:=IF(RANGE(DATE,1150701,1150901),H,DRAWNULL);
第二次:REF(H2,BARSLAST(FILTERX(H2=HHV(H2,0),BARSCOUNT(C)))),COLORYELLOW;
H3:=IF(RANGE(DATE,1150901,1160201),H,DRAWNULL);
第三次:REF(H3,BARSLAST(FILTERX(H3=HHV(H3,0),BARSCOUNT(C)))),COLORGREEN;
H1:=IF(RANGE(DATE,1150501,1150701),H,DRAWNULL);
G1:=REF(H1,BARSLAST(FILTERX(H1=HHV(H1,0),BARSCOUNT(C))));
H2:=IF(RANGE(DATE,1150701,1150901),H,DRAWNULL);
G2:=REF(H2,BARSLAST(FILTERX(H2=HHV(H2,0),BARSCOUNT(C))));
H3:=IF(RANGE(DATE,1150901,1160201),H,DRAWNULL);
G3:=REF(H3,BARSLAST(FILTERX(H3=HHV(H3,0),BARSCOUNT(C))));
xg:CROSS(C,G1)ORCROSS(C,G2)ORCROSS(C,G3);
STICKLINE(TIME2=94000AND
REF(C,BARSLAST(TIME2=94000))>=REF(C,BARSLAST(TIME2=93000)),DYNAINFO(3)*1.
1,DYNAINFO(3)*0.9,0.5,-1),COLORRED;
STICKLINE(TIME2=94000AND
REF(C,BARSLAST(TIME2=94000))<REF(C,BARSLAST(TIME2=93000)),DYNAINFO(3)*1.1,
DYNAINFO(3)*0.9,0.5,-1),COLORGREEN;
STICKLINE(TIME2=95000AND
REF(C,BARSLAST(TIME2=95000))>=REF(C,BARSLAST(TIME2=94000)),DYNAINFO(3)*1.
1,DYNAINFO(3)*0.9,0.5,-1),COLORRED;
STICKLINE(TIME2=95000AND
REF(C,BARSLAST(TIME2=95000))<REF(C,BARSLAST(TIME2=94000)),DYNAINFO(3)*1.1,
DYNAINFO(3)*0.9,0.5,-1),COLORGREEN;
STICKLINE(TIME2=100000AND
REF(C,BARSLAST(TIME2=100000))>=REF(C,BARSLAST(TIME2=95000)),DYNAINFO(3)*1
.1,DYNAINFO(3)*0.9,0.5,-1),COLORRED;
STICKLINE(TIME2=100000AND
REF(C,BARSLAST(TIME2=100000))<REF(C,BARSLAST(TIME2=95000)),DYNAINFO(3)*1.
1,DYNAINFO(3)*0.9,0.5,-1),COLORGREEN;
SJ1:=TIME2=93000;T1:=BARSLAST(SJ1);SJ2:=TIME2=94000;
SJ4:=TIME2=95000;T2:=BARSLAST(SJ2);T4:=BARSLAST(SJ4);
H1:=IF(TIME2=94000,REF(C,T2),DRAWNULL)=C;
H2:=IF(TIME2=95000,REF(C,T4),DRAWNULL)=C;
CS2:=CONST(REF(C,T2));
CS4:=CONST(REF(C,T4));
GL2:=FILTERX(H1,T2);
GL4:=FILTERX(H2,T4);
L1:=IF(TIME2=93000,REF(C,T1),DRAWNULL)=C;
CS1:=CONST(REF(C,T1));
GL1:=FILTERX(L1,T1);
DA:=CONST(IF(REF(GL2,BARSLAST(GL2)),REF(BARSLAST(GL1),BARSLAST(GL2)),DRAW
NULL));
DA1:=CONST(IF(REF(GL4,BARSLAST(GL4)),REF(BARSLAST(GL2),BARSLAST(GL4)),DRAW
NULL));
A:=IF(BARSLAST(GL1)>=0AND
BARSLAST(GL1)<=DA,((CS2-CS1)/DA)*BARSLAST(GL1)+CS1,DRAWNULL);
B:=IF(BARSLAST(GL2)>=0AND
BARSLAST(GL2)<=DA1,((CS4-CS2)/DA1)*BARSLAST(GL2)+CS2,DRAWNULL);
IF(A>=REF(A,1),A,DRAWNULL)COLORRED,LINETHICK3;
IF(A<REF(A,1),A,DRAWNULL)COLORGREEN,LINETHICK3;
IF(B>=REF(B,1),B,DRAWNULL)COLORRED,LINETHICK3;
IF(B<REF(B,1),B,DRAWNULL)COLORGREEN,LINETHICK3;
XSJ1:=TIME2=95000;
XT1:=BARSLAST(XSJ1);
XSJ2:=TIME2=100000;
XT2:=BARSLAST(XSJ2);
XCS2:=CONST(REF(C,XT2));
XL1:=IF(TIME2=95000,REF(C,XT1),DRAWNULL)=C;
XH1:=IF(TIME2=100000,REF(C,XT2),DRAWNULL)=C;
XCS1:=CONST(REF(C,XT1));
XGL1:=FILTERX(XL1,XT1);
XGL2:=FILTERX(XH1,XT2);
XDA:=CONST(IF(REF(XGL2,BARSLAST(XGL2)),REF(BARSLAST(XGL1),BARSLAST(XGL2)),
DRAWNULL));
XA:=IF(BARSLAST(XGL1)>=0AND
BARSLAST(XGL1)<=XDA,((XCS2-XCS1)/XDA)*BARSLAST(XGL1)+XCS1,DRAWNULL);
IF(XA>=REF(XA,1),XA,DRAWNULL)COLORRED,LINETHICK3;
IF(XA<REF(XA,1),XA,DRAWNULL)COLORGREEN,LINETHICK3;
时间:=TIME2=100000;
N:=BARSLAST(时间);
C1:CONST(IF(N,MAX(REF(HHV(H,0),N+1),DYNAINFO(4)),HHV(H,0))),DOTLINE,COLORRE
D;
C2:CONST(IF(N,MIN(REF(LLV(L,0),N+1),DYNAINFO(4)),LLV(L,0))),DOTLINE,COLORGREE
N;
C3:(C1+C2)/2,DOTLINE,COLORYELLOW;
VV:=HHV(V,0);
Z,:=(C1/C2-1)*100;
DRAWTEXT(CURRBARSCOUNT=30,C1*1.005,VARCAT(VARCAT(VARCAT(VARCAT('上
限:',VAR2STR(C1,2)),'元,'),VARCAT('振幅:',VAR2STR(Z,,2))),'%')),COLORRED;
DRAWTEXT(CURRBARSCOUNT=30,C3*1.005,VARCAT(VARCAT('中限:',VAR2STR(C3,2)),'
元')),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=30,C2*1.005,VARCAT(VARCAT('下限:',VAR2STR(C2,2)),'
元')),COLORGREEN;
DRAWTEXT(C1/C2=VV,C1*1.005,'★买入')COLORRED;
DRAWTEXT(C1/C2=VV,C2*0.998,'★卖出
')COLORGREEN;
STICKLINE(C1/C2=VV,C1,C2,1,0),COLORRED;
二、红绿线指标公式
{TTJ13650,200
TNB5157
TNS5157}
VR1:=0.1;
VR2:=0.1;
{0,COLORWHITE;}
CS1:=(2*CLOSE+HIGH+LOW)/4*(VR1+0.001);
CS2:=EMA(CS1,4)*(VR2);
CS3:=EMA(CS2,4);
CS4:=EMA(CS3,4);
JS0:=(CS4-REF(CS4,1))/REF(CS4,1)*100*(VR2);
短波0:=JS0;
JS1:=MA(JS0,2);
短波1:=JS1;
JS2:=MA(JS0,1);
短波2:=JS2;
红实波:=JS0>=0ANDJS0>REF(JS0,1),COLORRED;
红空波:=JS0>=0ANDJS0<=REF(JS0,1),COLORLIRED;
绿波:=JS0=JS2,COLORGREEN,NODRAW;
蓝波:=JS0<0ANDJS1<=JS2,COLORBLUE,NODRAW;
X1:=0.0;
Y1:=0.00;
DQ1:=0;{0左对齐,1右对齐}
JJ1:=0.05;{间距}
涨:=短波0>REF(短波0,1);
跌:=短波0<REF(短波0,1);
红涨:=红实波;
连涨:=BARSLAST(短波0>REF(短波0,1)ANDREF(短波0,1)<REF(短波0,2))*
涨+1*涨,COLORRED;
连跌:=BARSLAST(短波0REF(短波0,2))*
跌+1*跌,COLORGREEN,NODRAW;
红连涨:=BARSLAST(红实波ANDREF(红实波,1)=0)*红涨+1*红
涨,COLORFF00FF;
买:=CROSS(短波0,REF(短波0,1));
卖:=CROSS(-短波0,-REF(短波0,1));
红卖:=CROSS(-短波0,-REF(短波0,1))AND红空波;
连涨N:=IF(卖=1,REF(连涨,1),0);
连跌N:=IF(买=1,REF(连跌,1),0);
红连涨N:=IF(红卖=1,REF(红连涨,1),0);
连涨0:=IF(连涨>0,连涨,DRAWNULL),COLORRED,CIRCLEDOT;
连跌0:=IF(连跌>0,-连跌,DRAWNULL),COLORGREEN,CIRCLEDOT;
红连涨0:=IF(红连涨>0,红连
涨,DRAWNULL),COLORFF00FF,CIRCLEDOT,LINETHICK2;
IF(连涨>0,连涨,DRAWNULL),COLORRED,CIRCLEDOT;
IF(连跌>0,-连跌,DRAWNULL),COLORGREEN,CIRCLEDOT;
IF(红连涨>0,红连涨,DRAWNULL),COLORFF00FF,CIRCLEDOT,LINETHICK2;
久跌买:=连跌>=TNBANDC/REF(C,1)>1;
STICKLINE(久跌买ANDCOUNT(久跌买,TNB)=1,0,连跌0,1,0),COLORRED;{蓝
柱达到TN1天买入提示};
DRAWTEXT(久跌买ANDCOUNT(久跌买,TNB)=1,连跌0,'注意买'),COLORRED;
DRAWTEXT(久跌买ANDCOUNT(久跌买,TNB)=1ANDC>MA(C,20)AND
C>DKX,连跌0+2,'很准'),COLORMAGENTA;
久涨抛:=连涨>=TNSANDC/REF(C,1)<1.01;
STICKLINE(久涨抛ANDCOUNT(久涨抛,TNS)=1,0,连
涨,1,0),COLORGREEN;{红柱达到TN1天卖出提示};
DRAWTEXT(久涨抛ANDCOUNT(久涨抛,TNS)=1,连涨-1,'注意卖
'),COLORGREEN;
买强:=连涨-红连涨=3ORREF(连
跌,2)>=3)ANDL/DKX<1.03;
STICKLINE(买强,0,2,1,0),COLORMAGENTA;
DRAWTEXT(买强,1,'快速买'),COLORMAGENTA;
获利了结0:=(BARSLAST(买强=1)2AND
H/DKX>1.08)
OR(BARSLAST(买强=1)<=4AND连跌=1);
获利了结1:=EXIST(获利了结0,5)=0ANDBARSLAST(买强=1)=5;
STICKLINE(获利了结0OR获利了结1,0,-2,1,0),COLORGREEN;
DRAWTEXT(获利了结0OR获利了结1,-2,'快速卖'),COLORGREEN;
AL:=(C+L+H+O)/4;
A1:=EMA(AL,1)-EMA(AL,60);
A2:=(EMA(A1,3)-EMA(A1,20));
A3:=(EMA(A2,3)-EMA(A2,5))*100;
M5:SUM(A3,0);
DRAWBAND(M5,255,0,RGB(34,139,34));
M10:MA(M5,5);
M20:MA(M10,5);
STICKLINE(1,M5,M10,0,0),COLORBROWN;
DRAWKLINE(M5,REF(M5,1),REF(M5,1),M5);
YC2:=REF(CLOSE,2);
YC:=REF(CLOSE,1),LINETHICK0;
TJ:=YC>=YC2;
YH:=MAX(YC2,YC),LINETHICK0;
YL:=MIN(YC2,YC),LINETHICK0;
TH:=MAX(YC,CLOSE),LINETHICK0;
TL:=MIN(YC,CLOSE),LINETHICK0;
RH:=TH,LINETHICK0;
RL1:=IF(TJ=0,YH,MAX(TL,YL)),LINETHICK0;
RL:=IF(RL1>RH,RH,RL1),LINETHICK0;
GL:=TL,LINETHICK0;
GH1:=IF(TJ=0,MIN(YH,TH),YL),LINETHICK0;
GH:=IF(GH1<GL,GL,GH1),LINETHICK0;
BASE1:=IF(C<REF(C,1)ANDREF(C,1)<REF(C,2)ANDL<REF(L,1)AND
L>REF(L,2),REF(C,2),IF(C>REF(C,1),C,REF(C,1)));
TOWER:BASE1,LINETHICK0;
STICKLINE(GH>GL,GH,GL,2.5,0),COLOR008000;
STICKLINE(RH>RL,RH,RL,2.5,0),COLORRED;
STICKLINE(RH=RLANDGH=GL,RH,RL,2.5,0),COLORRED;
PAR2:=ROUND((TOWER/8)+0.5);
PAR1:=PAR2*0.03;
T4:=REF(TOWER,4),LINETHICK0;
T3:=REF(TOWER,3),LINETHICK0;
T2:=REF(TOWER,2),LINETHICK0;
T1:=REF(TOWER,1),LINETHICK0;
A:=RH-RL,LINETHICK0;
B:=GH-GL,LINETHICK0;
P1:=IF(A>2*B,1,0);
P2:=IF(B>2*A,1,0);
BUY:ABS(T1-T3)<=PAR1ANDABS(T2-T3)<=PAR1ANDP1=1,NODRAW;
SALE:=ABS(T1-T3)<=PAR1ANDABS(T2-T3)<=PAR1ANDP2=1;
SALE1:=SALEANDVOLREF(CLOSE,1)*0.965;
DRAWICON(BUY,0.99*LOW,1);
DRAWICON(SALE,HIGH*1.01,2);
DRAWICON(REF(SALE1,1)ANDP1=1,HIGH*1.01,9);
[源码注释]通达信公式动态翻译结果
X_37赋值:3*(收盘价-18日内最低价的最低值)/(18日内最高价的最高值-18日内最低价的最低值)*100的21日[1日权重]移动平均-2*(收盘价-18日内最低价的最低值)/(18日内最高价的最高值-18日内最低价的最低值)*100的20日[1日权重]移动平均的8日[1日权重]移动平均
X_38赋值:20
输出牛股:如果X_37上穿X_38,返回50,否则返回0
推荐阅读:三色k线主图指标
MA5:eMA(CLOSE,5);
MA20:eMA(CLOSE,20);
DRAWGBK(C>MA5,STRIP(rgb(0,0,200),rgb(0,140,0),0));
PARTLINE(ma5,ma5>ma20,rgb(255,0,0),ma5<ma20,1,rgb(0,0,0)),LINETHICK2;
DRAWICON(CROSS(ma5,ma20),l,1);
DRAWICON(CROSS(ma20,ma5),h*1.03,2);
{K线}
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0,0),COLOR00FF00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,7,0),COLOR009900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,5,0),COLOR00BB00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLOR00DD00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0),COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0),COLORFF22FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0),COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),COLORFFBBFF;
DRAWNUMBER(ISLASTBAR,C,C),COLORMAGENTA;
SJTJ:=DATE<1590301;
{主趋势线:EMA(EMA(C,10),10),COLORBLUE,LINETHICK3;
B:=主趋势线<REF(主趋势线,1);
IF(B-1,主趋势线,DRAWNULL)COLORRED,LINETHICK3;}
主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK3;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,DRAWNULL)COLORBLUE,LINETHICK3;
AA:=EMA(C,5)>EMA(C,20);
BB:=EMA(C,5)<EMA(C,20);
CC:=EMA(C,5)>EMA(C,10);
CC1:=EMA(C,5)<EMA(C,10);
DD:=CLOSE<OPEN;
STICKLINE(AAANDSJTJ,H,L,0,0),COLORRED;
STICKLINE(AAANDSJTJ,O,C,3,1),COLORRED;
STICKLINE(AAANDSJTJANDDD,O,C,3,0),COLORRED;
STICKLINE(BBANDSJTJ,H,L,0,0),COLORGREEN;
STICKLINE(BBANDSJTJ,O,C,3,1),COLORGREEN;
STICKLINE(BBANDSJTJANDDD,O,C,3,0),COLORGREEN;
STICKLINE(BBANDSJTJANDCC,H,L,0,1),COLORWHITE;
STICKLINE(BBANDSJTJANDCC,O,C,3,1),COLORWHITE;
STICKLINE(BBANDSJTJANDCCANDDD,O,C,3,0),COLORWHITE;
STICKLINE(AAANDSJTJANDCC1,H,L,0,0),COLORWHITE;
STICKLINE(AAANDSJTJANDCC1,O,C,3,1),COLORWHITE;
STICKLINE(AAANDSJTJANDCC1ANDDD,O,C,3,0),COLORWHITE;
最新价:IF(SJTJ,C,DRAWNULL),LINETHICK0,COLORYELLOW;
DD:=(H+L+2*C)/4;
M3:EMA(DD,3);
M8:EMA(DD,8);
M21:EMA(DD,21);
M55:EMA(DD,55),LINETHICK2,COLOR00FF00;
TT:=BARSCOUNT(C);
PT:=IF(TT<55,TT,55);
上:M55+2.1*STD(C,PT),COLORRED;
下:M55-2.1*STD(C,PT),COLOR00FF00;
月涨幅:=(C-LLV(C,20))/LLV(C,20)*100;
月跌幅:=(HHV(H,20)-C)/HHV(H,20)*100;
DRAWTEXT(CROSS(上,M3),上,'抛'),COLORYELLOW;
DRAWTEXT(CROSS(M3,下),下,'抄'),COLORYELLOW;
HH:=MAX(MAX(MAX(M3,M8),M21),M55);
LL:=MIN(MIN(MIN(M3,M8),M21),M55);
SXZH:=HH/LLREF(M3,1)
ANDM8>REF(M8,1)ANDM21>REF(M21,1)ANDM55>REF(M55,1);
SXZL:=HH/LL<=1.03ANDM3<REF(M3,1)
ANDM8<REF(M8,1)ANDM21<REF(M21,1)ANDM55<REF(M55,1);
向上:SXZHANDLHHAND月涨幅>月跌幅,NODRAW;
向下:SXZLANDH>LLANDC<LLAND月涨幅<月跌幅,NODRAW;
DRAWICON(向上,MIN(L,LL)*0.97,1);
DRAWICON(向下,MAX(H,HH)*1.03,2);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
做多:=IF(K>DANDMACD>0ANDV>1,2,0),COLORRED;
做空:=IF(K1,-2,0),COLOR00FF00;
强洗:=IF(MACD>0ANDK1,1,0),COLOR0099FF;
弱升:=IF(MACDDANDV>1,-1,0),COLORFFFF00;
CCI:="CCI.CCI";
DRAWICON(CCI>185ANDH>上,H*1.02,6);
DRAWICON(CCI<-185,L*0.98,5);
STICKLINE(做多,L,H,0.5,0),COLORRED;
STICKLINE(做多ANDC>=O,C,O,3,1),COLORRED;
STICKLINE(做多ANDC<O,C,O,3,0),COLORRED;
STICKLINE(做空,L,H,0.5,0),COLOR00FF00;
STICKLINE(做空ANDC>=O,C,O,3,1),COLOR00FF00;
STICKLINE(做空ANDC<O,C,O,3,0),COLOR00FF00;
STICKLINE(强洗,L,H,0.5,0),COLOR0099FF;
STICKLINE(强洗ANDC>=O,C,O,3,1),COLOR0099FF;
STICKLINE(强洗ANDC<O,C,O,3,0),COLOR0099FF;
STICKLINE(弱升,L,H,0.5,0),COLORFFFF00;
STICKLINE(弱升ANDC>=O,C,O,3,1),COLORFFFF00;
STICKLINE(弱升ANDC<O,C,O,3,0),COLORFFFF00;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.8,O,C,2,0),COLORRED;
STICKLINE(ZDF<-9.8,O,C,2,0),COLORBLUE;
IF(M3>M8,M3,DRAWNULL),COLORFFFF00;
IF(M8>M21,M8,DRAWNULL),COLORFFFF00;
IF(M21>M55,M21,DRAWNULL),COLORFFFF00;
IF(M55>REF(M55,1),M55,DRAWNULL),COLORRED,LINETHICK2;
每日公式解答:
公式编写要求:
前一日缩量涨停板(不是一字板);第二日巨量长阴,跌幅不超过3%的选股公式。
公式编写方法:
ZT:=IF(NAMELIKE('ST')ORNAMELIKE('*ST'),C=ZTPRICE(REF(C,1),0.05),
IF(CODELIKE('688')OR(CODELIKE('300')ANDDATE>=1200824),C=ZTPRICE(REF(C,1),0.2),
C=ZTPRICE(REF(C,1),0.1)));
XG:REF(ZTANDH!=LANDVREF(V,1)*3ANDC=0.97;
评论(0)