有时候用2个布林通道组合起来用,就不知道哪个是20日线还是55日线,求老师帮我把20和55这2个数字自动显示在布林通道线的后面
优化源码如下:
BOLL:MA(CLOSE,20),COLOR00FF00,DOTLINE;
UPPER:BOLL+2*STD(CLOSE,20),COLOR00FF00,DOTLINE;
LOWER:BOLL-2*STD(CLOSE,20),COLOR00FF00,DOTLINE;BOLL1:MA(CLOSE,55),COLORRED,DOTLINE;
UPPER1:BOLL1+2*STD(CLOSE,55),COLORRED,DOTLINE;
LOWER1:BOLL1-2*STD(CLOSE,55),COLORRED,DOTLINE; DRAWTEXT(CURRBARSCOUNT=1,UPPER,' 20上轨'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=1,UPPER1,' 55上轨'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,LOWER,' 20下轨'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=1,LOWER1,' 55上轨'),COLORRED;
645400157.jpg
|