What you can and can’t automate on Tadawul
The request we hear most from TASI traders is a robot that buys and sells on its own. For a retail account in 2026 we can’t deliver that, because each order still has to pass through the broker’s own screen. Most of the work around the order can run without you, and that is where most of a trader’s screen time goes.
| Task | Where it stands today |
|---|---|
| Indicators and strategy tests | Fully possible, since TradingView carries TASI charts and runs Pine Script |
| Alerts | Possible: a rule on the chart can reach Telegram or WhatsApp within seconds |
| Screeners and reports | Possible in Python, as long as you own or license the data |
| Order placement | Semi-manual at best: orders can go out from a TradingView chart through Derayah, with your click on each one |
Our Saudi stock market automation work is software only. You make every trading decision, and you place every order.
Custom Pine Script indicators and strategies on TASI charts
TradingView lists Tadawul symbols. The TASI index and individual Saudi shares open on the same charts as any other market, which makes Pine Script, TradingView’s own language, the obvious first tool. We code your entry rules as an indicator that draws arrows, shades zones or keeps a small dashboard in the corner of the chart.
Those rules can later become a Pine Script strategy, which the Strategy Tester replays on past TASI bars so you see how the logic behaved on real price history before you trust it with an alert. Read a backtest as a check on whether the code does what you meant. Past results never predict future ones.
Our Pine Script developer page explains how we write and deliver these scripts. You run each one on your own charts before final payment.
Alerts to Telegram and WhatsApp
Tadawul’s continuous trading session runs from 10:00 to 15:00 Saudi time, Sunday to Thursday. Few people can sit in front of a chart for all of it. That is why the alert is often the most useful part of the setup.
The chain starts when a rule in your Pine Script indicator triggers. TradingView passes that alert as a webhook to a small relay we build, and the relay posts a readable message to your Telegram bot, or to WhatsApp through the official business platform.
Each message names the symbol, the rule and the time. It can also go to a private group you share with your team.
Python screeners and data analysis
Some jobs don’t fit on one chart. A typical one is scanning every TASI share after the close and listing the handful that match your filters. A Python screener does that.
Data rights come before any code. We only build screeners on data you are entitled to use, and we won’t write one that scrapes a website or app against its terms. A scraper breaks whenever the site changes, and it can put your own user agreement at risk.
With the data loaded, the script applies your rules and ranks what matches before it writes a CSV or Excel report and, if you want one, sends a short summary to Telegram. Our Python broker API automation page covers how we build and package scripts like this one.
Placing orders from TradingView charts through Derayah
Derayah is a TradingView broker partner. The TradingView announcement of Derayah says its clients can connect their accounts and trade straight from the charts; you still place each order by hand.
TradingView’s help page on Derayah sets two limits. Only symbols listed on Tadawul can be traded this way, and Derayah Global accounts are not supported.
The setup still saves time. Your Pine Script alert fires, you open the chart, and the order goes out from that same screen. Our guide to connecting TradingView to Derayah walks through the sign-in and what the panel can and can’t do.
Why don’t we promise fully automatic execution?
A bot that trades with nobody watching needs a documented way for software to send orders to the broker, so we looked for a public retail order API from Derayah and from Sahm, and we found none.
Some developers work around the gap with a program that clicks through the broker’s app as if it were a person. We refuse that route. It can break the account terms, and because the script depends on the exact layout of the app, the next app update usually breaks it as well.
If a broker publishes an official order API later, we will read its documentation and tell you what it allows. Until then we turn down requests for a bot that places orders by itself.
Regulation: check the CMA and your broker
On 24 September 2026 the CMA opened a public consultation on draft provisions that restrict algorithmic trading, as the Saudi Exchange market news notice reported. A month later, on 29 October 2026, it issued a circular to capital market institutions (in Arabic). The circular requires them to comply with the approved rules from 1 November 2026.
Check those rules and your broker’s terms before any Saudi stock project. Our tools work inside them. When the rules or your broker call for a change, we change the project’s scope. For how we work with Saudi traders day to day, see our trading software development in Saudi Arabia page.
How a Saudi stock market automation project works
- First, you send your rules, the symbols and the alerts you want, by WhatsApp or email.
- Next, we write the Pine Script or Python code, with a clear input for each setting.
- After that, you run the tool on your own charts or data, and we fix what you report.
- Finally, you get the files, a settings guide and a short setup call.
Trading UAE shares as well? Our UAE stock market API page covers tools for DFM and ADX.
Prices in USD and SAR
We quote in US dollars. The riyal holds a fixed peg of 3.75 to the dollar, so the SAR figures below stay steady:
| Tool | USD | SAR (approx.) |
|---|---|---|
| Custom Pine Script indicator or strategy | from $50 | from 188 SAR |
| Python screener or data script | from $100 | from 375 SAR |
| Ready tool from our catalogue | $150 each | 563 SAR |
You get one fixed quote before any work starts. Our expert advisor development cost page shows typical ranges across all services.
Sources
- CMA: public consultation on the draft provisions for algorithmic trading
- Saudi Exchange: trading cycle and times
- TradingView: about webhook alerts

