大智慧经典版源码
boll百战百胜==百战百胜!百战百胜!
{boll百战百胜}{主图}
BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
上:BBI+3*STD(BBI,10),linethick3;
中:BBI;
下:BBI-3*STD(BBI,10),linethick3;
{aa线}
aa:bbi;
if(aa>=ref(aa,1),aa,0),LINETHICK2,COLORyellow,circledot;
if(aa<ref(aa,1),aa,0),LINETHICK2,COLORff9900,circledot;
STICKLINE(C>aa,L,H,0.1,1),COLORRED;
STICKLINE(C>aa,C,O,4,1),COLORRED;
STICKLINE(C>aa,C,O,4,1),COLORRED;
STICKLINE(C<aa,C,O,4,1),COLORFFFF00;
STICKLINE(C<aa,C,O,4,1),COLOR00FF00;
STICKLINE(C<aa,L,H,0.1,1),COLOR00FF00;
{设计思路:
1.红k线持股,绿k线持币;
2.如坚持第1条,百战百胜;}
飞狐源码:
{boll百战百胜}
BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
上:BBI+3*STD(BBI,10),linethick3;
中:BBI;
下:BBI-3*STD(BBI,10),linethick3;
{aa线}
aa:bbi;
PARTLINE(aa>=ref(aa,1),aa),LINETHICK2,COLORyellow,circledot;
PARTLINE(aa<ref(aa,1),aa),LINETHICK2,COLORff9900,circledot;
STICKLINE(C>aa,L,H,0.1,1),COLORRED;
STICKLINE(C>aa,C,O,4,1),COLORRED;
STICKLINE(C>aa,C,O,4,1),COLORRED;
STICKLINE(C<aa,C,O,4,1),COLORFFFF00;
STICKLINE(C<aa,C,O,4,1),COLOR00FF00;
STICKLINE(C<aa,L,H,0.1,1),COLOR00FF00;
{设计思路:
1.红k线持股,绿k线持币;
2.如坚持第1条,百战百胜;}