PyneCore now matches TradingView down to the last digit
Run a script in PyneCore and on TradingView and you used to get numbers that agreed for nine or ten digits, then quietly drifted apart. Close enough to look right, far enough that a backtest could take a trade the chart never took.
That gap is closed. Over the past weeks we measured TradingView’s arithmetic function by function — how it sums a moving window, how it steps an EMA, how it turns a number into text, how it decides two values are equal — and rebuilt PyneCore to do the same thing in the same order. Across a corpus of 133 real community scripts, more than 99% of every plotted value now comes out identical to TradingView’s, bit for bit, and 102 of those scripts match on every single bar.
The work turned up genuine bugs on the way. One of them charged slippage to a take-profit order that filled through an opening gap, costing a tick on every such exit — found by a user who traced it through our code and asked whether it was intended before assuming it was a bug.
Release notes: https://github.com/PyneSys/pynecore/releases/tag/v6.8.0