# Limits

> Every limit a script, a chart and a publication runs into on Tradequix, with the exact numbers and what happens when you hit one.

Limits exist so one script cannot freeze a chart or drain the feed for everyone. These are the real numbers.

## A script run

| Limit | Value | When you hit it |
| --- | --- | --- |
| Run time | 8 seconds | The run stops: "Script did not finish within 8000ms" |
| Loops | An iteration ceiling inside the engine | "Loop exceeded maximum iterations" |
| `request.*` contexts | 40 per script | "The script executes too many request.*() function calls." |
| History per `request.security` | 3,600 candles (20 pages of 180) | A warning; older values are na |
| Fetches per run | 60 | "This script asked for too much history in one run." |
| Each fetch | 15 seconds to answer | The request fails |
| Array, matrix, table size | 100,000 elements | "The requested size exceeds the 100000 element limit." |
| `calc_bars_count` | Capped at 100,000 | Silently capped |
| Script source | 200,000 bytes | Cannot be saved |

## A chart

| Limit | Value |
| --- | --- |
| Indicators on one chart | 50 |
| Plot style overrides per indicator | 64 |
| Indicator templates per account | 50, each holding up to 50 indicators |
| Saved layouts | 30 |
| Price alerts | 200, firing at most 60 times an hour |

## Publishing

| Limit | Value |
| --- | --- |
| Public publications | 5 per day and 15 per month (updates do not count) |
| Edit window after publishing | 15 minutes |
| Description | 10,000 characters |
| Release notes | 5,000 characters |
| Access-request instructions | 1,000 characters |
| Tags | 10 |
| Comment | 4,000 characters |
| Scripts in one paid space | 50 |
| Access grants on a privately published invite-only script | 5 |
| Published-chart captures | 10 per hour |
