30 min chart. Same K value - still not parallel. What did I miss? //FREEN
// highray
double highestprice = MAX(Highs[0], lookback)[0];
int highestbar = HighestBar(Highs[0], lookback);
double hprice = (Kvalue * -CurrentBar) + highestprice;
DrawRay("Highray", true, CurrentBar, hprice, highestbar, highestprice, Color.Gray, DashStyle.Dash, 1);
// lowray
double lowestprice = MIN(Lows[0], lookback)[0];
int lowestbar = LowestBar(Lows[0], lookback);
double lprice = (Kvalue * -CurrentBar) + lowestprice;
DrawRay("Lowray", true, CurrentBar, lprice, lowestbar, lowestprice, Color.Gray, DashStyle.Dash, 1);
Comment