龙听期货论坛's Archiver

龙听 发表于 2023-9-22 07:56

multicharts基础编程 第019节 关于日期与时间的知识(dayofweek、dayofmonth使用方法)

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

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

范例:
[code]//Value1=Text_New(Date,Time,low-5 point,NumToStr(time,0));

//print(Time);

//print(date,time,dayofweek(date));

//if dayofmonth(date) = 5 then buy next bar at market;

//if dayofmonth(date) > 25 then sell next bar at market;

if dayofweek(date) = 1 then buy next bar at market;
if dayofweek(date) = 5 then sell next bar at market;
[/code]

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

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

页: [1]