在最后一根k线计算出前面N根k线可以画压力线和支撑线,如何倒回去前面N根k线画线?

在最后一根k线计算出前面N根k线可以画压力线和支撑线,如何倒回去前面N根k线画线?Array<Numeric> x1Data;//压力线支撑线x Array<Numeric> y1Data;//压力线支撑线y OnBar(ArrayRef<Integer> indexs){ if(BarStatus==2) { for i = 0 to length -1 { Numeric low_1 = low[i]; Numeric low_2 = low[ iif(i>0 , i+1 , i)] Numeric high_1 = high[i]; Numeric high_2 = high[ iif(i>0 , i+1 , i)]; Numeric index = CurrentBar-i; Numeric top = boxSupAreaMap[1]; Numeric bot = boxSupAreaMap[3]; //找到压力线 xy if (low_1 > top and low_2 <= top) { ArrayPushBack(x1Data,index); ArrayPushBack(y1Data,low_2); } //找到支撑线 xy if (high_1 < bot and high_2 >= bot) { ArrayPushBack(x1Data,index); ArrayPushBack(y1Data,high_2); } } } 下面我如何画线????我已经找到了画线开始结束点xy并保存到x1Data和y1Data了。 }

https://tbq3.tbquant.net/helper?product_id=991&keyword=3794&content_id=2628&selectedkey=3855&type=article#3.1-line--%E7%BA%BF%E5%BD%A2 用3.1.3可以任意画图,横轴坐标是date+time