# 1.1 Access to the Sway Charts scripting framework (UDI vs UDIX)

When a UDI is added to a chart, it can optionally also be given access to the Sway Charts scripting framework. This lets it see any framework data such as the order list, and lets it carry out actions such as placing trades. In Sway Charts terminology, this turns the UDI into a UDIX.

Like anything with framework access, a UDIX can be “not just an indicator”. The ability to place trades means that a UDIX can implement a trading algo, and using the indicator features to draw its activity on the chart.

This guide only covers the core indicator functionality of drawing on the trading chart. The scripting framework is described separately:


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sway-technologies.gitbook.io/sway-charts-pro-scripts-documentation/sway-charts-pro-user-defined-indicators/introduction/1.1-access-to-the-sway-charts-scripting-framework-udi-vs-udix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
