Wiki

Description

Assistant capabilities

Overview

TWM has an AI assistant (Claude) built directly into the application through an in-process MCP server. Because it runs inside TWM itself, it can inspect and drive the live app the same way a user would — reading what's on screen, opening and reconfiguring charts, managing connections and trading accounts, placing and adjusting live orders — and it can also read and write C# code to build custom indicators and strategies, compiling them against the running instance.


Three built-in workflows route what the assistant does:


You want to…The assistant…
Build or modify a custom indicator / strategyReads the TWM reference docs and live type information, writes C# code into the project, and compiles it, fixing errors until it builds clean
Place, close, cancel, or modify live ordersResolves the right account/instrument, places the trade, and confirms the real outcome (fill, rejection, etc.) rather than assuming success
Control the UI — charts, connections, workspaces, windows, optionsOperates the app directly: opens/edits charts, connects data sources, manages instrument lists, switches workspaces, opens tool windows, changes display options


Everything below is the full catalog of individual capabilities (tools) available to the assistant, grouped by area. Exact parameters are omitted here — this is a "what can it do" reference, not a technical API spec.


App Status

  1. StatusReport — quick health check: is the user authenticated, is the custom project compiled, and what accounts are configured.


Connections

  1. GetConnections — list all configured exchange/broker connections and their live status.
  2. ResolveConnectionId — find a connection's id from its name or code.
  3. GetSupportedConnectionTypes — see which connection types can be newly created.
  4. CreateConnection — add a new connection with default settings.
  5. DeleteConnection — remove a connection (refused if it still has stored API keys, for safety).
  6. ToggleConnection — connect or disconnect a configured connection.


Instruments

  1. GetStoredSymbols — list instruments already saved locally for a connection.
  2. GetStoredInstrumentInfo — get full metadata for one already-stored instrument.
  3. ResolveInstrumentId — find a stored instrument's id from its connection/type/symbol.
  4. GetExchangeSymbols — list instruments currently offered live by the exchange (not necessarily imported yet).
  5. GetExchangeInstrumentInfo — get full metadata for one instrument straight from the exchange.
  6. AddAllExchangeSymbols — import every exchange instrument of a type into local storage in one go.
  7. AddExchangeSymbols — import a specific set of exchange instruments into local storage.


Instrument Lists

  1. GetInstrumentLists — list all saved instrument lists (watchlists).
  2. GetInstrumentList — get one list's full details, including its symbols.
  3. GetInstrumentListName — look up a list's name by id.
  4. CreateInstrumentList — create a new, empty instrument list.
  5. AddAllInstrumentsToList — bulk-populate a list, optionally syncing from the exchange first.
  6. AddInstrumentsToList — add specific symbols to a list.
  7. RemoveInstrumentsFromList — remove specific symbols from a list.
  8. DeleteInstrumentList — delete a list (default lists are protected).


Orders & Trading

  1. GetAccounts — list active trading accounts across all connections.
  2. ResolveAccountId — find a specific account's id from its connection (and type, if there's more than one).
  3. GetOrders — list an account's orders and their live state.
  4. GetOrder — check one specific order's live state.
  5. GetPositions — list an account's open positions.
  6. GetAssets — list an account's asset balances.
  7. BuyMarket / SellMarket — place a market order.
  8. BuyLimit / SellLimit — place a limit order.
  9. BuyStopMarket / SellStopMarket — place a stop-market order.
  10. BuyStopLimit / SellStopLimit — place a stop-limit order.
  11. ClosePosition — flatten an open position with an opposite market order.
  12. CancelOrder — cancel a working order.
  13. ChangeOrderQuantity — resize a working order.
  14. ChangeOrderPrice — reprice a working order.


Charts

  1. GetCharts — list every chart currently open, with its symbol, timeframe, indicators, and running strategies.
  2. ResolveChartId — find a specific open chart's id when you only know its connection/symbol/timeframe.
  3. CreateChart — open a new chart for a given connection, instrument, timeframe, and history window.
  4. SetSymbol — switch an open chart to a different instrument.
  5. SetTimeFrame_Days — reset an open chart's date range to "N days back from today (or another end date)."
  6. SetTimeFrame_Period — reset an open chart's date range to an explicit start/end.
  7. CloseChart — close an open chart.
  8. SetDataBoxVisible — show/hide the Data Box panel on a chart.
  9. SetCrossLineVisible — show/hide the crosshair on a chart.
  10. SetTimeAndSaleVisible — show/hide the Time & Sale panel on a chart.
  11. SetPerformanceVisible — show/hide a running strategy's performance overlay on a chart.
  12. SetChartTraderState — switch the Chart Trader panel between hidden/visible modes.
  13. SetDrawingModeVisible — show/hide the drawing tools panel on a chart.
  14. ShowIndicatorsWindow — open the Indicators picker for a chart.
  15. ShowStrategiesWindow — open the Strategies picker for a chart.
  16. SetChartStyle — switch a chart's rendering style (e.g. candlestick vs. OHLC bars).


Tool Windows

  1. NewValidator — open a new strategy Validator window.
  2. NewOptimizer — open a new strategy Optimizer window.
  3. NewStrategyPortfolio — open a new Strategy Portfolio (Executor) window.


Workspace

  1. SaveWorkspace — save the current workspace layout in place.
  2. SaveWorkspaceAs — save the current layout as a new named workspace.
  3. RestoreWorkspace — revert to the last saved state.
  4. LoadDefaultWorkspace — switch to the Default workspace.
  5. ConfigureWorkspaces — open the workspace configuration window.


Display Options

  1. SetTheme — change the UI theme.
  2. SetLanguage — change the UI language.
  3. SetPlotExecutions — change how trade executions are drawn on charts.
  4. ResetDisplayOptions — reset the current theme's display settings to defaults.


Reading & Exploring the TWM Codebase

Used mainly while writing or fixing indicators/strategies, so the assistant never has to guess a method signature.

  1. NewGUID — generate a fresh unique id, needed for every new indicator/strategy file.
  2. ListAssemblies — see which TWM assemblies are available to build against.
  3. ListAssemblyNamespaces — browse the namespaces inside one of those assemblies.
  4. ListNamespaceTypes — browse the classes/interfaces/structs/enums inside a namespace.
  5. DescribeType — get a type's full public surface (methods, properties, fields, base type) before writing a call against it.
  6. DescribeMember — get the exact overload signatures of one specific method/property/field by name.
  7. ListTypeMembers — dump every member of a given kind (methods, properties, or fields) for a type at once.


Build

  1. BuildProject — compile the custom indicators/strategies project and report any errors.


Good to know

  1. Real-money safety. Every order-placement tool (Buy*/Sell*) requires an explicit confirmation flag before it will act on a real-money (Broker) account — the assistant should always check with you first. ClosePosition is the one exception: it isn't gated by that flag, so treat any position-closing request on a live account as something to confirm with the user before acting, regardless.
  2. Trading calls confirm real outcomes. Placing, cancelling, or changing an order only confirms that TWM/the exchange accepted the request — the assistant follows up by checking the order's actual state rather than assuming success.
  3. A few chart edits take a moment. Changing a chart's symbol or date range can take a few seconds to complete before the assistant reports back.
  4. Status isn't filtered. The app-status check reports every configured account, not just active ones.


Necessary cookies help make the website usable by enabling basic functions such as consent storage, security protection, language preferences, and authentication.

  • Necessary cookies

    UserUUID

    Technical identifier used to manage and persist cookie consent preferences.

    Maximum storage duration: 12 Months | Type: Necessary cookies
    consent

    Stores your cookie consent choices and selected preferences.

    Maximum storage duration: 12 Months | Type: Necessary cookies
    .AspNet.Consent

    Indicates whether the user has provided cookie consent.

    Maximum storage duration: 1 Year | Type: Necessary cookies
    .AspNetCore.Antiforgery

    Used to prevent CSRF attacks and protect form submissions and user data.

    Maximum storage duration: Session | Type: Necessary cookies
    .AspNetCore.Cookies

    Used to manage authentication information and signed-in sessions.

    Maximum storage duration: 1 Year | Type: Necessary cookies
    .AspNetCore.Culture

    Stores the user’s language and localization preferences.

    Maximum storage duration: 1 Year | Type: Necessary cookies

Functional cookies allow the website to remember preferences and support enhanced features or integrations such as Google services, maps, embedded media, or account-related personalization.

  • Functional Cookies

    LSOLH

    Used by Google to store session information and support service-related functionality.


    Maximum storage duration: Session | Type: Functional Cookies
    COMPASS

    Used by Google to remember settings and improve navigation across integrated services.

    Maximum storage duration: 6 Months | Type: Functional Cookies
    ACCOUNT_CHOOSER

    Remembers which Google accounts have been used on the device.

    Maximum storage duration: 1 Year | Type: Functional Cookies
    APISID

    Used by Google to store preferences and information when using integrated Google services such as Maps.

    Maximum storage duration: 2 Years | Type: Functional Cookies
    LSID

    Used by Google to store preferences while viewing pages that incorporate Google services.

    Maximum storage duration: 2 Years | Type: Functional Cookies
    SAPISID

    Used by Google services to support embedded content, maps, and account-related personalization.

    Maximum storage duration: 2 Years | Type: Functional Cookies
    __Host-GAPS

    Used by Google to support service preferences and related functionality on pages integrating Google services.

    Maximum storage duration: 2 Years | Type: Functional Cookies

Statistical cookies help us understand how visitors interact with the site, measure traffic, and improve services. Data is processed in aggregated or pseudonymized form by providers such as Google and Yandex.

  • Statistical Cookies

    _ga, _ga_*

    Google Analytics cookies used to distinguish users and sessions for traffic measurement and site usage analysis.


    Maximum storage duration: 2 Years | Type: Statistical Cookies
    _gid

    Google Analytics cookie used to distinguish users within a single day session.

    Maximum storage duration: 24 Hours | Type: Statistical Cookies
    _ym_uid

    Yandex Metrica unique visitor identifier used to distinguish users across sessions.

    Maximum storage duration: 1 Year | Type: Statistical Cookies
    _ym_d

    Yandex Metrica cookie that stores the date of the user's first visit.

    Maximum storage duration: 1 Year | Type: Statistical Cookies
    _ym_isad

    Yandex Metrica cookie used to detect whether the user has an ad blocker enabled.

    Maximum storage duration: 2 Days | Type: Statistical Cookies
    _ym_visorc

    Yandex Metrica Webvisor cookie used to record and replay user sessions for usability analysis.

    Maximum storage duration: 30 Minutes | Type: Statistical Cookies

Marketing cookies are used for advertising, campaign attribution, conversion tracking, personalization, and cross-platform measurement by providers such as Google, Microsoft, Meta, and TikTok.

  • Marketing Cookies

    AID

    Used by Google to link activity across devices and improve ad attribution.


    Maximum storage duration: 1 Year | Type: Marketing Cookies
    ANONCHK

    Used by Microsoft Advertising to validate and support ad-related requests.

    Maximum storage duration: 10 Minutes | Type: Marketing Cookies
    MUID

    Microsoft advertising identifier used to recognize browsers across Microsoft domains.

    Maximum storage duration: 13 Months | Type: Marketing Cookies
    __Secure-3PSID, __Secure-3PAPISID, __Secure-3PSIDTS, __Secure-3PSIDCC

    Google advertising and personalization cookies used to build preference profiles and support ad delivery.

    Maximum storage duration: 2 Years | Type: Marketing Cookies
    ADS_VISITOR_ID

    Used by Google to identify visitors for advertising and attribution purposes.

    Maximum storage duration: 2 Years | Type: Marketing Cookies
    OTZ

    Used by Google to support ad personalization and service optimization.

    Maximum storage duration: 1 Month | Type: Marketing Cookies
    __Secure-1PAPISID, __Secure-1PSID

    Google cookies used to support more relevant ads and account-related ad security.

    Maximum storage duration: 2 Years | Type: Marketing Cookies
    IDE, DSID, FLC

    DoubleClick / Google Ads cookies used for campaign attribution, ad delivery, and remarketing.

    Maximum storage duration: Varies by cookie | Type: Marketing Cookies
    datr, fr, sb, xs

    Meta / Facebook cookies used for browser recognition, security, ad measurement, and personalization across Meta services and partner sites.

    Maximum storage duration: Varies by cookie | Type: Marketing Cookies
    ttcsid

    TikTok identifier used for session-level event attribution, conversion tracking, and advertising measurement.

    Maximum storage duration: Varies by configuration | Type: Marketing Cookies
    ttcsid_D5GFV53C77U3VC0C2T50

    TikTok pixel-specific session cookie used for conversion attribution and advertising performance reporting.

    Maximum storage duration: Varies by configuration | Type: Marketing Cookies
    odin_tt

    TikTok cookie used for campaign attribution, browser recognition, and advertising performance measurement.

    Maximum storage duration: Varies by cookie | Type: Marketing Cookies
    tt_chain_token

    TikTok cookie used for event attribution and campaign linkage across sessions.

    Maximum storage duration: Varies by cookie | Type: Marketing Cookies
    ttwid

    TikTok browser identifier used for attribution, advertising measurement, and remarketing support.

    Maximum storage duration: Varies by cookie | Type: Marketing Cookies
    NID, UULE

    Google cookies that may support ad personalization, localization, and service preference handling depending on the integration and browser state.

    Maximum storage duration: Varies by cookie | Type: Marketing Cookies
    SEARCH_SAMESITE

    Google cookie used to support secure cookie handling across requests and service interactions.

    Maximum storage duration: 6 Months | Type: Marketing Cookies
About cookies and consent

This website uses cookies and similar technologies to ensure its proper functioning and, with your consent, to support functionality, measure usage, improve performance, and provide advertising, attribution, or personalized content. The legal basis for the use of necessary cookies is the legitimate interest of the data controller (Art. 6(1)(f) GDPR), while functional, statistical, and marketing cookies are used only upon your explicit consent (Art. 6(1)(a) GDPR).

Cookies are small text files stored on your device to make the website work efficiently and improve your experience. Some cookies are placed directly by us, while others may be set by third-party services integrated into our pages.

Cookie categories
  • Necessary cookies: enable core site functionality such as consent storage, language selection, authentication, and access to secure areas. These cannot be disabled.
  • Functional cookies: allow the website to remember settings and support integrations such as embedded or third-party services.
  • Statistical cookies: collect usage and performance data to help understand and improve the site.
  • Marketing cookies: support advertising, campaign attribution, personalization, and remarketing across providers and services.
Storage and consent management

Your cookie preferences are stored locally in a cookie named consent, valid for 12 months, and pseudonymously on our systems using a technical identifier (UserUUID), which does not allow direct identification of the user. You may change or withdraw your consent at any time via the cookie settings button visible at the bottom left of the site.

Third-party cookies

Some cookies are provided by third-party services such as Google, Microsoft, Meta, TikTok, and Yandex. These third parties may act as independent controllers for the data collected through their own technologies and services.

Your rights

You can withdraw or modify your consent at any time, delete cookies through your browser settings, and exercise your rights under Articles 15–22 GDPR (access, rectification, deletion, limitation, opposition, portability) by contacting us via the details provided in the Privacy Policy.

This Cookie Policy is aligned with Regulation (EU) 2016/679 (GDPR) and the ePrivacy Directive.