
等级: 新手上路
- 注册:
- 2021-10-31
- 曾用名:
|

楼主 |
发表于 2021-11-4 11:07
|
显示全部楼层
if islastbar then begin ////@@@@@@@@@@@ 注意这里务必要增加ISLASTBAR条件判断只对最后周期有效,增加运行效率 @@@@@@@@@@@@@@
debugfile('d:\交易日志布叶10HL\test.txt',numtostr(date+19000000,0)&' '&numtostr(time,0)&'买开条件:%.0f',开多平空条件); //@@@@注意:如果是序列工作模式,请使用 CONST 函数将date等序列变量转化为单值数据以提高字符串操作的工作效率。@@@@@@
debugfile('d:\交易日志布叶10HL\test.txt',numtostr(date+19000000,0)&' '&numtostr(time,0)&'卖平多单:%.0f',(多头出场 or 开空平多条件));
debugfile('d:\交易日志布叶10HL\test.txt',numtostr(date+19000000,0)&' '&numtostr(time,0)&'卖开条件:%.0f',开空平多条件);
debugfile('d:\交易日志布叶10HL\test.txt',numtostr(date+19000000,0)&' '&numtostr(time,0)&'买平空单:%.0f',(空头出场 or 开多平空条件));
debugfile('d:\交易日志布叶10HL\test.txt',numtostr(date+19000000,0)&' '&numtostr(time,0)&'holding:%.0f',holding);
end |
|