龙听期货论坛's Archiver

龙听 发表于 2023-9-21 08:34

multicharts基础编程 第018节 关于日期与时间的知识(time使用方法)

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

龙听 发表于 2023-9-22 09:43

范例:
[code]
var:var1(0),var2(""),var3(0);

var1 = date + 19000000 ;

var2 =RightStr(NumToStr(var1,0),4);

var3 = StrToNum(var2);

if var3 > 301 and var3 < 305 then buy next bar at market;
if var3 > 531 and var3 < 605 then sell next bar at market;

if var3 > 901 and var3 < 905 then buy next bar at market;
if var3 > 1225 and var3 < 1230 then sell next bar at market;

print(var3);
[/code]

龙听 发表于 2023-9-22 09:43

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

页: [1]