以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  请问一下语句如何改为循环  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=13704)

--  作者:tonybig
--  发布时间:2012/8/16 14:10:22
--  请问一下语句如何改为循环

我想把以下下单数量语句改为循环,num最大等20;

 

IF ASSET/100000>=4 then num:=4;

IF ASSET/100000>=2 AND  ASSET/100000<4 then num:=2;

IF ASSET/100000<2 THEN num:=1;

 

请高手指点。


--  作者:rushtaotao
--  发布时间:2012/8/16 14:17:50
--  
这个存在循环吗?没明白啊
--  作者:tonybig
--  发布时间:2012/8/16 14:33:57
--  
当资金额翻到1000000后 算出相应的num数量。