tradewawa 发表于 2020-1-11 10:37:00

满足条件后连续计数

老师,请问满足条件后连续计数怎么实现?比如MA5>MA5 计1,后面再满足计2,一直延续只到条件不满足。谢谢!

Yuen_Lee 发表于 2020-1-16 15:29:55

NumericSeries sCount;

sCount = 0;
If(MA5>MA5)
    sCount = sCount+1;

15368479860 发表于 2020-4-3 02:22:20

Yuen_Lee 发表于 2020-1-16 15:29 static/image/common/back.gif
NumericSeries sCount;

sCount = 0;


怎么啥都会写
页: [1]
查看完整版本: 满足条件后连续计数