如何设置或编写交易系统只绘制最近一年的交易信号?
用currentdate返回当前的日期,比如2023年4月11日就是20230411,减去一年得到20220411,也就是currentdate-10000。
然后在交易条件里加上,date>currentdate-10000就行了,意思就是bar日期必须大于一年前的今天才满足条件
经测试方法有效