VAR1A1:=C;
drawtext(买点1>0,L-0.15,'B'),LINETHICK2,ALIGN1,colorred;
drawtext(买点2>0,L-0.15,'B'),LINETHICK2,ALIGN1,COLORFF00FF;
drawtext(卖点1>0,H+0.05,'S'),LINETHICK2,ALIGN1,COLORYELLOW,valign2;
{最佳套利}
M1:=3;
M2:=19;
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
STICKLINE(A>B ,A ,B ,10 ,0 ),coloryellow;
STICKLINE(A<B ,B ,A ,10 ,0 ),colorblue;
MA1:MA(CLOSE,M1),coloryellow;
MA2:MA(CLOSE,M2),COLOR00ff00;
{操盘铁律}
YC:=REF(CLOSE,1);
止损价位:(YC*1.0035*97+0.1)/99.65,COLORRED,LINETHICK0;
DRAWTEXTABS(5,26,'★ ==============='),COLORRED;
DRAWTEXTABS(5,42,'操 '),COLORRED;
DRAWTEXTABS(5,58,'盘 '),COLORRED;
DRAWTEXTABS(5,74,'铁'),COLORRED;
DRAWTEXTABS(5,90,'律'),COLORRED;
DRAWTEXTABS(5,106,'★ ==============='),COLORRED;
DRAWTEXTABS(5,42,' 2:30以后'),colorYellow;
DRAWTEXTABS(5,58,' B点买入' ),colorYellow;
DRAWTEXTABS(5,74,' 止损价'+NUMTOSTR(止损价位)+'元'),colorYellow;
DRAWTEXTABS(5,90,' 线上工作线下休息'),color00FFFF;
E:=(HIGH+LOW+OPEN+2*CLOSE)/5;
明日阻力:=2*E-LOW;
明日支撑:=2*E-HIGH;
今日阻力:=REF(明日阻力 , 1);
今日支撑:=REF(明日支撑 , 1);
DRAWTEXTABS(125,42,'今日阻力'+NUMTOSTR(今日阻力)),ColorFFFF00;
DRAWTEXTABS(125,58,'今日支撑'+NUMTOSTR(今日支撑)),Colorred;
DRAWTEXTABS(5,10,BKNAME),COLOR00FFFF;