敢问各位老师,用A函数下单,在tick行情里怎么记录最高价
2022-08-08 20:38

群里问过老师,根据给的思路琢磨了很久,没有了BarsSinceEntry概念,想用onfill成交时间来判断, buylasthigh 用的是series类型来记录,还是没成功

if(A_BuyPosition==1)
                {
                If(CurrentTime == Fill_time)
                buylasthigh = my_tick.last;
                else
                buylasthigh = Max(buylasthigh , my_tick.high);
                }

评论区
a3881312

2022-08-10 23:28
a3881312

2022-08-10 23:27
a3881312

现在多头的记录最高价貌似能记录成功了,同一个策略里,一样的写法,为什么空头会没反应的?

2022-08-10 23:26
顶部