判大势的“牛熊时段”
这个公式的思路是K线叠加。通过颜色的变化体现大趋势的强弱度。
源码:
MA120:=MA(C,120);
MA250:=MA(C,250);
STICKLINE(C>=O,H,L,0,1),COLORCYAN;
STICKLINE(C>=O,C,O,3,1),COLORCYAN;
STICKLINE(C<O,H,L,0,0 ),COLORCYAN;
STICKLINE(C<O,C,O,3,0 ),COLORCYAN;
STICKLINE(C>MA120 AND C>O,H,C,0,0 ),COLORRED;
STICKLINE(C>MA120 AND C>O,L,O,0,0 ),COLORRED;
STICKLINE(C>MA120 AND C>O,O,C,3,1),COLORRED;
STICKLINE(C>MA120 AND C<=O,H,L,0,0 ),COLORRED;
STICKLINE(C>MA120 AND C<=O,O,C,3,0),COLORRED;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C>O,H,C,0,0),COLORRED;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C>O,O,L,0,0),COLORRED;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C>O,O,C,3,1),COLORRED;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C<=O,H,L,0,0),COLORRED;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C<=O,O,C,3,0),COLORRED;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C>O,H,C,0,0),COLORCYAN;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C>O,O,L,0,0),COLORCYAN;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C>O,O,C,3,1),COLORCYAN;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C<=O,H,L,0,0),COLORCYAN;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C<=O,O,C,3,0),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C>O,H,C,0,0),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C>O,O,L,0,0),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C>O,O,C,3,1),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C<=O,H,L,0,0),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C<=O,O,C,3,0),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND C>O,H,C,0,0),COLORRED;
STICKLINE(MA120>MA250 AND C>MA120 AND C>O,O,L,0,0),COLORRED;
STICKLINE(MA120>MA250 AND C>MA120 AND C>O,O,C,3,1),COLORRED;
STICKLINE(MA120>MA250 AND C>MA120 AND C<=O,H,L,0,0),COLORRED;
STICKLINE(MA120>MA250 AND C>MA120 AND C<=O,O,C,3,0),COLORRED;
STICKLINE(MA120>MA250 AND C<MA120 AND C>O,H,C,0,0),COLORGREEN;
STICKLINE(MA120>MA250 AND C<MA120 AND C>O,O,L,0,0),COLORGREEN;
STICKLINE(MA120>MA250 AND C<MA120 AND C>O,O,C,3,1),COLORGREEN;
STICKLINE(MA120>MA250 AND C<MA120 AND C<=O,H,L,0,0),COLORGREEN;
STICKLINE(MA120>MA250 AND C<MA120 AND C<=O,O,C,3,0),COLORGREEN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C>O,H,C,0,0),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C>O,O,L,0,0),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C>O,O,C,3,1),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C<=O,H,L,0,0),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C<=O,O,C,3,0),COLORCYAN;
STICKLINE(C<MA250 AND C>O,H,C,0,0),COLORBLUE;
STICKLINE(C<MA250 AND C>O,O,L,0,0),COLORBLUE;
STICKLINE(C<MA250 AND C>O,O,C,3,1),COLORBLUE;
STICKLINE(C<MA250 AND C<=O,H,L,0,0),COLORBLUE;
STICKLINE(C<MA250 AND C<=O,O,C,3,0),COLORBLUE;
STICKLINE(C>MA120 AND MA120<MA250 AND C>O,H,C,0,0),COLORYELLOW;
STICKLINE(C>MA120 AND MA120<MA250 AND C>O,O,L,0,0),COLORYELLOW;
STICKLINE(C>MA120 AND MA120<MA250 AND C>O,O,C,3,1),COLORYELLOW;
STICKLINE(C>MA120 AND MA120<MA250 AND C<=O,H,L,0,0),COLORYELLOW;
STICKLINE(C>MA120 AND MA120<MA250 AND C<=O,O,C,3,0),COLORYELLOW;
- 上一篇:公式合辑 有你想要的 2014/10/29
- 下一篇:乖离率(bias)三线粘合一起 的 选股公式可以自动预警(源 2014/10/29