# Indicators with Header

This chart uses the [Bento box](/dev/elements/create-your-own-charts/bento-box.md) to join an html header component with a group of indicators.

## The Method To Use <a href="#the-method-to-use" id="the-method-to-use"></a>

The method is `s.plt.indicators_with_header()`

It must contain the following input variables:

```python
order: int 
# List of groups of indicators, each one of them will be used as the input
# of an indicators function call
indicators_groups: List[Union[pd.DataFrame, List[Dict]]]
# Header configuration
title: str
```

Accepts the following input variables as optional:

```python
# The parameters that will be passed to the indicators calls
indicators_parameters: Optional[dict] = None
subtitle: str = ''
background_color: str = 'var(--color-primary)'
text_color: str = 'var(--background-paper)'
icon_url: str = 'https://uploads-ssl.webflow.com/619f9fe98661d321dc3beec7/63e3615716d4435d29e0b82c_Acurracy.svg' 
cols_size: int = 12
```

{% hint style="info" %}
Because it is using multiple indicators the function will return the next available order
{% endhint %}

## Examples

With this example it can be seen how to use the function with parameters for the indicator

```python
indicators_groups = [
    [
        {
            "description": "% of times the algorithm has predicted the relative position of NY prices with respect to HK prices correctly",
            "title": "Accuracy",
            "value": "76.67%",
            "align": "left",
            "color": "success",
            "variant": "contained"
        },
        {
            "description": "Total of successes predictions",
            "title": "True",
            "value": "154",
            "align": "left",
            "color": "success"
        },
        {
            "description": "Total of Failed predictions",
            "title": "False",
            "value": "22",
            "align": "left",
            "color": "error",
        },
        {
            "description": "Return of investment",
            "title": "ROI",
            "value": "1.5M",
            "align": "left",
            "color": "",
        },
    ]
]

s.plt.indicators_with_header(
    order=0, title='Accuracy', subtitle='Cross-listed trading suite',
    indicators_groups=indicators_groups,
    indicators_parameters=dict(
        cols_size=24,
    )
)
```

<figure><img src="/files/iOTAeWiVLU0gNmIYc1vd" alt=""><figcaption></figcaption></figure>


---

# 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://docs.shimoku.com/dev/elements/charts/indicators/indicators-with-header.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.
