把下面两公式合一
指标答疑4年前 (2022-11-25)29
把下面两公式合一 编写要求:if stkindi('sz399101','bbqs.持股信号') then strfind(stklabel,'2',1)=3 and c˃0;if stkindi('sz399102','bbqs.持股信号') then strfind(stklabel,'3',1)=1 and c˃0;上面公式单条可以用,我想在两公式...
把下面两公式合一 编写要求:
if stkindi('sz399101','bbqs.持股信号') then strfind(stklabel,'2',1)=3 and c>0;if stkindi('sz399102','bbqs.持股信号') then strfind(stklabel,'3',1)=1 and c>0;上面公式单条可以用,我想在两公式中间加 or,但不行,又没办法赋值,望高手解答。谢谢!
解答:
if stkindi('sz399101','bbqs.持股信号') then aa:=strfind(stklabel,'2',1)=3 and c>0;
if stkindi('sz399102','bbqs.持股信号') then bb:=strfind(stklabel,'3',1)=1 and c>0;相关文章










