OPEN-SOURCE SCRIPT
Surf Distance

Qullamaggie Surfing the EMA
The median for Qullamaggie is 0.110
The measurement
Take the entry price and subtract the 10-day average. That gives the distance in dollars.
Divide by the stock's typical daily range (probably ATR or average daily range in your system; check which one you used). That gives the distance in "daily ranges."
Dividing by the range makes stocks comparable. A 30-cent gap is huge for a quiet $10 stock and meaningless for a volatile $300 one. Measured in daily ranges, both are on the same scale.
Reading 0.110: The median entry was 0.11 of one day's range above the 10-day average. A normal day's wiggle is one full range, so 0.11 is well inside the noise. Price was essentially sitting on the average when the entry triggered. Half the entries were closer than that (or below it) and half were further.
Example
10-day average: $50.00
Daily range (ATR): $2.50
Entry: $50.275
Distance = ($50.275 − $50.00) / $2.50 = 0.110. You paid 27.5 cents above the average, on a stock that moves $2.50 on a normal day. That's an entry at the average.
Compare an entry at $55.00: ($55.00 − $50.00) / $2.50 = 2.0. The stock is two full daily ranges above its average, which is extended and usually a chase.
Why it matters: The finding says the Qullamaggie entries are mostly pullbacks or consolidations that come back to the 10-day (the "surf" the average idea), not chases of extended moves. It also gives you a testable rule: entries far above 0 (say, above 1 range) are outside the profile that the system's results come from.
The median for Qullamaggie is 0.110
The measurement
Take the entry price and subtract the 10-day average. That gives the distance in dollars.
Divide by the stock's typical daily range (probably ATR or average daily range in your system; check which one you used). That gives the distance in "daily ranges."
Dividing by the range makes stocks comparable. A 30-cent gap is huge for a quiet $10 stock and meaningless for a volatile $300 one. Measured in daily ranges, both are on the same scale.
Reading 0.110: The median entry was 0.11 of one day's range above the 10-day average. A normal day's wiggle is one full range, so 0.11 is well inside the noise. Price was essentially sitting on the average when the entry triggered. Half the entries were closer than that (or below it) and half were further.
Example
10-day average: $50.00
Daily range (ATR): $2.50
Entry: $50.275
Distance = ($50.275 − $50.00) / $2.50 = 0.110. You paid 27.5 cents above the average, on a stock that moves $2.50 on a normal day. That's an entry at the average.
Compare an entry at $55.00: ($55.00 − $50.00) / $2.50 = 2.0. The stock is two full daily ranges above its average, which is extended and usually a chase.
Why it matters: The finding says the Qullamaggie entries are mostly pullbacks or consolidations that come back to the 10-day (the "surf" the average idea), not chases of extended moves. It also gives you a testable rule: entries far above 0 (say, above 1 range) are outside the profile that the system's results come from.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.