标题:
multicharts基础编程 第013节 循环语句(For...... Begin ...... End循环)
[打印本页]
作者:
龙听
时间:
2023-9-13 19:23
标题:
multicharts基础编程 第013节 循环语句(For...... Begin ...... End循环)
[mp4]http://mp4.qhlt.club/mcode/013.mp4[/mp4]
作者:
龙听
时间:
2023-9-13 19:27
程式码部分
var:barsbackno(0),highpricesum(0);
barsbackno = 0 ;
highpricesum = 0 ;
{
while barsbackno < 10 begin //cal
highpricesum = highpricesum + Close[barsbackno];
barsbackno = barsbackno +1 ;
end;
}
for barsbackno = 0 to 9 begin
highpricesum = highpricesum + Close[barsbackno];
end;
print(highpricesum/10);
value1 = tl_new(date[1],time[1],highpricesum[1]/10,date,time,highpricesum/10);
复制代码
作者:
龙听
时间:
2023-9-13 19:39
var:barsbackno(0),highpricesum(0);
barsbackno = 0 ;
highpricesum = 0 ;
{
while barsbackno < 10 begin //cal
highpricesum = highpricesum + Close[barsbackno];
barsbackno = barsbackno +1 ;
end;
}
{for barsbackno = 0 to 9 begin
highpricesum = highpricesum + high[barsbackno];
end;
}
for barsbackno = 9 downto 0 begin
highpricesum = highpricesum + high[barsbackno];
end;
print(highpricesum/10);
value1 = tl_new(date[1],time[1],highpricesum[1]/10,date,time,highpricesum/10);
复制代码
作者:
龙听
时间:
2023-9-18 19:54
multicharts量化课程网课PPT下载:
http://www.qhlt.cn/thread-143956-1-1.html
欢迎光临 龙听期货论坛 (http://www.qhlt.cn/)
Powered by Discuz! 7.2