Service · TASI · Pine Script · Python

Saudi Stock Market Automation for TASI Traders

Saudi stock market automation today means custom tools around your own decisions: Pine Script indicators on TASI charts, alerts to your phone, Python screeners and faster manual orders. Most of a Tadawul routine can run that way, while each order still needs your click.

  • Custom built
  • Demo testing before payment
  • Source code option
  • NDA on request

How it works

Rules → Code → Backtest → Deliver

  1. STEP 01

    Rules

    You share your entry, exit and risk rules in plain words.

  2. STEP 02

    Code

    We write clean MQL4, MQL5, Pine Script or Python code.

  3. STEP 03

    Backtest

    You test the build on your own demo account first.

  4. STEP 04

    Deliver

    You get the final file, a settings guide and setup help.

On this page

Saudi stock market automation scope: what you can automate on Tadawul and what stays manual

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.

How a TASI chart alert travels from a Pine Script rule through a webhook relay to Telegram or WhatsApp

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.

Steps of a Python screener that ranks TASI shares from licensed data

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.

Flow for placing a Tadawul order from a TradingView chart through Derayah

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

  1. First, you send your rules, the symbols and the alerts you want, by WhatsApp or email.
  2. Next, we write the Pine Script or Python code, with a clear input for each setting.
  3. After that, you run the tool on your own charts or data, and we fix what you report.
  4. Finally, you get the files, a settings guide and a short setup call.

Checklist of what you receive with a TASI tool, including 7 days of fixes

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

Frequently asked questions

Can you build a fully automatic trading robot for Tadawul?

Not for a retail account at the moment. What we build reaches as far as the alert, the screener report or the order ticket on a TradingView chart. The last step, pressing the button on each order, stays with you.

Can I place Tadawul orders from TradingView charts?

You can with a Derayah account. Open the trading panel in TradingView and pick Derayah, then sign in on its own login page. The order ticket then works on Saudi shares, one click per order.

Can TradingView send TASI alerts to Telegram or WhatsApp?

It can, through a webhook alert that goes to a relay we build. Two account settings matter: webhook alerts belong to TradingView's paid plans, and TradingView only allows them once two-factor login is switched on.

Is algorithmic trading allowed in Saudi Arabia?

The CMA regulates it, and its current rules are addressed to capital market institutions, which for most traders means the broker. Your broker's terms show how those rules apply to your own account, so read them and the CMA's latest notices first.

Which data can a Python screener use?

Anything you have the right to use, such as files you export from your own platform or a licensed data feed you pay for. Tell us which source you have, and we build the loader around its format.

What do these TASI tools cost?

Custom Pine Script tools start from $50, about 188 SAR at the fixed 3.75 peg. Python screeners start from $100, about 375 SAR. Ready tools cost $150 each, about 563 SAR. Payment is in USDT, with a 50% deposit before coding starts.

WhatsApp · Email · Telegram

Tell us what you want to automate

Send your rules on WhatsApp. You get a clear quote, then a demo build to test before you pay in full.