,朋友们在使用或编制均线类公式时作参考!
MA5:MA(C,5) colorwhite;
MA10:MA(C,10)coloryellow;
POLYLINE(C,MA(C,20)) color999999;
MA30:MA(C,30)colorgreen;
POLYLINE(C,MA(C,45)) color999999;
MA60:MA(C,60)colormagenta;
POLYLINE(C,MA(C,90)) color999999;
MA120:MA(C,120)colorcyan;
POLYLINE(C,MA(C,150)) color999999;
POLYLINE(C,MA(C,180)) color999999;
POLYLINE(C,MA(C,210)) color999999;
MA250:MA(C,250)colorred;
FILLRGN(MA(C,5)>MA(C,10),MA(C,5),MA(C,10))COLOR6699FF;
FILLRGN(MA(C,5)<MA(C,10),MA(C,5),MA(C,10))COLORFF6666;
VK:=VOL/CAPITAL*100;
STICKLINE(C>=O,H,L,0,0) COLORred;
STICKLINE(C>=O,C,O,VK+3,0) COLORred;
STICKLINE(C< O,H,L,0,0) COLORgreen;
STICKLINE(C< O,C,O,VK+3,0) COLORgreen;
EXPLAIN((MA5>MA10 and MA10>MA30 and MA5>MA30),'解:短期均线排列:多头');
EXPLAIN((MA5<MA10 and MA10<MA30 and MA5<MA30),'解:短期均线排列:空头');
EXPLAIN((MA30>MA60 and MA30>MA120 and MA60>MA120),'解:中期均线排列:多头');
EXPLAIN((MA30<MA60 and MA30<MA120 and MA60<MA120),'解:中期均线排列:空头');
EXPLAIN((MA60>MA120 and MA120>MA250 and MA60>MA250),'解:长期均线排列:多头');
EXPLAIN((MA60<MA120 and MA120<MA250 and MA60<MA250),'解:长期均线排列:空头');
EXPLAIN((CROSS(MA5,MA10)),'解:短期均线5x10:金叉');
EXPLAIN((CROSS(MA10,MA5)),'解:短期均线5x10:死叉');
EXPLAIN((CROSS(C,MA120)),'解:今日股价上穿半年线');
EXPLAIN((CROSS(MA120,C)),'解:今日股价跌破半年线');
EXPLAIN((CROSS(C,MA250)),'解:今日股价上穿一年线');
EXPLAIN((CROSS(MA250,C)),'解:今日股价跌破一年线');
EXPLAIN((CROSS(C,MA60) and CROSS(C,MA120) and CROSS(C,MA250)),'解:股价一阳穿三线');
EXPLAIN((MA30>REF(MA30,1)),'解:30日均线趋势:向上');
EXPLAIN((MA30>REF(MA30,1) AND MA30<REF(MA30,1)*1.001),'解:30日均线趋势:走平');
EXPLAIN((MA30<REF(MA30,1)),'解:30日均线趋势:向下');
EXPLAIN((MA5>REF(MA5,1)*1.015),'解:5日均线:强劲向上');
EXPLAIN((MA5>REF(MA5,1) AND MA5<REF(MA5,1)*1.005),'解:5日均线:方向不明');
EXPLAIN((MA5<REF(MA5,1)*0.985),'解:5日均线:快速向下');
上一篇:通达信乾坤圈指标 下一篇:短中操盘源码副图