Not on the Chrome Web Store yet
ProRealCode Studio is on its way. As soon as it is published, this button will take you straight to its Chrome Web Store page.
Extend the power of ProRealTime™ Web
Customize ProRealTime with thousands of codes — and create your own.
One extension adds a complete coding and testing toolbox to the platform you already trade on — with exclusive features such as
- A complete code editor
- Chart templates
- Bar replay
- Automated trading via webhook
- Alerts from your codes
- Dashboard
- and more to come
Also works in Edge, Brave, Opera and other Chromium-based browsers.
- Runs on prorealtime.com
- Completely free
- Works with or without a prorealcode.com account
No limitations
- Unlimited codes on the chart
- Unlimited drawings
- Any timeframe in your code
- Bar replay included
- Webhooks included
- Several instruments in one code
- Your own functions
- Codes that call codes
- Arrays of a million values
- Tables, gauges and heatmaps
- Backtests, optimizer, Monte Carlo
- The whole library, free
- Share your codes with a link
- Function libraries with INCLUDE
- Chart templates
- Alerts from your code
- A console for your values
- A dataflow map of every code
- Line-by-line profiling
- Errors shown on their line
- Dashboards
- Long and short at once
- Live bid and ask
- Swing points that never repaint
- Price-level alerts
- A portfolio of strategies
- Chart pattern detection
- Volume analysis
- ProRealTrend lines in your code
- Labels in 14 shapes
- Gradient colours and fills
- Your own candles
- Codes synced to your account
- Code folding and minimap
- A settings form for every code
- Light and dark themes
Code editor
A complete code editor, inside your chart.
ProRealCode Studio is a full development environment docked in the ProRealTime™ web platform. You log in with your own ProRealTime account as usual; Studio draws on top of that session.
Write an indicator or a strategy, press Ctrl + Enter, and it is on the chart — without leaving the page.
Write it
Syntax colours, error checking as you type with one-click quick-fixes, tabs, code folding, a minimap and a formatter.
See it
Codes draw on the real chart, on the candles or in their own panel — as many as you apply.
Go further
ProRealCode Script is compatible with the ProBuilder syntax and extends it with new possibilities: functions, other instruments and timeframes, tables on the chart, colours driven by your values.
- A Problems panel across every code on the chart
- A dataflow map of how a code works
- A line-by-line profiler that finds the hot lines
- A debug console you can print to
- Backtests and an optimiser for strategies
- The prorealcode.com library, searchable from the editor
Beyond the editor
Templates, replay, alerts, backtests and more — on the same chart.
Chart templates
Save the codes on a chart, with their settings, as one named template. Put the whole setup back on any chart in one click, and find it again on your other devices.
Bar replay
Rewind the chart to any bar and play it forward, step by step or at the speed you choose. Buy and sell with paper trades and watch balance and equity build.
ma50 = Average[50](close)
ma200 = Average[200](close)
IF ma50 CROSSES OVER ma200 THEN
alert("Golden cross", "MA50 crossed MA200 at #close#", onceperbarclose, 1)
ENDIF
Alerts from your codes
Call alert() anywhere in a code. It fires in Studio, as a desktop notification and with a sound if you want one. Mute or snooze each indicator on its own. Alerts are computed while a ProRealTime tab is open.
{
"instrument": "EURUSD",
"timeframe": "5 minutes",
"title": "Golden cross",
"message": "MA50 crossed MA200 at 1.0852",
"freq": "onceperbarclose",
"payload": { "side": "long", "price": 1.0852 }
}
Automated trading, via webhook
Run a strategy in real time and send each signal as JSON to the webhook you choose — n8n, Make, Zapier or your own receiver. The service behind your webhook places the order.
Backtests
A code with buy and sell instructions becomes a strategy. Run it over the chart's history and read the result: equity curve, drawdown, statistics, and every trade listed and drawn on the chart.
Optimizer
Give each setting a range. The optimizer runs every combination, ranks them on the objective you choose and draws the surface. It keeps bars aside to check the best candidates out of sample, and marks a lone peak for what it is.
Monte Carlo on your portfolio
List the instruments you follow. Studio rebuilds your portfolio's curve and draws 1,000 paths from the past weeks of your lines, taken together: the range it ends in 8 times out of 10. Not a forecast, the range of what your lines have already done.
len = 20
showMid = 0
hst = highest[len](high)
lst = lowest[len](low)
The prorealcode.com library
Search the public library of indicators and strategies without leaving your chart. Read the code first, then import it in one click, or import it and apply it on the chart in the same move.
Dashboard
Build your own board of cards — a chart, a table of several instruments, a KPI — each on the instrument and timeframe you choose, with its indicators. Save a dashboard and reopen it later.
Share codes with friends, privately
Give a code to the members you choose. They apply it to their own chart and adjust its settings, and never see its source: the code is computed on the ProRealCode server. You decide who, and for how long, on prorealcode.com.
Code creation by AI
ProRealAI is coming to Studio: describe the indicator or the strategy you want, and it writes the code in the editor.
Already in Studio, too
66 colour themes and candle styles, and your codes synced across your devices.
Backtests, optimizations and replays are simulations on historical data. They do not predict future results and are not investment advice.
Fully compatible, and beyond
All your codes run. Then the language goes further.
Studio runs ProRealCode Script, an extended language compatible with the ProBuilder syntax. Bring your existing codes as they are, then add great new possibilities with the extended instructions.
New instructions
FUNCTION … ENDFUNCTION- Write a calculation once and call it anywhere; each call keeps its own history.
INCLUDE- Pull the functions of a saved library code into another code.
input()- Declare a setting with its title, type and limits; it becomes a field of the Variables form.
console()- Print the values you want to check in the Console.
alert()- Raise an alert from the code: a message, a sound, a desktop notification, a JSON payload for a webhook.
MarketData()- Read another instrument or another timeframe from the same code.
SESSION()- Know where a bar stands in the trading session.
BIDASK- The live best bid and best ask, with their sizes.
PivotHighPivotLow- Swing highs and lows, confirmed, that never repaint.
ValueWhen()- The value a series had the last time a condition was true.
$arrayARRAYMEDIAN- Arrays, with their sum, median, percentile, sort and more.
DRAWTABLETABLECELL- A table pinned to a corner of the chart, filled from your code.
TABLEGAUGETABLESPARK- Gauges, bars, heat cells and sparklines inside a table cell.
DRAWLABEL- A labelled shape on a bar: 14 shapes, 5 sizes, an optional tooltip.
GRADIENTCOLOR- A colour computed from a value, between two or three stops.
COLORBETWEEN- A fill between two curves that fades from one colour to another.
ONPRICE- Send one drawing of a panel indicator onto the price chart.
TrendLine()- Read the support and resistance lines ProRealTrend draws on the chart.
DEFPARAM Hedging- In a strategy, hold long and short positions side by side.
…and many more, to take the syntax you already know much further!
Four functions, six lines on the chart.
The example beside this text is a complete code built on four functions. One draws a line in the average you pick from a dropdown, called six times. One colours a band, called five times. One measures the ribbon in ATR, one writes the titles of the table. Drag the bar across it to see what it draws.
//@ProRealCodeScript@version=1.0.0@
input(kind, 1, "Average", matype)
input(baseLen, 10, "Fastest line", int, minval = 2)
input(step, 5, "Length step between lines", int, minval = 1)
// One line of the ribbon, in the average picked in the settings
FUNCTION ma(len)
Average[len, kind](close)
ENDFUNCTION
// How far two lines stand apart, in ATR
FUNCTION widthInAtr(fast, slow)
(fast - slow) / AverageTrueRange[14](close)
ENDFUNCTION
// A band's colour as one number: pink to cyan, darker for slower bands
FUNCTION shade(x, depth)
k = 1 - depth * 0.08
c = MAX(0, MIN(1, (x + 2) / 4)) * k
p = k - c
RETURN round(233 * p) * 65536 + round(30 * k + 158 * c) * 256 + round(99 * k + 113 * c)
ENDFUNCTION
// A grey title in the first column of a table
FUNCTION title(hud, row, text)
TABLECELL(hud, row, 0, text, 11) COLOURED(150, 162, 180)
ENDFUNCTION
e1 = ma(baseLen)
e2 = ma(baseLen + step)
e3 = ma(baseLen + 2 * step)
e4 = ma(baseLen + 3 * step)
e5 = ma(baseLen + 4 * step)
e6 = ma(baseLen + 5 * step)
spread = widthInAtr(e1, e6)
COLORBETWEEN(e1, e2, shade(spread, 0))
COLORBETWEEN(e2, e3, shade(spread, 1))
COLORBETWEEN(e3, e4, shade(spread, 2))
COLORBETWEEN(e4, e5, shade(spread, 3))
COLORBETWEEN(e5, e6, shade(spread, 4))
rsiVal = RSI[14](close)
trend = (close - Lowest[30](low)) / (Highest[30](high) - Lowest[30](low)) * 100
hud = DRAWTABLE(4, 2, topright) FILLCOLOR(12, 16, 22, 230)
title(hud, 0, "Ribbon (ATR)")
TABLEGAUGE(hud, 0, 1, spread, -6, 6) GRADIENTCOLOR(spread, -2, 2, "#e91e63", "#00bcd4")
title(hud, 1, "RSI (14)")
TABLEHEAT(hud, 1, 1, rsiVal, 70, 30, "#round(rsiVal)#")
title(hud, 2, "Trend")
TABLEBAR(hud, 2, 1, trend, 0, 100) COLOURED(0, 188, 212)
title(hud, 3, "Close, 30 bars")
TABLESPARK(hud, 3, 1, close, 30) COLOURED(0, 188, 212)
RETURN e1 AS "Line 1", e2 AS "Line 2", e3 AS "Line 3", e4 AS "Line 4", e5 AS "Line 5", e6 AS "Line 6"
Everything is explained in the documentation.
This list is not exhaustive. Every instruction is there, with its syntax and an example.
Your chart. Your code. One tab.
Get started
Three steps. No setup.
-
Add the extension
Install ProRealCode Studio for ProRealTime from the Chrome Web Store.
-
Open ProRealTime™ Web
Log in with your own account, as usual, and open a chart.
-
Open Studio
Click ProRealCode Studio inside the platform, pick an example and press Ctrl + Enter.
Ready when you are.
For Chrome — also works in Edge, Brave, Opera and other Chromium-based browsers.