An indicator from a description

Beginner 4 min

A good indicator often lives only in a trader's head: "mark bars where volume is high and delta goes against the candle." You used to need a programmer for that.

Now you describe the condition in words. The agent writes the indicator, tests it on your bars and tells you how many bars it marked.

Prompt
Make me an ATAS indicator that marks bars where volume is more than twice the 20-bar average and delta goes against the candle color. Make the multiplier and the length settings. First test it on my BTCUSDT 5m chart without saving and tell me how many bars it marks. If everything looks right, save it and add it to this chart.

What happens

The agent writes the script, runs it on the chart's bars without saving and recalculates the result a separate way.

Chat with the AI agent
You

Make me an ATAS indicator that marks bars where volume is more than twice the 20-bar average and delta goes against the candle color. Make the multiplier and the length settings. First test it on my BTCUSDT 5m chart without saving and tell me how many bars it marks. If everything looks right, save it and add it to this chart.

AI agent

Done. The test without saving showed 27 marked candles on the last 2,000 bars of BTCUSDT 5m, no errors.

The Volume Delta Contradiction indicator is saved and added to this chart. The result after adding it matched.

Settings: Length = 20, Multiplier = 2. An orange diamond appears above a closed candle if volume is greater than the average of the previous 20 bars × 2 and delta is opposite to the candle's direction. Doji bars are excluded.

The indicator is saved in Script Lab and appears on the chart with the Length and Multiplier settings. Here the marks are orange diamonds above the candles.

BTCUSDT chart with the new indicator

State the condition in numbers: "twice", "over 20 bars". The more precise the condition, the less the agent has to guess.

To check the indicator without reading the code, ask the agent to show three marked bars with their numbers and compare them on the chart.

The agent can write an indicator and add it to a chart of any instrument, but it can check it against the bars and a chart screenshot only on crypto. For futures and stocks, ask it to test the indicator on a crypto chart first and then add it to your chart.