通达信波段大趋势主图公式 源码
MA5:MA(C,5);
MA30:MA(C,30);
看多做多_:1,COLORRED,NODRAW;
看多不做多_:1,COLORYELLOW,NODRAW;
看空做空_:1,COLORGREEN,NODRAW;
看空不做空_:1,COLORCYAN,NODRAW;
准备做多_:1,COLORMAGENTA,NODRAW;
准备做空_:1,COLORBLUE,NODRAW;
看多做多:STICKLINE(MA5>MA30 AND MA5>=REF(MA5,1) AND MA30>REF(MA30,1),MA5,MA30,0.8,0),COLORRED;
看多不做多:STICKLINE(MA5>MA30 AND MA5<REF(MA5,1) AND MA30>=REF(MA30,1),MA5,MA30,0.8,0),COLORYELLOW;
看空做空:STICKLINE(MA5<MA30 AND MA5<=REF(MA5,1) AND MA30<REF(MA30,1),MA5,MA30,0.8,0),COLORGREEN;
看空不做空:STICKLINE(MA5<MA30 AND MA5>REF(MA5,1) AND MA30<=REF(MA30,1),MA5,MA30,0.8,0),COLORCYAN;
准备做多:STICKLINE(MA5>MA30 AND MA5>REF(MA5,1) AND MA30<=REF(MA30,1),MA5,MA30,0.8,0),COLORMAGENTA;
准备做空:STICKLINE(MA5<MA30 AND MA5<REF(MA5,1) AND MA30>=REF(MA30,1),MA5,MA30,0.8,0),COLORBLUE;
公式原理:
5天均线向上,30天均线向上,看多做多;
5天均线向下,30天均线向上,看多不做多(有股的仍可持股,无股的可在其回档时介入);
5天均线向下,30天均线向下,看空做空;
5天均线向上,30天均线向下,看空不做空(有股的可等5天均线走平时沽出,无股的不可轻易抢反弹).
难就难在不为外界所惑,始终坚持如一。
一定要看30天均线的方向。
725199219.jpg
|