那位老师帮忙(出现红色箭头(明月照积雪)时)改预警选股
2020/1/18 19:19:49
公式编写说明:
RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);明月:MA(SUM(J1-J2,22),3),COLOR00DDDD,NODRAW;累加:=21*明月+20*REF(明月,1)+19*REF(明月,2)+18*REF(明月,3)+17*REF(明月,4)+16*REF(明月,5)+15*REF(明月,6)+14*REF(明月,7)+13*REF(明月,8)+12*REF(明月,9)+11*REF(明月,10)+10*REF(明月,11)+9*REF(明月,12)+8*REF(明月,13)+7*REF(明月,14)+6*REF(明月,15)+5*REF(明月,16)+4*REF(明月,17)+3*REF(明月,18)+2*REF(明月,19)+REF(明月,20);积雪:累加/(21+1)/21*2,COLOR008800,NODRAW;VAR3:=(明月-积雪);VAR4:=SMA(RV,3,1);VAR5:=SMA(VAR4,3,1);STICKLINE(VAR3>0,100,50,3,0),COLOR990099;STICKLINE(VAR3<0,0,50,3,0),COLOR008800;KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:SMA(KK,3,1),COLOR00FFFF;DRAWTEXT(CROSS(VAR4,VAR5) AND CROSS(KK,DD),10,'明月照积雪'),COLOR00FFFF;STICKLINE(CROSS(VAR4,VAR5) AND CROSS(KK,DD),0,100,1,0),COLORMAGENTA;STICKLINE(VAR4<VAR5,VAR4,VAR5,2,0),COLORFF8800;STICKLINE(VAR4>VAR5,VAR5,VAR4,2,0),COLOR0000BB;DRAWICON(CROSS(VAR4,VAR5) AND VAR5<30,2,1);DRAWICON(CROSS(VAR5,VAR4) AND VAR5>30,97,2);明月照积雪:CROSS(VAR4,VAR5) AND CROSS(KK,DD),NODRAW,COLORMAGENTA;买:CROSS(VAR4,VAR5) AND VAR5<30,NODRAW,COLORRED;
公式源码回答:
RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR4:=SMA(RV,3,1);
VAR5:=SMA(VAR4,3,1);
CROSS(VAR4,VAR5) AND VAR5<30;
投 股票网 www.to u18.cn
股市公式下载推荐