龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2023-9-11 19:33

multicharts基础编程 第012节 循环语句(While...... Begin ...... End循环)

[mp4]http://mp4.qhlt.club/mcode/012.mp4[/mp4]

龙听 发表于 2023-9-11 19:33

范例:[code]var:barbackno(0),HighPriceSum(0);

barbackno=0;
HighPriceSum=0;

While barbackno < 10 Begin
HighPriceSum = HighPriceSum + High[barbackno];
barbackno=barbackno+1;
End;

print(HighPriceSum/10);

value1 = tl_new(date[1],time[1],HighPriceSum[1]/10,date,time,HighPriceSum/10);
[/code]

龙听 发表于 2023-9-18 19:54

multicharts量化课程网课PPT下载:[url]http://www.qhlt.cn/thread-143956-1-1.html[/url]

页: [1]