Kasper Posted December 18, 2022 Report Posted December 18, 2022 (edited) Hello, Can you check if Range% values for Day/52W are correct in columns? They seem too high for Day and too low for 52 week. Thanks. Edited December 18, 2022 by Kasper Quote
Jerry Medved Posted December 18, 2022 Report Posted December 18, 2022 That's just a computation based on the corresponding high,low and last. What values are shown and what data feed are you using Quote
Kasper Posted December 18, 2022 Author Report Posted December 18, 2022 The calculation is slightly different with each data feed, but that's due to it's feed's speed. Here's actual example with IB: Symbol AAPL Last 136.50 Low 133.73 High 137.65 Rng 3.92 Rng % 70.66326531 I calculated below for same data feed. SetScanResultColumnName(0,"Range%"); SetScanResult(0,((SymbolData.High - SymbolData.Low) * 100 / SymbolData.Last)); Range% 2.871795 Quote
Jerry Medved Posted December 18, 2022 Report Posted December 18, 2022 Your formula is wrong. Should be ( last - low) / (high - low) Quote
Kasper Posted December 18, 2022 Author Report Posted December 18, 2022 Thanks for clarifying your formula. Mine was based on my understanding of description of this column in MT help docs. i.e. Range as % of price. The formula you shared is similar to IV rank formula, but for price. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.