priceAboveToProb function
价差归一: (close - ref) / (k * close),k=0.5%默认
Implementation
double priceAboveToProb(KLineEntity c, double? ref, {double pct = 0.005}) {
if (!isF(ref)) return 0.5;
final base = (c.close - ref!) / (math.max(1e-9, c.close * pct));
return clamp01((base.clamp(-1, 1) + 1) / 2);
}