Posts
avatar

If you look inside DIA's FiltersBlockService in the GitHub repo, there's a subtle mathematical detail that explains why $DIA feeds resist wash-trading spikes: The difference between standard VWAP and DIA's VWAPIR (Volume Weighted Average Price with Interquartile Range Clearing). In a naive VWAP, if an attacker executes a massive wash trade at an extreme price, the huge volume weight drags the entire average with it. DIA reverses the order of operations: 1. First, all recorded trades over the window (e.g., 120 seconds, like in MEDIR-120) are passed through the Interquartile Range (IQR) filter. 2. The top 25% and bottom 25% price extremes are stripped out, leaving only the middle two quartiles (set F). 3. Only then is the VWAP formula applied: VWAPIR = Σ(p_i × v_i) / Σ(v_i) for i ∈ F Strip the outliers first. Weight the volume second. @DIAdata_org

This content is for informational and educational purposes only. It may include third-party insights, sponsored content, or promotional material for which the creator may receive compensation. Nothing in this feed constitutes investment advice or a guarantee of returns. You are solely responsible for your own investment decisions. Always conduct your own research and exercise caution before trading. We do not guarantee the accuracy of third-party information and are not liable for any losses incurred. Past performance is not indicative of future results. Please refer to our Community Terms and Risk Disclosure Statement for details.

avatarPost your reply

Comment