我要在最高價及在最低價的中間(1/2價),畫一條橫線,如下:
input:period(45,"計算區間");
value5=nthlowest(1,low[1],period);//最低價
value6=nthlowestbar(1,volume[1],period);//最低量距今幾根bar
value7=nthhighest(1,high[1],period);//最高價
value8=nthhighestbar(1,volume[1],period);//最高量距今幾根bar
value9=(value5+value7)/2;
Plot1(value9);
但畫面的橫線卻歪曲如附圖,請問;程式要如何修改??
3 評論