For CHOP, add the true ranges of the latest 14 candles, including the current closed candle. Each true range is the distance from the higher of the candle high and prior close to the lower of the candle low and prior close. Divide the sum by the highest high minus the lowest low in the 14 bars. CHOP is 100 times the log of that ratio divided by the log of 14. At A the inputs are 25.50 and 10.00 points, giving 35.47.
For ADX, compare each candle’s rise in high with its fall in low. Keep the larger positive move on its side and use zero on the other. Tied moves contribute zero on both sides. Smooth the movement values and true range, then divide each smoothed movement by smoothed true range and multiply by 100 to get +DI and −DI. DX is 100 times the absolute DI difference divided by their sum.
Seed the smoothed movement and range sums with the first 14 changes. The first ADX averages the first 14 DX readings. Each later value is (13 × prior ADX + current DX) ÷ 14. At A, DX is about 49.24 and the previous ADX is about 9.46, so ADX rises only to 12.31. The 40 synthetic candles before the visible chart let the calculation initialize before A.
In TradingView, add built-in Choppiness Index and Directional Movement Index, then set CHOP Length, DI Length and ADX Smoothing to 14. Use the Data Window to record both indicators on the same completed bar. Match the data feed, contract, session template, bar size and amount of prior data when comparing platforms.