主题27
精华0
阅读权限15
注册时间2016-1-19
在线时间0 小时
最后登录2017-7-28
美元0
爱心果315
贡献0
- 积分
- 420
知府
- 听众
- 1
|
10爱心果
请高手帮忙做一个选股公式,要求出现"天下无敌"提示时选股,谢谢.
VAR1:=(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)*100;
TT:MA(VAR1,20);
STICKLINE(VAR1-TT>0,VAR1,TT,2,0),COLORRED,LINETHICK1;
VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=SMA(VAR2,3,1);
VAR4:=(CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*100;
VAR5:=ABS(VAR4),COLORGREEN;
A111:=COST(85);
A222:=COST(15);
A333:=A111-A222;
A444:=(A111+A222)/2;
单峰密集:=A333/A444*100<30,LINETHICK0;
B1:=HHV(HIGH,250);
B2:=LLV(LOW,250);
B3:=B1-B2;
B4:=(A444-B2);
低位:=A444<(B3*04+B2),LINETHICK0;
低位单峰密集:=单峰密集 AND 低位;
B5:=C/REF(C,1)>1.04; {AND V/REF(V,1)>2;{ AND H=C;}
主力持仓%:=EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),3);
主力持仓大于75%:=主力持仓%>=75 {AND 主力持仓%<=91} AND C>0 AND CLOSE>OPEN AND C=H;
启爆:=主力持仓大于75% AND 低位单峰密集 AND B4 AND WINNER(C)>=0.91 AND B5,COLORGREEN,LINETHICK3;
爆:=CROSS(VAR5,10) AND 启爆;
DRAWICON(爆,TT,25);
DRAWTEXT(爆,TT,'<----天下无敌'),COLORRED; |
最佳答案
查看完整内容
{天下无敌预警}
VAR1:=(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)*100;
TT:=MA(VAR1,20);
VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=SMA(VAR2,3,1);
VAR4:=(CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*100;
VAR5:=ABS(VAR4),COLORGREEN;
A111:=COST(85);
A222:=COST(15);
A333:=A111-A222;
A444:=(A111+A222)/2;
单峰密集:=A333/A444*1002;{ AND H=C;}
主力持仓%:=EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH ...
|