Skip to content
ChartDeck ChartScript docs Account Open the terminal

CS3004

error This script uses n other timeframes or markets; your plan allows max.

#What it means

Each distinct pair of market and timeframe your requests use is one data context. This script uses more of them than your plan allows (20 on Beginner, 40 on Plus, 80 on Pro, 128 on Elite).

#Typical cause

  • Many request.tf / request.market calls with different timeframes or markets.

#How to fix it

  • Reuse contexts: several values from one market and timeframe can come from one request that returns a tuple.
  • Drop timeframes or markets you do not need, or upgrade your plan. See Other timeframes and markets.

#Example

The limit depends on your plan and needs more than 20 different requests, too long to show here.

  • CS3121 — A request cannot sit inside another request’s expression.
  • CS3103 — There are no "tf" bars: the seconds timeframes are 1S, 5S, 10S, 15S, 30S and 45S. This request gives na.

The ChartScript documentation is in English for now; translations will follow.