群里问过老师,根据给的思路琢磨了很久,没有了BarsSinceEntry概念,想用onfill成交时间来判断, buylasthigh 用的是series类型来记录,还是没成功
if(A_BuyPosition==1) { If(CurrentTime == Fill_time) buylasthigh = my_tick.last; else buylasthigh = Max(buylasthigh , my_tick.high); }
现在多头的记录最高价貌似能记录成功了,同一个策略里,一样的写法,为什么空头会没反应的?
现在多头的记录最高价貌似能记录成功了,同一个策略里,一样的写法,为什么空头会没反应的?