How to create a trading indicator with AI
By Oalgo · Last reviewed
To create an indicator with AI, write what it should measure, check the line it draws, and save it only if it is right. In Oalgo, Oalgo AI builds it, draws it on the chart and saves it only after you approve it.
How do you create an indicator with AI?
#- Ask. Say what it should measure, with the lengths and the price it should use. For example “a TRIX with period 15” or “RSI minus its own 9 EMA”.
- Check the line. Oalgo AI draws it on the chart before anything is saved.
- Refine it. If the line is not what you meant, keep typing what to change and check the new line.
- Approve and save. The button is Approve & Save. Until you press it, nothing is saved.
- Use it. A saved indicator appears under My Indicators in the builder, next to the built-in ones.
How do you check the line?
#Do not trust a line because it looks smooth. Pick one candle and work the value out yourself in a spreadsheet. The example below is made up for this page: “RSI minus its own 9 EMA”, on candle 60 of the example prices.
| Step | Value on candle 60 | How |
|---|---|---|
| RSI 14 | 72.8 | The usual 14-candle RSI of the closes |
| 9-candle EMA of that RSI | About 61.0 | An exponential average of the RSI values |
| The new line | About 11.8 | RSI minus its EMA: 72.8 minus 61.0 |
If the chart shows about 11.8 on that candle, the line matches the idea. If it shows something very different, say so and ask for a change.
What can go wrong with an AI-made indicator?
#- It may measure something close to what you meant but not the same: a different length, or the high where you meant the close.
- The first candles are blank, because many indicators need a few candles before they have a value. That is normal.
- Any indicator, built by AI or by hand, can use a future candle by mistake. A line that turns exactly at every turning point is a warning of lookahead bias.
What can a new indicator not tell you?
#An indicator is a calculation on past candles. It shows what you asked it to measure and nothing about what comes next. Each new line is also one more thing to tune, which makes overfitting easier. Test any rule that uses it with a backtest. Your plan sets how many custom indicators you can keep, and Pricing lists them.
Read next
- Oalgo AI: tell it your idea, get rules you can editTell Oalgo AI your idea in your own words and it builds rules you can see and edit. It explains what each block measures and gives no advice.
- What is lookahead bias? How a test uses the futureLookahead bias is when a test uses a value the rules could not have known yet. Learn the common ways it creeps in and how to check your rules for it.