Show Session-type options in the Strategy settings panel

Add support for the existing Session (TOptionType.SESSION) and Sessions Array (TOptionType.SESSIONS_ARRAY) option types in the strategy settings panel, mirroring what is already available in the indicator settings panel when you add the trading sessions indicator.

Current behavior

The strategy API already provides everything needed to build session options:

  • api.createTOptValue_Session(isEnabled, name, startTime, endTime, color) and api.createTOptValue_SessionsArray(...)

  • TOptionType.SESSION / TOptionType.SESSIONS_ARRAY accepted by RegOption(...)

  • Saved and loaded correctly β€” the strategy settings data layer already parses these types.

However, the strategy settings UI never displays them.

Expected behavior

  • A strategy that registers SESSION (or SESSIONS_ARRAY) options shows them in the strategy settings panel.

  • The session editor provides the per-session enable checkbox, start/end time pickers, and color, and writes changes back to the option so isEnabled, startTime, endTime, and color are updated for the strategy.

Why this matters

Trading strategies commonly need user-configurable market sessions (Asian / London / New York) with custom start and end times.

Today the only workaround is a combination of separate BOOLEAN toggles and TIME_ONLY pickers β€” clunkier, no per-session color, and a worse representation of overnight windows.

Native session options in the strategy panel would match the experience users already have with indicators like the trading sessions indicator.

Acceptance criteria

  1. A strategy registering one or more SESSION options displays them in the strategy settings modal.

  2. Editing times / enable / color in the UI updates the values returned to the strategy (isEnabled, startTime, endTime, color).

  3. SESSIONS_ARRAY (adding/removing custom sessions) also works in the strategy panel.

  4. No change to the existing API surface is required.

How does this impact your experience?
Medium Priority

Share update with 0 linked conversations as well

Upvoters
Status

In Review

Board

πŸ’‘ Feature Request

Date

19 days ago

Author

Anthony Irwin

Subscribe to post

Get notified by email when there are changes.