运行速度问提

 onInit()

  {priceRange = Q_UpperLimit() - Q_LowerLimit();

           buyTriggerOffset  = Round(priceRange * 9.3033/100, PriceScale());

           sellTriggerOffset = Round(priceRange * 9.3033/100, PriceScale());

           buyPriceOffset    = Round(priceRange *33.33/100, PriceScale());

           sellPriceOffset   = Round(priceRange *33.33/100, PriceScale());}与if(barstatus==2 and Q_UpperLimit>Q_LowerLimit and Q_LowerLimit>0)

   

    {{priceRange = Q_UpperLimit() - Q_LowerLimit();

           buyTriggerOffset  = Round(priceRange * 9.3033/100, PriceScale());

           sellTriggerOffset = Round(priceRange * 9.3033/100, PriceScale());

           buyPriceOffset    = Round(priceRange *33.33/100, PriceScale());

           sellPriceOffset   = Round(priceRange *33.33/100, PriceScale());}这两种写法有何区别,是否前种运行速度快些?

代码运行速度慢
运行速度
提几个需求,看能否考虑?
行情速度问题
关于提高高频交易速度
优化速度问题
TB为什么没有测试行情和交易速度多少毫秒
调用自建函数速度会更慢吗?
如何提高读写数据库的速度
速度慢

区别应该不大