Aktualisiert
XZ_SD_Session_Context

Library "XZ_SD_Session_Context"
XZ S&D Session Context v1. Display-only S&D support library for bounded recurring session High-Low frames. It owns S&D session window storage, Horizon clipping, occurrence retention, frame rendering and live session text while delegating canonical clocks/masks to XZ Session Authority.
newState()
Creates one persistent S&D Session Context runtime state.
customSpec(open_hhmm, close_hhmm, weekdays_only)
Builds the Custom session specification used by the chart/lower-TF membership sample request.
Parameters:
open_hhmm (simple string)
close_hhmm (simple string)
weekdays_only (simple bool)
processDirect(state, enabled, standard, show_sydney, show_tokyo, show_london, show_new_york, custom_timezone, exchange_timezone, horizon, horizon_timezone, sample_time, sample_close_time, sample_high, sample_low, native_market_bar, custom_bar)
Processes one direct chart-context sample. Repeated realtime calls are allowed so the live session High/Low can expand intrabar.
Parameters:
state (State)
enabled (bool)
standard (simple string)
show_sydney (bool)
show_tokyo (bool)
show_london (bool)
show_new_york (bool)
custom_timezone (simple string)
exchange_timezone (simple string)
horizon (simple string)
horizon_timezone (simple string)
sample_time (int)
sample_close_time (int)
sample_high (float)
sample_low (float)
native_market_bar (bool)
custom_bar (bool)
processLower(state, enabled, standard, show_sydney, show_tokyo, show_london, show_new_york, custom_timezone, exchange_timezone, horizon, horizon_timezone, sample_time, sample_close_time, sample_high, sample_low, native_market_bar, custom_bar)
Processes one reconstructed lower-timeframe sample. Duplicate/previous sample timestamps are ignored internally.
Parameters:
state (State)
enabled (bool)
standard (simple string)
show_sydney (bool)
show_tokyo (bool)
show_london (bool)
show_new_york (bool)
custom_timezone (simple string)
exchange_timezone (simple string)
horizon (simple string)
horizon_timezone (simple string)
sample_time (int)
sample_close_time (int)
sample_high (float)
sample_low (float)
native_market_bar (bool)
custom_bar (bool)
render(state, enabled, standard, show_sydney, show_tokyo, show_london, show_new_york, history_occurrences, show_codes, frame_transparency, single_color, sydney_color, tokyo_color, london_color, new_york_color, horizon, horizon_timezone, reference_time)
Renders bounded Session Context frames. This display layer never feeds S&D authority.
Parameters:
state (State)
enabled (bool)
standard (simple string)
show_sydney (bool)
show_tokyo (bool)
show_london (bool)
show_new_york (bool)
history_occurrences (int)
show_codes (bool)
frame_transparency (int)
single_color (color)
sydney_color (color)
tokyo_color (color)
london_color (color)
new_york_color (color)
horizon (simple string)
horizon_timezone (simple string)
reference_time (int)
displayCount(state)
Number of currently rendered Session Context boxes.
Parameters:
state (State)
liveText(state, enabled, standard)
Live active-session text for Status.
Parameters:
state (State)
enabled (bool)
standard (simple string)
Window
Fields:
session_index (series int)
occurrence_key (series int)
open_time (series int)
scheduled_close_time (series int)
last_sample_time (series int)
high (series float)
low (series float)
State
Fields:
active (array<Window>)
completed (array<Window>)
displayed (array<box>)
parent_cutoff (series int)
active_mask (series int)
last_processed_lower_time (series int)
XZ S&D Session Context v1. Display-only S&D support library for bounded recurring session High-Low frames. It owns S&D session window storage, Horizon clipping, occurrence retention, frame rendering and live session text while delegating canonical clocks/masks to XZ Session Authority.
newState()
Creates one persistent S&D Session Context runtime state.
customSpec(open_hhmm, close_hhmm, weekdays_only)
Builds the Custom session specification used by the chart/lower-TF membership sample request.
Parameters:
open_hhmm (simple string)
close_hhmm (simple string)
weekdays_only (simple bool)
processDirect(state, enabled, standard, show_sydney, show_tokyo, show_london, show_new_york, custom_timezone, exchange_timezone, horizon, horizon_timezone, sample_time, sample_close_time, sample_high, sample_low, native_market_bar, custom_bar)
Processes one direct chart-context sample. Repeated realtime calls are allowed so the live session High/Low can expand intrabar.
Parameters:
state (State)
enabled (bool)
standard (simple string)
show_sydney (bool)
show_tokyo (bool)
show_london (bool)
show_new_york (bool)
custom_timezone (simple string)
exchange_timezone (simple string)
horizon (simple string)
horizon_timezone (simple string)
sample_time (int)
sample_close_time (int)
sample_high (float)
sample_low (float)
native_market_bar (bool)
custom_bar (bool)
processLower(state, enabled, standard, show_sydney, show_tokyo, show_london, show_new_york, custom_timezone, exchange_timezone, horizon, horizon_timezone, sample_time, sample_close_time, sample_high, sample_low, native_market_bar, custom_bar)
Processes one reconstructed lower-timeframe sample. Duplicate/previous sample timestamps are ignored internally.
Parameters:
state (State)
enabled (bool)
standard (simple string)
show_sydney (bool)
show_tokyo (bool)
show_london (bool)
show_new_york (bool)
custom_timezone (simple string)
exchange_timezone (simple string)
horizon (simple string)
horizon_timezone (simple string)
sample_time (int)
sample_close_time (int)
sample_high (float)
sample_low (float)
native_market_bar (bool)
custom_bar (bool)
render(state, enabled, standard, show_sydney, show_tokyo, show_london, show_new_york, history_occurrences, show_codes, frame_transparency, single_color, sydney_color, tokyo_color, london_color, new_york_color, horizon, horizon_timezone, reference_time)
Renders bounded Session Context frames. This display layer never feeds S&D authority.
Parameters:
state (State)
enabled (bool)
standard (simple string)
show_sydney (bool)
show_tokyo (bool)
show_london (bool)
show_new_york (bool)
history_occurrences (int)
show_codes (bool)
frame_transparency (int)
single_color (color)
sydney_color (color)
tokyo_color (color)
london_color (color)
new_york_color (color)
horizon (simple string)
horizon_timezone (simple string)
reference_time (int)
displayCount(state)
Number of currently rendered Session Context boxes.
Parameters:
state (State)
liveText(state, enabled, standard)
Live active-session text for Status.
Parameters:
state (State)
enabled (bool)
standard (simple string)
Window
Fields:
session_index (series int)
occurrence_key (series int)
open_time (series int)
scheduled_close_time (series int)
last_sample_time (series int)
high (series float)
low (series float)
State
Fields:
active (array<Window>)
completed (array<Window>)
displayed (array<box>)
parent_cutoff (series int)
active_mask (series int)
last_processed_lower_time (series int)
Versionshinweise
v2Added:
activeWindow(state, session_index)
Returns the active retained window for a session index, or na when none is active.
Parameters:
state (State)
session_index (int)
latestCompleted(state, session_index, before_close_time)
Returns the latest completed window for a session index. When before_close_time is supplied, only windows closing strictly before that timestamp qualify.
Parameters:
state (State)
session_index (int)
before_close_time (int)
Updated:
customSpec(open_hhmm, close_hhmm, weekdays_only)
Builds the Custom session specification used by chart/lower-TF membership samples.
Parameters:
open_hhmm (simple string)
close_hhmm (simple string)
weekdays_only (simple bool)
Versionshinweise
v3Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.