Обновлено
XZ_SD_UI

Library "XZ_SD_UI"
XZ S&D UI v1. Presentation-only support library for XZ Supply & Demand Status, Quick Read and Glossary. It receives already-decided operational strings/state from the protected indicator and never creates, qualifies, partially consumes or consumes S&D zones.
renderStatus(show_status_table, status_table_mode, table_position, table_text_size, table_bg_color, table_text_color, table_accent_color, status_show_lines, status_line_color, resolved_table_supply_color, resolved_table_demand_color, primary_status, secondary_status, secondary_tf_enabled, show_secondary_tf, secondary_tf_is_higher, secondary_tf_label_input, zone_horizon, zone_display_scope, horizon_start_text, show_session_context, session_context_text_input, session_standard)
Renders/removes the operational Status table from already-decided source snapshots.
Parameters:
show_status_table (bool)
status_table_mode (simple string)
table_position (simple string)
table_text_size (simple string)
table_bg_color (color)
table_text_color (color)
table_accent_color (color)
status_show_lines (bool)
status_line_color (color)
resolved_table_supply_color (color)
resolved_table_demand_color (color)
primary_status (StatusSource)
secondary_status (StatusSource)
secondary_tf_enabled (bool)
show_secondary_tf (bool)
secondary_tf_is_higher (bool)
secondary_tf_label_input (simple string)
zone_horizon (simple string)
zone_display_scope (simple string)
horizon_start_text (simple string)
show_session_context (bool)
session_context_text_input (simple string)
session_standard (simple string)
renderQuickRead(show_quick_read, quick_read_position, quick_read_text_size, quick_read_bg_color, quick_read_text_color, quick_read_show_lines, quick_read_line_color)
Renders/removes the XZ S&D Quick Read onboarding table.
Parameters:
show_quick_read (bool)
quick_read_position (simple string)
quick_read_text_size (simple string)
quick_read_bg_color (color)
quick_read_text_color (color)
quick_read_show_lines (bool)
quick_read_line_color (color)
renderGlossary(show_glossary, glossary_position, glossary_text_size)
Renders/removes the XZ S&D chart glossary.
Parameters:
show_glossary (bool)
glossary_position (simple string)
glossary_text_size (simple string)
StatusSource
Fields:
section_label (series string)
tf_label (series string)
lifecycle_authority (series string)
supply_zones (series string)
demand_zones (series string)
supply_immediate (series string)
demand_immediate (series string)
supply_state (series string)
demand_state (series string)
supply_interaction (series string)
demand_interaction (series string)
supply_distance (series string)
demand_distance (series string)
supply_swing_layer (series string)
demand_swing_layer (series string)
supply_swing_state (series string)
demand_swing_state (series string)
supply_immediate_authority (series string)
demand_immediate_authority (series string)
XZ S&D UI v1. Presentation-only support library for XZ Supply & Demand Status, Quick Read and Glossary. It receives already-decided operational strings/state from the protected indicator and never creates, qualifies, partially consumes or consumes S&D zones.
renderStatus(show_status_table, status_table_mode, table_position, table_text_size, table_bg_color, table_text_color, table_accent_color, status_show_lines, status_line_color, resolved_table_supply_color, resolved_table_demand_color, primary_status, secondary_status, secondary_tf_enabled, show_secondary_tf, secondary_tf_is_higher, secondary_tf_label_input, zone_horizon, zone_display_scope, horizon_start_text, show_session_context, session_context_text_input, session_standard)
Renders/removes the operational Status table from already-decided source snapshots.
Parameters:
show_status_table (bool)
status_table_mode (simple string)
table_position (simple string)
table_text_size (simple string)
table_bg_color (color)
table_text_color (color)
table_accent_color (color)
status_show_lines (bool)
status_line_color (color)
resolved_table_supply_color (color)
resolved_table_demand_color (color)
primary_status (StatusSource)
secondary_status (StatusSource)
secondary_tf_enabled (bool)
show_secondary_tf (bool)
secondary_tf_is_higher (bool)
secondary_tf_label_input (simple string)
zone_horizon (simple string)
zone_display_scope (simple string)
horizon_start_text (simple string)
show_session_context (bool)
session_context_text_input (simple string)
session_standard (simple string)
renderQuickRead(show_quick_read, quick_read_position, quick_read_text_size, quick_read_bg_color, quick_read_text_color, quick_read_show_lines, quick_read_line_color)
Renders/removes the XZ S&D Quick Read onboarding table.
Parameters:
show_quick_read (bool)
quick_read_position (simple string)
quick_read_text_size (simple string)
quick_read_bg_color (color)
quick_read_text_color (color)
quick_read_show_lines (bool)
quick_read_line_color (color)
renderGlossary(show_glossary, glossary_position, glossary_text_size)
Renders/removes the XZ S&D chart glossary.
Parameters:
show_glossary (bool)
glossary_position (simple string)
glossary_text_size (simple string)
StatusSource
Fields:
section_label (series string)
tf_label (series string)
lifecycle_authority (series string)
supply_zones (series string)
demand_zones (series string)
supply_immediate (series string)
demand_immediate (series string)
supply_state (series string)
demand_state (series string)
supply_interaction (series string)
demand_interaction (series string)
supply_distance (series string)
demand_distance (series string)
supply_swing_layer (series string)
demand_swing_layer (series string)
supply_swing_state (series string)
demand_swing_state (series string)
supply_immediate_authority (series string)
demand_immediate_authority (series string)
Информация о релизе
v2Updated:
renderStatus(show_status_table, status_table_mode, table_position, table_text_size, table_bg_color, table_text_color, table_accent_color, status_show_lines, status_line_color, resolved_table_supply_color, resolved_table_demand_color, primary_status, secondary_status, secondary_tf_enabled, show_secondary_tf, secondary_tf_is_higher, secondary_tf_label_input, zone_horizon, zone_display_scope, horizon_start_text, show_session_context, session_context_text_input, session_standard)
Renders/removes the operational Status table from already-decided source snapshots.
Parameters:
show_status_table (bool)
status_table_mode (simple string)
table_position (simple string)
table_text_size (simple string)
table_bg_color (color)
table_text_color (color)
table_accent_color (color)
status_show_lines (bool)
status_line_color (color)
resolved_table_supply_color (color)
resolved_table_demand_color (color)
primary_status (StatusSource)
secondary_status (StatusSource)
secondary_tf_enabled (bool)
show_secondary_tf (bool)
secondary_tf_is_higher (bool)
secondary_tf_label_input (string)
zone_horizon (simple string)
zone_display_scope (simple string)
horizon_start_text (string)
show_session_context (bool)
session_context_text_input (string)
session_standard (simple string)
Информация о релизе
v3Added:
newDisplayState()
Creates persistent zone-display object storage owned by the UI library.
clearZoneDisplay(state)
Deletes all currently rendered S&D zone boxes and hover markers.
Parameters:
state (DisplayState)
drawZone(state, zone, active_right_time, extend_active, show_tooltip, primary_supply_color, primary_demand_color, filled_supply_color, filled_demand_color, supply_marker_color, demand_marker_color, secondary_zone_transparency, secondary_border_transparency, timezone_name)
Draws one already-selected S&D zone. The protected indicator decides selection, lifecycle and structural authority before this call.
Parameters:
state (DisplayState)
zone (ZoneView)
active_right_time (int)
extend_active (bool)
show_tooltip (bool)
primary_supply_color (color)
primary_demand_color (color)
filled_supply_color (color)
filled_demand_color (color)
supply_marker_color (color)
demand_marker_color (color)
secondary_zone_transparency (int)
secondary_border_transparency (int)
timezone_name (string)
zoneBoxCount(state)
Number of zone boxes currently rendered by this state.
Parameters:
state (DisplayState)
ZoneView
Fields:
side (series string)
secondary (series bool)
filled (series bool)
immediate (series bool)
swing (series bool)
swing_family (series string)
state (series string)
interaction (series string)
birth_time (series int)
confirmation_time (series int)
zone_id (series int)
pivot_class (series string)
source_context (series string)
source_timeframe (series string)
original_lower (series float)
original_upper (series float)
current_lower (series float)
current_upper (series float)
consumed (series bool)
consumed_time (series int)
consumed_event_time (series int)
consumption_pathway (series string)
partial_pct (series float)
wick_pct (series float)
wick_tested (series bool)
wick_test_event_count (series int)
partial_event_count (series int)
DisplayState
Fields:
boxes (array<box>)
tooltip_labels (array<label>)
Информация о релизе
v4Added:
formatRange(lower, upper)
Compact mintick-formatted price range.
Parameters:
lower (float)
upper (float)
formatPercent(value)
Percentage display string.
Parameters:
value (float)
formatTimeframe(tf)
TradingView timeframe string -> compact XZ display label.
Parameters:
tf (string)
formatDistance(distance_value, reference_price, is_supply)
Signed Status distance as a percentage of supplied reference price.
Parameters:
distance_value (float)
reference_price (float)
is_supply (bool)
statusState(lifecycle_state, partial_pct)
Presentation state string; Partial receives its already-calculated depth.
Parameters:
lifecycle_state (string)
partial_pct (float)
authority(is_swing, swing_family)
Presentation-only structural authority label.
Parameters:
is_swing (bool)
swing_family (string)
swingState(swing_family, status_state)
Presentation-only Swing family + lifecycle state.
Parameters:
swing_family (string)
status_state (string)
Информация о релизе
v5Added:
newCandidatePool()
Creates reusable candidate/ranking storage for last-bar display preparation.
clearCandidates(pool)
Clears one reusable display candidate pool.
Parameters:
pool (CandidatePool)
scopeAllows(display_scope, is_immediate, is_swing)
Applies the user-selected Display Scope to already-decided hierarchy flags.
Parameters:
display_scope (string)
is_immediate (bool)
is_swing (bool)
addCandidate(pool, zone_type, array_idx, birth_time, is_immediate, is_swing, is_filled)
Adds one already-admitted display candidate and assigns presentation priority.
Immediate > Swing > ordinary active > filled history; newer wins inside equal priority.
Parameters:
pool (CandidatePool)
zone_type (string)
array_idx (int)
birth_time (int)
is_immediate (bool)
is_swing (bool)
is_filled (bool)
rankedIndices(pool)
Returns candidate indexes ordered by presentation priority/newness.
Parameters:
pool (CandidatePool)
getCandidate(pool, candidate_index)
Returns one stored candidate by pool index.
Parameters:
pool (CandidatePool)
candidate_index (int)
budgetedCount(ranked_indices, available_boxes)
Returns how many ranked candidates may render after the caller supplies remaining box budget.
Parameters:
ranked_indices (array<int>)
available_boxes (int)
Candidate
Fields:
zone_type (series string)
array_idx (series int)
birth_time (series int)
CandidatePool
Fields:
items (array<Candidate>)
scores (array<float>)
Информация о релизе
v6Информация о релизе
v7Updated:
ZoneView
Fields:
side (series string)
secondary (series bool)
filled (series bool)
immediate (series bool)
swing (series bool)
swing_family (series string)
state (series string)
interaction (series string)
birth_time (series int)
confirmation_time (series int)
origin_event_time (series int)
confirmation_event_time (series int)
zone_id (series int)
pivot_class (series string)
source_context (series string)
source_timeframe (series string)
original_lower (series float)
original_upper (series float)
current_lower (series float)
current_upper (series float)
consumed (series bool)
consumed_time (series int)
consumed_event_time (series int)
consumption_pathway (series string)
partial_pct (series float)
wick_pct (series float)
wick_tested (series bool)
wick_test_event_count (series int)
partial_event_count (series int)
Информация о релизе
v8Информация о релизе
v9Updated:
renderQuickRead(show_quick_read, quick_read_position, quick_read_text_size, quick_read_bg_color, quick_read_text_color, quick_read_accent_color, quick_read_show_lines, quick_read_line_color)
Renders/removes the XZ S&D Quick Read onboarding table.
Parameters:
show_quick_read (bool)
quick_read_position (simple string)
quick_read_text_size (simple string)
quick_read_bg_color (color)
quick_read_text_color (color)
quick_read_accent_color (color)
quick_read_show_lines (bool)
quick_read_line_color (color)
renderGlossary(show_glossary, glossary_position, glossary_text_size, bg_color, text_color, accent_color, show_lines, line_color)
Renders/removes the XZ S&D chart glossary.
Parameters:
show_glossary (bool)
glossary_position (simple string)
glossary_text_size (simple string)
bg_color (color)
text_color (color)
accent_color (color)
show_lines (bool)
line_color (color)
Информация о релизе
v10Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.