Custom View

Modified on Thu, 30 Jan at 1:31 PM

Description

The Custom View indicator is a demonstration tool designed to showcase custom property displays in the ATAS interface. It does not perform any calculations or affect market data. Its primary purpose is to illustrate how custom views (UI) can be used for indicator configuration through XAML.


How It Works

Unlike standard ATAS indicators, the Custom View indicator defines its properties and their appearance using a separate XAML file. This file is responsible for rendering a custom property editor that is loaded into the ATAS indicator settings panel.

Key Features:

  • Property editor is created in XAML instead of being defined in C# code.
  • Fully customizable UI, allowing modifications to property displays.
  • Useful for creating indicators with unique settings, beyond the default UI elements.

Available Properties

1. Custom Properties

  • String – Input field for text values.
  • Number – Input field for numeric values.

2. Drawing (Display Settings)

  • Panel – Determines where the indicator is drawn (Chart, Subwindow).
  • Visual Mode – Defines the rendering mode (Line, Bar, Area, etc.).
  • Line Style – Specifies the line type (Solid, Dashed, Dotted, etc.).
  • Width – Sets the line thickness.
  • Color – Selects the line color.
  • Text Color – Configures the text color.

3. Additional Settings

  • Show Value – Displays the value on the chart.
  • Draw Above Price – Renders the indicator above the price.
  • Show Zero Values on Axis – Displays zero values on the axis.
  • Scale – Enables/disables scaling.
  • Ignored by Alerts – Prevents the indicator from being used in alerts.

Source Code

The source code for the Custom View indicator, including the XAML file for the custom UI editor, is available in the Technical repository on GitHub.


Link to the latest branch:
Go to Technical repository (latest)


Conclusion

The Custom View indicator demonstrates the customization capabilities of the ATAS UI. It is useful for developers looking to create custom indicators with unique property editors. Using XAML for UI management allows for flexible customization, making it an excellent approach for extending ATAS functionality.

If you are developing your own indicators and want to incorporate custom UI elements in the editor, studying the Technical repository code can serve as a great example.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article