OPEN-SOURCE SCRIPT
Gold Chop Meter

What it does
It’s a market quality filter. It does NOT tell you direction.
It tells you when Gold is too compressed/choppy to trust clean expansions.
NORMAL = tradable conditions
CHOP = compressed / messy conditions
NO TRADE (30M BOX) = hard stop (30M is CHOP)
NO TRADE (HTF CHOP) = hard stop (majority of higher TFs are CHOP)
How to read the panel (left → right)
You’ll see:
1H: NORMAL/CHOP | 30M: NORMAL/CHOP | 15M: NORMAL/CHOP | 5M: NORMAL/CHOP | TRADE/NO TRADE
The rules (exact)
If 30M = CHOP → NO TRADE (30M BOX)
This is your strongest filter. Don’t fight it.
If 30M isn’t CHOP, then it checks majority:
Default: 1H + 30M + 15M
If 2 of 3 are CHOP → NO TRADE (HTF CHOP)
If those are not true → it prints TRADE
If 15M is CHOP but 30M is NORMAL, it prints:
“TRADE (CAUTION – 15M CHOP)”
That means: trade smaller, quicker, or wait for cleaner trigger.
Settings you actually need to touch
1) Profile
Auto (by session) = best for most days (it changes the threshold by time window)
NYO / Overnight / London profiles are there if you want to force one behavior.
2) ATR Length (fixed)
Default 4 is good for Gold.
If it’s too sensitive (flips CHOP too often), raise to 5.
If it’s too slow (stays NORMAL when price is dead), drop to 3.
3) Include 5M in majority filter? (default OFF)
OFF = cleaner, less restrictive (recommended)
ON = stricter filter (needs 3 of 4 to be CHOP for “HTF CHOP” but 5M influences the count)
How to use it with your purge strategy (simple playbook)
When it says TRADE
You’re allowed to execute your normal model:
Sweep → displacement / CHoCH → first return → run
When it says TRADE (CAUTION – 15M CHOP)
Still tradable, but:
take A+ only
smaller size
quicker TP, don’t expect runners
demand a cleaner trigger (strong displacement)
When it says NO TRADE
You don’t force entries.
What you do instead:
wait for 30M to flip back to NORMAL
or wait for a clear range break + retest that turns the environment back to expansion
Quick “decision cheat”
30M CHOP? → Stop. No trade.
2/3 HTFs CHOP? → Stop. No trade.
Only 15M CHOP? → Trade, but cautious.
All NORMAL? → Green light.
It’s a market quality filter. It does NOT tell you direction.
It tells you when Gold is too compressed/choppy to trust clean expansions.
NORMAL = tradable conditions
CHOP = compressed / messy conditions
NO TRADE (30M BOX) = hard stop (30M is CHOP)
NO TRADE (HTF CHOP) = hard stop (majority of higher TFs are CHOP)
How to read the panel (left → right)
You’ll see:
1H: NORMAL/CHOP | 30M: NORMAL/CHOP | 15M: NORMAL/CHOP | 5M: NORMAL/CHOP | TRADE/NO TRADE
The rules (exact)
If 30M = CHOP → NO TRADE (30M BOX)
This is your strongest filter. Don’t fight it.
If 30M isn’t CHOP, then it checks majority:
Default: 1H + 30M + 15M
If 2 of 3 are CHOP → NO TRADE (HTF CHOP)
If those are not true → it prints TRADE
If 15M is CHOP but 30M is NORMAL, it prints:
“TRADE (CAUTION – 15M CHOP)”
That means: trade smaller, quicker, or wait for cleaner trigger.
Settings you actually need to touch
1) Profile
Auto (by session) = best for most days (it changes the threshold by time window)
NYO / Overnight / London profiles are there if you want to force one behavior.
2) ATR Length (fixed)
Default 4 is good for Gold.
If it’s too sensitive (flips CHOP too often), raise to 5.
If it’s too slow (stays NORMAL when price is dead), drop to 3.
3) Include 5M in majority filter? (default OFF)
OFF = cleaner, less restrictive (recommended)
ON = stricter filter (needs 3 of 4 to be CHOP for “HTF CHOP” but 5M influences the count)
How to use it with your purge strategy (simple playbook)
When it says TRADE
You’re allowed to execute your normal model:
Sweep → displacement / CHoCH → first return → run
When it says TRADE (CAUTION – 15M CHOP)
Still tradable, but:
take A+ only
smaller size
quicker TP, don’t expect runners
demand a cleaner trigger (strong displacement)
When it says NO TRADE
You don’t force entries.
What you do instead:
wait for 30M to flip back to NORMAL
or wait for a clear range break + retest that turns the environment back to expansion
Quick “decision cheat”
30M CHOP? → Stop. No trade.
2/3 HTFs CHOP? → Stop. No trade.
Only 15M CHOP? → Trade, but cautious.
All NORMAL? → Green light.
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.