support_line = df .min() + 0.25 * (df .max() - df .min()) resistance_line = df .max() - 0.25 * (df .max() - df .min())