编写要求:
求助老师把资金进场,上升通道,改成飞狐公式选股公式 VAR3ggg:=100-(100-3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1)); VAR4ggg:=100-(100-3*SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1)); T7qq:=VAR3ggg>REF(VAR4ggg,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); B7qq:DRAWTEXT(T7qq AND COUNT(T7qq,30)=1,70,'↖资金进场!'),COLORYELLOW; VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VAR2:=2*ABS(VAR1); 多方:=IF(VAR1>0,VAR1,0),LINESTICK; 空方:=-IF(VAR1<0,VAR2,0),LINESTICK; T1:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1); DRAWTEXT(T1 AND COUNT(T1,30)=1,90,'↖上升通道!'),colorFFFF;
解答:
?var3ggg:=100-(100-3*sma((close-llv(low,55))/(hhv(high,55)-llv(low,55))*100,20,1)+2*sma(sma((close-llv(low,55))/(hhv(high,55)-llv(low,55))*100,20,1),15,1));
var4ggg:=100-(100-3*sma((open-llv(low,55))/(hhv(high,55)-llv(low,55))*100,20,1)+2*sma(sma((open-llv(low,55))/(hhv(high,55)-llv(low,55))*100,20,1),15,1));
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!