主题795
精华0
阅读权限80
注册时间2015-3-31
在线时间0 小时
最后登录2017-1-4
美元7
爱心果11488
贡献0
- 积分
- 14147
指标研习F2
- 听众
- 2
|
30爱心果
优化:当M20向上,出现钱袋时选股。
源码:
DRAWBAND(MA(CLOSE,5),RGB(100,0,0),MA(CLOSE,20),RGB(0,100,0));
DRAWKLINE(H,O,L,C);
PM:MA(C,5),COLORGRAY,LINETHICK1;{可用13}
IF(PM<REF(PM,1),PM,DRAWNULL),COLORGRAY,LINETHICK0;
IF(PM>=REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;
A:=MA(CLOSE,12)+ABS(MA(CLOSE,12)-REF(MA(CLOSE,12),1));{原公式为17,最终确定为12}
B:=MA(CLOSE,12)+MA(CLOSE,12)-REF(MA(CLOSE,12),1);
分水岭:=IF(MA(CLOSE,12)<B,B,MA(CLOSE,12));
操作线:=分水岭-(EMA(C,3)-分水岭);
AA:=CROSS(分水岭,操作线);
STICKLINE(AA,C,O,3,0),COLOR0000AA;
STICKLINE(AA,C,O,2,0),COLOR0033CC;
STICKLINE(AA,C,O,1,0),COLOR0055EE;
STICKLINE(AA,C,O,0.3,0),COLOR0099FF;
STICKLINE(AA,H,L,0,1),COLOR0099FF;
RR:=CROSS((MA(VOL,5)),(MA(VOL,10))) AND MA(C,2)>=MA(C,4); {AND VOL>=REF(VOL,1)}
STICKLINE(RR,C,O,3,0),COLOR0000AA;
STICKLINE(RR,C,O,2,0),COLOR0033CC;
STICKLINE(RR,C,O,1,0),COLOR0055EE;
STICKLINE(RR,C,O,0.3,0),COLOR0099EE;
STICKLINE(RR,H,L,0,1),COLOR0099FF;
MA5:MA(CLOSE,5),NODRAW;
MA20:MA(CLOSE,20),COLORFFCC66,LINETHICK2;
DRAWICON(CROSS(PM,MA20),L*0.9998,9);
选股:
PM:=MA(C,5);{可用13}
MA20:=MA(CLOSE,20);
DRAWICON(CROSS(PM,MA20),L*0.9998,9);
|
最佳答案
查看完整内容
PM:=MA(C,5);{可用13}
MA20:=MA(CLOSE,20);
DRAWICON(CROSS(PM,MA20) AND MA20>REF(MA20,1),L*0.9998,9);
|