PINE LIBRARY
ZT_Settings_Lib

Companion library for the Alpha Flow Zone Trader (AFZT) invite-only indicator. Provides the per-instrument tuning table — returns the 12-element float array of detection thresholds used by AFZT Core (climax/imbalance multipliers, wick ratios, body-fraction floors, zone-width minimums, profile-specific ATR multipliers, etc.) keyed by instrument profile + tuning preset.
Exports:
• getInstrumentSettings(profileCode, tuningCode) — returns array<float>(12) for ES/NQ/RTY/YM/CL/NG/GC/SIL/BTC/6E across LOOSE/DEFAULT/STRICT tuning presets, falling back to a generic profile for any unrecognized code.
Pure data-lookup function — no side effects.
Exports:
• getInstrumentSettings(profileCode, tuningCode) — returns array<float>(12) for ES/NQ/RTY/YM/CL/NG/GC/SIL/BTC/6E across LOOSE/DEFAULT/STRICT tuning presets, falling back to a generic profile for any unrecognized code.
Pure data-lookup function — no side effects.
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.