{www.gszb.com火车仓位管理}
MA10:MA(C,10)COLORWHITE,LINETHICK2;
MA30:MA(C,30)COLOR238E23,LINETHICK2;
MA60:MA(C,60)COLORGREEN,LINETHICK2;
MA120:MA(C,120)COLORCYAN,LINETHICK2;
IF(((MA60-MA120)>(REF(MA60,1)-REF(MA120,1))),MA120,DRAWNULL),COLORRED,LINETHICK2;
IF(((MA60-MA120)<(REF(MA60,1)-REF(MA120,1))),MA120,DRAWNULL),COLOR0099FF,LINETHICK2;
DRAWTEXT(C<MA60 AND C<MA10 AND C<MA30,H*1.08,'空'),COLOR238E23;
DRAWTEXT(C<MA60 AND C<MA120 AND C>MA10 AND C<MA30,H*1.08,'1/5'),COLORBLUE;
DRAWTEXT(C<MA60 AND C<MA120 AND C<MA10 AND C>MA30,H*1.08,'1/5'),COLORBLUE;
DRAWTEXT(C<MA60 AND C<MA120 AND ((MA60-MA120)<(REF(MA60,1)-REF(MA120,1))) AND C>MA10 AND C>MA30,H*1.08,'1/5'),COLORBLUE;
DRAWTEXT(C<MA60 AND C<MA120 AND ((MA60-MA120)>(REF(MA60,1)-REF(MA120,1))) AND C>MA10 AND C>MA30,H*1.08,'2/5'),COLORYELLOW;
DRAWTEXT(C>MA60 AND C<MA120 AND C<MA10 AND C<MA30,L*0.92,'1/5'),COLORBLUE;
DRAWTEXT(C>MA60 AND C<MA120 AND C>MA10 AND C<MA30,L*0.92,'1/2'),COLORYELLOW;
DRAWTEXT(C>MA60 AND C<MA120 AND C<MA10 AND C>MA30,L*0.92,'1/2'),COLORYELLOW;
DRAWTEXT(C>MA60 AND C<MA120 AND ((MA60-MA120)<(REF(MA60,1)-REF(MA120,1))) AND C>MA10 AND C>MA30,L*0.92,'4/5'),COLORFF00FF;
DRAWTEXT(C>MA60 AND C>MA120 AND ((MA60-MA120)>(REF(MA60,1)-REF(MA120,1))) AND C>MA10 AND C>MA30,L*0.92,'4/5'),COLORRED;
DRAWTEXT(C<MA60 AND C>MA120 AND C>MA10 AND C<MA30,H*1.08,'1/5'),COLORBLUE;
DRAWTEXT(C<MA60 AND C>MA120 AND C<MA10 AND C>MA30,H*1.08,'1/5'),COLORBLUE;
DRAWTEXT(C<MA60 AND C>MA120 AND C>MA10 AND C>MA30,H*1.08,'1/2'),COLORYELLOW;
DRAWTEXT(C>MA60 AND C>MA120 AND C<MA10 AND C<MA30,L*0.92,'1/5'),COLORBLUE;
DRAWTEXT(C>MA60 AND C>MA120 AND C>MA10 AND C<MA30,L*0.92,'1/2'),COLORYELLOW;
DRAWTEXT(C>MA60 AND C>MA120 AND C<MA10 AND C>MA30,L*0.92,'3/5'),COLORFF00FF;
DRAWTEXT(C>MA60 AND C>MA120 AND ((MA60-MA120)<(REF(MA60,1)-REF(MA120,1))) AND C>MA10 AND C>MA30,L*0.92,'4/5'),COLORFF00FF;
DRAWTEXT(C>MA60 AND C>MA120 AND ((MA60-MA120)>(REF(MA60,1)-REF(MA120,1))) AND C>MA10 AND C>MA30,L*0.92,'4/5'),COLORRED;
通达信火车仓位管理副图公式 源码
{www.gszb.com火车仓位管理}
MA10:MA(C,10)COLORWHITE,LINETHICK2;
MA30:MA(C,30)COLOR238E23,LINETHICK2;
MA60:MA(C,60)COLORGREEN,LINETHICK2;
MA120:MA(C,120)COLORCYAN,LINETHICK2;
IF(((MA60-MA120)>(REF(MA60,1)-REF(MA120,1))),MA120,DRAWNULL),COLORRED,LINETHICK2;
IF(((MA60-MA120)<(REF(MA60,1)-REF(MA120,1))),MA120,DRAWNULL),COLOR0099FF,LINETHICK2;
DRAWTEXT(C<MA60 AND C<MA10 AND C<MA30,H*1.08,'空'),COLOR238E23;
DRAWTEXT(C<MA60 AND C<MA120 AND C>MA10 AND C<MA30,H*1.08,'1/5'),COLORBLUE;
DRAWTEXT(C<MA60 AND C<MA120 AND C<MA10 AND C>MA30,H*1.08,'1/5'),COLORBLUE;
DRAWTEXT(C<MA60 AND C<MA120 AND ((MA60-MA120)<(REF(MA60,1)-REF(MA120,1))) AND C>MA10 AND C>MA30,H*1.08,'1/5'),COLORBLUE;
DRAWTEXT(C<MA60 AND C<MA120 AND ((MA60-MA120)>(REF(MA60,1)-REF(MA120,1))) AND C>MA10 AND C>MA30,H*1.08,'2/5'),COLORYELLOW;
DRAWTEXT(C>MA60 AND C<MA120 AND C<MA10 AND C<MA30,L*0.92,'1/5'),COLORBLUE;
DRAWTEXT(C>MA60 AND C<MA120 AND C>MA10 AND C<MA30,L*0.92,'1/2'),COLORYELLOW;
DRAWTEXT(C>MA60 AND C<MA120 AND C<MA10 AND C>MA30,L*0.92,'1/2'),COLORYELLOW;
DRAWTEXT(C>MA60 AND C<MA120 AND ((MA60-MA120)<(REF(MA60,1)-REF(MA120,1))) AND C>MA10 AND C>MA30,L*0.92,'4/5'),COLORFF00FF;
DRAWTEXT(C>MA60 AND C>MA120 AND ((MA60-MA120)>(REF(MA60,1)-REF(MA120,1))) AND C>MA10 AND C>MA30,L*0.92,'4/5'),COLORRED;
DRAWTEXT(C<MA60 AND C>MA120 AND C>MA10 AND C<MA30,H*1.08,'1/5'),COLORBLUE;
DRAWTEXT(C<MA60 AND C>MA120 AND C<MA10 AND C>MA30,H*1.08,'1/5'),COLORBLUE;
DRAWTEXT(C<MA60 AND C>MA120 AND C>MA10 AND C>MA30,H*1.08,'1/2'),COLORYELLOW;
DRAWTEXT(C>MA60 AND C>MA120 AND C<MA10 AND C<MA30,L*0.92,'1/5'),COLORBLUE;
DRAWTEXT(C>MA60 AND C>MA120 AND C>MA10 AND C<MA30,L*0.92,'1/2'),COLORYELLOW;
DRAWTEXT(C>MA60 AND C>MA120 AND C<MA10 AND C>MA30,L*0.92,'3/5'),COLORFF00FF;
DRAWTEXT(C>MA60 AND C>MA120 AND ((MA60-MA120)<(REF(MA60,1)-REF(MA120,1))) AND C>MA10 AND C>MA30,L*0.92,'4/5'),COLORFF00FF;
DRAWTEXT(C>MA60 AND C>MA120 AND ((MA60-MA120)>(REF(MA60,1)-REF(MA120,1))) AND C>MA10 AND C>MA30,L*0.92,'4/5'),COLORRED;