当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:突破平台主图(通达信公式 主图 源码 测试图)
软件名称:[B]突破平台主图(通达信公式 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:分享版
软件大小:11.0 KB
官方主页:Home Page
更新时间:2024-11-25 00:15:25
软件简介:
突破平台主图
DRAWGBK(C>0,RGB(0,0,110),RGB(0,25,0),0,' ',0);
总涨幅:(H-LLV(L,180))/LLV(L,180)*100,NODRAW,COLORYELLOW;
DRAWKLINE(H,O,L,C);
GSPT1:=SUM((WINNER(C)*100),30)/30*0.1;
GSPT2:=SUM((WINNER(C)*100),20)/20*0.4;
GSPT3:=SUM((WINNER(C)*100),10)/10*0.3;
GSPT4:=SUM((WINNER(C)*100),5)/5*0.1;
GSPT5:=SUM((WINNER(C)*100),3)/3*0.1;
GSPTZ:=GSPT1+GSPT2+GSPT3+GSPT4+GSPT5;
赚钱效应:IF(GSPTZ>38,GSPTZ,GSPTZ*1.3),NODRAW;
活跃度:IF(SUMBARS(VOL,CAPITAL)<100,100-SUMBARS(VOL,CAPITAL),1),NODRAW;
获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),NODRAW;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0.99,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
高1:=HHV(H,150);
低1:=LLV(L,150);
高:REFDATE(高1,DATE),COLORLIGRAY,DOTLINE;
低:REFDATE(低1,DATE),COLORLIGRAY,DOTLINE;
高30:REFDATE(HHV(H,30),DATE),DOTLINE,COLORLIBLUE;
底30:REFDATE(LLV(L,30),DATE),DOTLINE,COLORLIRED;
MA5:MA(CLOSE,5),COLORWHITE,DOTLINE,LINETHICK1;
{九转}
AH:=HHV(H,60);
AL:=LLV(L,60);
A0:=(AH-AL)/21;
A11:=C>REF(C,4);
NT:=BARSLASTCOUNT(A11);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;
DRAWTEXT(AY>0,H+1.1*A0,VAR2STR(AY,0)),COLORYELLOW;
DRAWTEXT(NT=9,H+1.1*A0,'9'),COLORGREEN;
DRAWTEXT(NT=13,H+1.1*A0,'13'),COLORGREEN;
DRAWTEXT(NT=18,H+1.1*A0,'18'),COLORGREEN;
B11:=C<REF(C,4);
NT0:=BARSLASTCOUNT(B11);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;
DRAWTEXT(AY1>0,L-1*A0,VAR2STR(AY1,0)),COLORLIGREEN;
DRAWTEXT(NT0=9,H+1.1*A0,'9'),COLORYELLOW;
DRAWTEXT(NT0=13,H+1.1*A0,'13'),COLORYELLOW;
DRAWTEXT(NT0=18,H+1.1*A0,'18'),COLORYELLOW;
TJ1:=MAX(C,O)<REF(MAX(C,O),1) AND H>=REF(MAX(C,O),1) AND REF(H>MAX(C,O),1);
TJ2:=MAX(C,O)>REF(MAX(C,O),1) AND MAX(C,O)<=REF(H,1) AND H>MAX(C,O);
TJ:=TJ1 OR TJ2;
TJ3:=MAX(C,O)<REF(MAX(C,O),2) AND H>=REF(MAX(C,O),2);
TJ4:=MAX(C,O)>REF(MAX(C,O),2) AND MAX(C,O)<=REF(H,2) AND H>MAX(C,O);
TJA:=(TJ3 OT TJ4) AND TJ;
T:=BARSLAST(REF(TJ,1) AND TJA);
QF:=BACKSET(T=0,3);
QFT:=BARSLAST(CROSS(QF=1,0.5));
HH:=REF(HHV(H,QFT+1),T);
A01:=H<HH AND (HHV(H,QFT+1)-LLV(L,QFT+1))/LLV(L,QFT+1)*100<4.5;
ZD:=FILTERX(A01=1,QFT+1);
ZDT:=BARSLAST(ZD);
N1:DRAWLINE(QFT=0,REFX(HHV(H,QFT+1),BARSNEXT(ZDT=0)),ZDT=0 AND EVERY(A01=1,T+1) AND QFT>2,HHV(H,QFT+1),0),COLORYELLOW;
M1:DRAWLINE(QFT=0,REFX(LLV(L,QFT+1),BARSNEXT(ZDT=0)),ZDT=0 AND EVERY(A01=1,T+1)AND QFT>2,LLV(L,QFT+1),0),COLORYELLOW;
STICKLINE(QFT=0,N1,M1,0,0),COLORYELLOW;
STICKLINE(ZDT=0 ,N1,M1,0,0),COLORYELLOW;
{DRAWTEXT(T=0,N*1.02,'3K'),COLORYELLOW;};
N:=(0,1,1);
JBDDYXA:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);
JBDDYXB:=BACKSET(JBDDYXA=0 AND REF(JBDDYXA,1)=1,2);
JBDDYXC:=IF(JBDDYXB=1 AND REF(JBDDYXB,1)=0,-1,0);
JBGDYXA:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);
JBGDYXB:=BACKSET(JBGDYXA=0 AND REF(JBGDYXA,1)=1,2);
JBGDYXC:=IF(JBGDYXB=1 AND REF(JBGDYXB,1)=0,1,0);
QKPD:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));
JQTG:=BARSLAST(JBGDYXC=1);
JQDD:=BARSLAST(JBDDYXC=-1);
XZZQ:=LOWRANGE(L);
DZZQ:=TOPRANGE(H);
DBLAA:=IF(JBDDYXC=-1 AND REF(JQTG,1)>REF(JQDD,1) AND LLV(L,JQTG+1)<REF(LLV(L,JQTG+1),1),-1,0);
DBLAB:=IF(JBDDYXC=-1 AND REF(JQTG,1)<=REF(JQDD,1) AND (JQTG>=4 OR LLV(QKPD,JQTG)=-1 OR LLV(L,JQDD+2)<REF(LLV(L,JQDD+1),1)),-1,0);
DBLS:=IF((DBLAA=-1 OR DBLAB=-1) AND L<REF(H,JQTG+1),-1,0);
DTIME:=11;
A:=H=HHV(H,DTIME*5) AND HHV(H,DTIME*5)>REF(HHV(H,DTIME*5),1);
B:=L=LLV(L,DTIME*5) AND LLV(L,DTIME*5)<REF(LLV(L,DTIME*5),1);
CC1:=DRAWLINE(A,H,B,L,0),LINETHICK2,COLOR3300FF;
CC2:=DRAWLINE(B,L,A,H,0),LINETHICK2,COLOR3300FF;
YP:=IF((JQDD<4 AND HHV(QKPD,JQDD)=1) OR REF(DBLS,JQDD)=0,1,0);
PD:=IF(JBGDYXC=1 AND REF(JQDD,1)<=REF(JQTG,1) AND YP=1 AND DZZQ>REF(XZZQ,JQDD+1) AND DZZQ>REF(XZZQ,JQDD) AND DZZQ>REF(DZZQ,JQTG),1,0);
GBLA:=IF(JBGDYXC=1 AND REF(JQDD,1)>REF(JQTG,1) AND HHV(H,JQDD+1)>REF(HHV(H,JQDD+1),1),1,0);
GBLB:=IF(JBGDYXC=1 AND REF(JQDD,1)<=REF(JQTG,1) AND REF(DBLS,JQDD)=-1 AND (JQDD>=4 OR HHV(QKPD,JQDD)=1),1,0);
GBL:=IF((GBLA=1 OR GBLB=1 OR PD=1) AND H>REF(L,JQDD+1),1,0);
YPA:=IF((JQTG<4 AND HHV(QKPD,JQTG)!=1) OR REF(GBL,JQTG)=0,1,0);
PDA:=IF(JBDDYXC=-1 AND REF(JQTG,1)<=REF(JQDD,1) AND YPA=1 AND XZZQ>REF(DZZQ,JQTG+1) AND XZZQ>REF(DZZQ,JQTG) AND XZZQ>REF(XZZQ,JQDD),-1,0);
DBLA:=IF(JBDDYXC=-1 AND REF(JQTG,1)>REF(JQDD,1) AND LLV(L,JQTG+1)<REF(LLV(L,JQTG+1),1),-1,0);
DBLB:=IF(JBDDYXC=-1 AND REF(JQTG,1)<=REF(JQDD,1) AND (JQTG>=4 OR LLV(QKPD,JQTG)=-1 OR PDA=-1),-1,0);
DBL:=IF((DBLA=-1 OR DBLB=-1) AND L<REF(H,JQTG+1),-1,0);
JQTGA:=BARSLAST(GBL=1);
JQDDA:=BARSLAST(DBL=-1);
YPX:=IF((JQDDA<4 AND HHV(QKPD,JQDDA)=1) OR REF(DBL,JQDDA)=0,1,0);
PDX:=IF(JBGDYXC=1 AND REF(JQDDA,1)<=REF(JQTGA,1) AND YPX=1 AND DZZQ>REF(XZZQ,JQDDA+1) AND DZZQ>REF(XZZQ,JQDDA) AND DZZQ>REF(DZZQ,JQTGA),1,0);
GBLXA:=IF(JBGDYXC=1 AND REF(JQDDA,1)>REF(JQTGA,1) AND HHV(H,JQDDA+1)>REF(HHV(H,JQDDA+1),1),1,0);
GBLXB:=IF(JBGDYXC=1 AND REF(JQDDA,1)<=REF(JQTGA,1) AND REF(DBL,JQDDA)=-1 AND (JQDDA>=4 OR HHV(QKPD,JQDDA)=1),1,0);
GBLX:=IF((GBLXA=1 OR GBLXB=1 OR PDX=1) AND H>REF(L,JQDDA+1),1,0);
YPXA:=IF((JQTGA<4 AND HHV(QKPD,JQTGA)!=1) OR REF(GBLXA,JQTGA)=0,1,0);
PDXA:=IF(JBDDYXC=-1 AND REF(JQTGA,1)<=REF(JQDDA,1) AND YPXA=1 AND XZZQ>REF(DZZQ,JQTGA+1) AND XZZQ>REF(DZZQ,JQTGA) AND XZZQ>REF(XZZQ,JQDDA),-1,0);
DBLXA:=IF(JBDDYXC=-1 AND REF(JQTGA,1)>REF(JQDDA,1) AND LLV(L,JQTGA+1)<REF(LLV(L,JQTGA+1),1),-1,0);
DBLXB:=IF(JBDDYXC=-1 AND REF(JQTGA,1)<=REF(JQDDA,1) AND (JQTGA>=4 OR LLV(QKPD,JQTGA)=-1 OR PDXA=-1),-1,0);
DBLX:=IF((DBLXA=-1 OR DBLXB=-1) AND L<REF(H,JQTGA+1),-1,0);
JQTGYA:=BARSLAST(GBLX=1);
JQDDYA:=BARSLAST(DBLX=-1);
YPYX:=IF((JQDDYA<4 AND HHV(QKPD,JQDDYA)=1) OR REF(DBLX,JQDDYA)=0,1,0);
PDYX:=IF(JBGDYXC=1 AND REF(JQDDYA,1)<=REF(JQTGYA,1) AND YPYX=1 AND DZZQ>REF(XZZQ,JQDDYA+1) AND DZZQ>REF(XZZQ,JQDDYA) AND DZZQ>REF(DZZQ,JQTGYA),1,0);
GBLYXA:=IF(JBGDYXC=1 AND REF(JQDDYA,1)>REF(JQTGYA,1) AND HHV(H,JQDDYA+1)>REF(HHV(H,JQDDYA+1),1),1,0);
GBLYXB:=IF(JBGDYXC=1 AND REF(JQDDYA,1)<=REF(JQTGYA,1) AND REF(DBLX,JQDDYA)=-1 AND (JQDDYA>=4 OR HHV(QKPD,JQDDYA)=1),1,0);
GBLYX:=IF((GBLYXA=1 OR GBLYXB=1 OR PDYX=1) AND H>REF(L,JQDDYA+1),1,0);
YPYXA:=IF((JQTGYA<4 AND HHV(QKPD,JQTGYA)=1) OR REF(GBLYXA,JQTGYA)=0,1,0);
PDYXA:=IF(JBDDYXC=-1 AND REF(JQTGYA,1)<=REF(JQDDYA,1) AND YPYXA=1 AND XZZQ>REF(DZZQ,JQTGYA+1) AND XZZQ>REF(DZZQ,JQTGYA) AND XZZQ>REF(XZZQ,JQDDYA),-1,0);
DBLYXA:=IF(JBDDYXC=-1 AND REF(JQTGYA,1)>REF(JQDDYA,1) AND LLV(L,JQTGYA+1)<REF(LLV(L,JQTGYA+1),1),-1,0);
DBLYXB:=IF(JBDDYXC=-1 AND REF(JQTGYA,1)<=REF(JQDDYA,1) AND (JQTGYA>=4 OR LLV(QKPD,JQTGYA)=-1 OR PDYXA=-1),-1,0);
DBLYX:=IF((DBLYXA=-1 OR DBLYXB=-1) AND L<REF(H,JQTGYA+1),-1,0);
AAAD:=IF(GBLYX=1 AND DBLYX=-1 AND H>REF(H,REF(JQTGYA,1)+2),1,IF(GBLYX=1 AND DBLYX=-1 AND L<REF(L,REF(JQDDYA,1)+2),-1,0));
JDBL:=IF(AAAD=0,GBLYX+DBLYX,AAAD);
JBJD:=IF(JDBL=-1,L*0.99,IF(JDBL=1,H*1.01,DRAWNULL)),CIRCLEDOT,COLORLIMAGENTA;
{DRAWTEXT(JDBL=1,H*1.001,'卖'),COLORLIGREEN;
DRAWTEXT(JDBL=-1,L*0.999,'买'),COLORRED;}
C1:=DRAWLINE(JDBL=-1,JBJD,JDBL=1,JBJD,0),DOTLINE,COLORLIRED;
C2:=DRAWLINE(JDBL=1,JBJD,JDBL=-1,JBJD,0),DOTLINE,COLORLIBLUE;
JD:=IF(N=1,C2=C1 AND JBGDYXA AND JDBL=1,DRAWNULL);
Μ×:=IF(N=1,C2=C1 AND JBDDYXA AND JDBL=-1,DRAWNULL);
A1:=BARSLAST(JD);
B1:=CURRBARSCOUNT=CONST(A1)+1;
D1:=BARSLAST(B1);
SS1:=CONST(REF(H,D1));
A2:=REF(A1,A1+1)+A1+1;
B2:=CURRBARSCOUNT=CONST(A2)+1;
D2:=BARSLAST(B2);
SS2:=CONST(REF(H,D2));
A3:=REF(A2,A1+1)+A1+1;
B3:=CURRBARSCOUNT=CONST(A3)+1;
D3:=BARSLAST(B3);
SS3:=CONST(REF(H,D3));
DA1:=BARSLAST(Μ×);
DB1:=CURRBARSCOUNT=CONST(DA1)+1;
DD1:=BARSLAST(DB1);
Μ1:=CONST(REF(L,DD1));
DA2:=REF(DA1,DA1+1)+DA1+1;
DB2:=CURRBARSCOUNT=CONST(DA2)+1;
DD2:=BARSLAST(DB2);
Μ2:=CONST(REF(L,DD2));
DA3:=REF(DA2,DA1+1)+DA1+1;
DB3:=CURRBARSCOUNT=CONST(DA3)+1;
DD3:=BARSLAST(DB3);
Μ3:=CONST(REF(L,DD3));
SJXFDA:=Μ1<Μ2 AND SS2>SS1 AND DA2>A1 AND A1>DA1 AND A2>DA2 AND CONST(C)>Μ2;
ZSA1:=IF(SJXFDA AND CONST(C)<SS1,DB2,DRAWNULL);
STICKLINE(ZSA1,CONST(C),Μ2,0,0),COLORLIMAGENTA;
ZSA2:=IF(SJXFDA AND CONST(C)<SS1,ISLASTBAR,DRAWNULL);
STICKLINE(ZSA2,CONST(C),Μ2,0,0),COLORLIMAGENTA;
DRAWLINE(ZSA1=1,CONST(C),ZSA2=1,CONST(C),0),DOTLINE,COLORLIMAGENTA;
DRAWLINE(ZSA1=1,Μ2,ZSA2=1,Μ2,0),COLORLIMAGENTA;
ZSAC1:=IF(SJXFDA AND CONST(C)>=SS1,DB2,DRAWNULL);
STICKLINE(ZSAC1,SS1,Μ1,0,0),COLORLIMAGENTA;
ZSAC2:=IF(SJXFDA AND CONST(C)>=SS1,ISLASTBAR,DRAWNULL);
STICKLINE(ZSAC2,SS1,Μ1,0,0),COLORLIMAGENTA;
DRAWLINE(ZSAC1=1,SS1,ZSAC2=1,SS1,0),COLORLIMAGENTA;
DRAWLINE(ZSAC1=1,Μ1,ZSAC2=1,Μ1,0),COLORLIMAGENTA;
SJXFDB:=Μ1>Μ2 AND SS1>SS2 AND DA1>A1 AND A2>DA1 AND DA2>A2 AND CONST(C)<SS2;
ZSB1:=IF(SJXFDB AND CONST(C)>Μ1,B2,DRAWNULL);
STICKLINE(ZSB1,CONST(C),SS2,0,0),COLORLIGREEN;
ZSB2:=IF(SJXFDB AND CONST(C)>Μ1,ISLASTBAR,DRAWNULL);
STICKLINE(ZSB2,CONST(C),SS2,0,0),COLORLIGREEN;
DRAWLINE(ZSB1=1,SS2,ZSB2=1,SS2,0),COLORLIGREEN;
DRAWLINE(ZSB1=1,CONST(C),ZSB2=1,CONST(C),0),DOTLINE,COLORLIGREEN;
ZSBC1:=IF(SJXFDB AND CONST(C)<=Μ1,B2,DRAWNULL);
STICKLINE(ZSBC1,SS2,Μ1,0,0),COLORLIGREEN;
ZSBC2:=IF(SJXFDB AND CONST(C)<=Μ1,ISLASTBAR,DRAWNULL);
STICKLINE(ZSBC2,SS2,Μ1,0,0),COLORLIGREEN;
DRAWLINE(ZSBC1=1,SS2,ZSBC2=1,SS2,0),COLORLIGREEN;
DRAWLINE(ZSBC1=1,Μ1,ZSBC2=1,Μ1,0),COLORLIGREEN;
SJXSLA:=Μ1>Μ2 AND SS2>SS1 AND DA2>A1 AND A1>DA1 AND A2>DA2 AND CONST(C)>Μ1;
ZSC1:=IF(SJXSLA AND CONST(C)<SS1,DB2,DRAWNULL);
STICKLINE(ZSC1,CONST(C),Μ1,0,0),COLOR00CCFF;
ZSC2:=IF(SJXSLA AND CONST(C)<SS1,ISLASTBAR,DRAWNULL);
STICKLINE(ZSC2,CONST(C),Μ1,0,0),COLOR00CCFF;
DRAWLINE(ZSC1=1,CONST(C),ZSC2=1,CONST(C),0),DOTLINE,COLOR00CCFF;
DRAWLINE(ZSC1=1,Μ1,ZSC2=1,Μ1,0),COLOR00CCFF;
ZSCC1:=IF(SJXSLA AND CONST(C)>=SS1,DB2,DRAWNULL);
STICKLINE(ZSCC1,SS1,Μ1,0,0),COLOR00CCFF;
ZSCC2:=IF(SJXSLA AND CONST(C)>=SS1,ISLASTBAR,DRAWNULL);
STICKLINE(ZSCC2,SS1,Μ1,0,0),COLOR00CCFF;
DRAWLINE(ZSCC1=1,SS1,ZSCC2=1,SS1,0),COLOR00CCFF;
DRAWLINE(ZSCC1=1,Μ1,ZSCC2=1,Μ1,0),COLOR00CCFF;
SJXSLB:=Μ1>Μ2 AND SS1<SS2 AND DA1>A1 AND A2>DA1 AND DA2>A2 AND CONST(C)<SS1;
ZSD1:=IF(SJXSLB AND CONST(C)>Μ1,B2,DRAWNULL);
STICKLINE(ZSD1,CONST(C),SS1,0,0),COLORLICYAN;
ZSD2:=IF(SJXSLB AND CONST(C)>Μ1,ISLASTBAR,DRAWNULL);
STICKLINE(ZSD2,CONST(C),SS1,0,0),COLORLICYAN;
DRAWLINE(ZSD1=1,SS1,ZSD2=1,SS1,0),COLORLICYAN;
DRAWLINE(ZSD1=1,CONST(C),ZSD2=1,CONST(C),0),DOTLINE,COLORLICYAN;
ZSDC1:=IF(SJXSLB AND CONST(C)<=Μ1,B2,DRAWNULL);
STICKLINE(ZSDC1,SS1,Μ1,0,0),COLORLICYAN;
ZSDC2:=IF(SJXSLB AND CONST(C)<=Μ1,ISLASTBAR,DRAWNULL);
STICKLINE(ZSDC2,SS1,Μ1,0,0),COLORLICYAN;
DRAWLINE(ZSDC1=1,SS1,ZSDC2=1,SS1,0),COLORLICYAN;
DRAWLINE(ZSDC1=1,Μ1,ZSDC2=1,Μ1,0),COLORLICYAN;
N11:=2,200,13;
UR00:=2,200,6;
LR0:=2,200,6;
TC01:=IF(H=HHV(H,8*UR00),H,DRAWNULL);
TC02:=CONST(BARSLAST(TC01=H))+1;
UPPER:=CONST(IF(TC02=1,H,REF(H,TC02-1)));
BC1:=IF(L=LLV(L,8*LR0),L,DRAWNULL);
BC2:=CONST(BARSLAST(BC1=L))+1;
LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));
LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;
HP:=CURRBARSCOUNT<=TC02 AND H=UPPER;
NOD:=(IF(TC02>BC2,TC02,BC2)-IF(TC02>BC2,BC2,TC02));
LR1:=FORCAST(C,NOD+1);
NP:=IF(CURRBARSCOUNT<=MAX(BC2,TC02),CONST(IF(MIN(TC02,BC2)=1,LR1,REF(LR1,MIN(TC02,BC2)-1))),DRAWNULL),POINTDOT,COLORRED;
LR2:=SLOPE(C,NOD+1);
LR3:=CONST(IF(MIN(TC02,BC2)=1,LR2,REF(LR2,MIN(TC02,BC2)-1)));
FP:=NP-LR3*(NOD),POINTDOT,COLORYELLOW;
EQU:=(NP+FP)/2,POINTDOT,COLORWHITE;
AD:=ABS(NP-FP);
DBL0:=BARSLAST(BC1!=DRAWNULL)+1;
DBH:=BARSLAST(TC01!=DRAWNULL)+1;
BSP:=IF(BC2>TC02,DBL0,DBH)-1;
LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);
AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND H>LRL,H,LRL);
AT2:=HHV(AT1-LRL,MAX(BC2,TC02));
AT3:=CONST(BARSLAST(AT1-LRL=AT2));
AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));
AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));
ATL:=LRL+AT5;
UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND L<LRL,L,LRL);
UT2:=HHV(LRL-UT1,MAX(BC2,TC02));
UT3:=CONST(BARSLAST(LRL-UT1=UT2));
UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));
UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));
UTL:=LRL-UT5;
RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC02)-10,ATL,CONST(REF(ATL,MIN(BC2,TC02)-11)));
RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC02)-10,UTL,CONST(REF(UTL,MIN(BC2,TC02)-11)));
中轨:=IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLORBBBBBB;
上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORBLUE;
下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORLIMAGENTA;
[url=http://www.70822.com/soft/sort013/sort05/down-175659.html]突破平台主图(通达信公式 主图 源码 测试图)[/url]