Soon available

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.

Chapter 23 · Part VI — Reference

What ProRealCode Script adds to the ProBuilder syntax.

ProRealCode Script is an extended language compatible with the ProBuilder syntax. Everything the two share, from IF to RSI to DRAWTEXT, is documented once, on prorealcode.com. This chapter lists only what the language adds, family by family.

  1. 01Compatibility and the Studio Only badge How to tell a code that only Studio can run.
  2. 02Functions and libraries FUNCTION, INCLUDE, DEFPARAM FunctionLibrary, and CALL in Studio.
  3. 03Settings input(): the rows of ⚙ Settings, declared in the code.
  4. 04Messages console(), PRINT, alert() and its JSON block.
  5. 05Swing points and past values PivotHigh, PivotLow, ValueWhen, ForceIndex[p].
  6. 06Text and arrays String variables, $arrays and the ARRAY… family.
  7. 07Other data MarketData, TIMEFRAME from a setting, SESSION, BID / ASK, the ProRealTrend lines.
  8. 08Drawing DRAWTABLE and its widget cells, DRAWLABEL, GRADIENTCOLOR, COLORBETWEEN in two colours, ONPRICE.
  9. 09Strategies DEFPARAM Hedging.

Syntax

The form to write, with optional parts in [ ]. Words in capitals or lower case are the same word.

Example

A short code that runs as it is. Paste it into an empty tab and click “Run”.

What you see

Where the result appears: a curve, a row in ⚙ Settings, a line in the console, a drawing.

The rest of the languageEvery instruction shared with the ProBuilder syntax is documented at prorealcode.com/documentation/. In Studio, the About panel opens it: “Language documentation”.
ProRealCode StudioUser guide · Chapter 23
01 · Compatibility

Nothing declares the language. The editor tells you.

Code using only the instructions shared with the ProBuilder syntax is in ProBuilder Compatibility Mode. Nothing declares it: the editor marks the opposite case with a Studio Only badge.

The editor header: the code's name 3 · Two timeframes at once, the unsaved chip, then the Studio Only badge under the mouse pointer, with its tooltip: This code is not compatible with official ProBuilder — input, alert.
The badge beside “unsaved”, and its tooltip. It names the instructions it found: here input and alert.

What the badge does

  • It lights when the code uses an instruction the ProBuilder syntax has no spelling for.
  • Its tooltip names the first four, then “and N more”.
  • It is a warning, nothing else. It never edits your code and never stops “Run”.

What it cannot promise

An unlit badge does not mean the ProRealTime editor will accept the code. The check knows instruction names, and some differences are not names: two RETURN lines run in Studio and do not compile on the platform.

The line added to everything you copy

Copy any part of a code out of the editor, three characters or the whole tab, and the clipboard receives one comment line on top. It says which version of Studio wrote the code. The platform's editor reads it as a comment and skips it. Studio does not add it twice, and you never type it yourself.

//@ProRealCodeScript@version=x.y.z@
input(myLen, 14, "Length", int)
RETURN RSI[myLen](close) AS "RSI"
ProRealCode StudioUser guide · Chapter 23
02 · Functions

Write a calculation once, use it as often as you like.

FUNCTION name(param1 [= default1], param2 [= default2], …)
  … lines …
  lastExpression
ENDFUNCTION

Example: a z-score, twice

FUNCTION zScore(src, len = 20)
  mean = Average[len](src)
  sd = STD[len](src)
  (src - mean) / sd
ENDFUNCTION
RETURN zScore(close) AS "Z-score 20", zScore(close, 50) AS "Z-score 50"

What you see: two curves in a panel under the chart, one per call.

Example: two values back

FUNCTION channel(src, len)
  mid = Average[len](src)
  w = STD[len](src)
  RETURN mid + 2 * w, mid - 2 * w
ENDFUNCTION
(upper, lower) = channel(close, 20)
RETURN upper AS "Upper", lower AS "Lower"

What you see: two lines around the price.

RuleWhat it means for you
The last line is the valueThe function returns its last expression. RETURN x leaves early with one value, RETURN a, b with several, read with (x, y) = f(…).
DefaultsA parameter written len = 20 may be left out of the call.
Above the callDefine a function before the line that uses it. A function may call the functions written above it.
One history per callEach written call keeps its own past values: zScore(close) and zScore(close, 50) are two separate series.
Your variables, read-onlyA function reads the variables assigned before it. A variable it assigns stays inside it.
Not allowedA function calling itself, a function inside another, two functions with the same name.
ProRealCode StudioUser guide · Chapter 23
02 · Libraries

Keep your functions in one code. Bring them in with one line.

1. The library, saved as “my toolbox”

DEFPARAM FunctionLibrary = true
FUNCTION zScore(src, len = 20)
  mean = Average[len](src)
  sd = STD[len](src)
  (src - mean) / sd
ENDFUNCTION

A library needs no RETURN. Run on a chart, it draws nothing, and that is normal.

2. Any code that uses it

INCLUDE "my toolbox"
RETURN zScore(close, 100) AS "Z-score"

What you see: the curve, as if zScore had been typed at the top of this code.

  • Only the functions come in. The library's own RETURN, drawings, settings and other lines are ignored.
  • At the top level. Not inside an IF, a loop or a function. A one-word name may go without quotes: INCLUDE toolbox.
  • Where Studio looks. Your saved codes first, capitals ignored, then the bundled examples marked as libraries. Never the public prorealcode.com library.
  • Limits. Up to 8 levels of libraries and 32 libraries per code. A library that includes itself through another is refused.
Message in the Problems panelWhat to do
include 'x' not found in your codesSave a code under that name, or fix the name.
'x' is not a function libraryAdd DEFPARAM FunctionLibrary = true at the top of the library.

CALL, shared with the ProBuilder syntax

CALL runs another saved code and takes what it returns. In Studio the values in brackets go to that code's input() settings, in the order they are declared. Only your own saved codes can be called, and a called code draws nothing.

fast = CALL "my ema"[10]
slow = CALL "my ema"[50]
RETURN fast AS "fast", slow AS "slow"
ProRealCode StudioUser guide · Chapter 23
03 · Settings

Declare a setting in the code. Change it without touching the code.

input(name, defaultValue [, "Title"] [, type] { , attribute = value })
TypeControl in ⚙ Settings
intwhole number
floatnumber (the default type)
boolswitch, 1 or 0
matypelist of average types, 0 to 8
stringtext field
colorcolour picker, "#RRGGBB"
timeframelist of timeframes
instrumentlist of instruments
AttributeEffect
options[a, b]: a list, nothing else
minval maxvalthe value is kept inside
stepthe field's increment, display only
groupa section heading in ⚙ Settings
inlineseveral controls on one row
tooltipthe row's help text

Example

input(len, 20, "Length", int, minval = 5, maxval = 200, group = "Average")
input(kind, "EMA", "Type", string, options = ["SMA", "EMA"], group = "Average")
input(tint, "#ff8800", "Colour", color, group = "Look")
IF kind = "EMA" THEN
  ma = ExponentialAverage[len](close)
ELSE
  ma = Average[len](close)
ENDIF
RETURN ma AS "MA" COLOURED(tint)

What you see: ⚙ Settings of this code shows an “Average” section with “Length” and “Type”, then “Look” with a colour (chapter 08).

A misspelt attribute is an error that lists the seven. A saved value no longer in options goes back to the default. A line that also assigns the same name wins over ⚙ Settings, and the editor warns you.

ProRealCode StudioUser guide · Chapter 23
04 · Messages

Print a value while you write. Raise an alert while it trades.

console(arg1, arg2, …)

r = RSI[14](close)
console("RSI #r#", close)
RETURN r AS "RSI"

What you see: one line per bar in the >_ Console under the editor, here RSI 41.2 close = 1.1702. A text prints as written, #name# is replaced by the value, a bare name prints as name = value. The console keeps the newest 1,000 lines. PRINT(…) does exactly the same.

alert([title,] message, freq, sound)

r = RSI[14](close)
IF r CROSSES UNDER 30 THEN
  alert("RSI below 30", "RSI #r# at #close#", onceperbarclose, 1)
ENDIF
RETURN r AS "RSI"

What you see: a popup on the chart with the title and the message, a beep when sound is 1, and a desktop notification if you switched them on in the Alerts window (chapter 16).

freqThe alert fires
freqallon every price update of the live bar
onceperbarat most once per bar (the default)
onceperbarcloseonly when the live bar closes

The JSON block: a signal for a webhook

Add {key: value, …} to an alert, and each time it fires Studio also builds a JSON message: the instrument, the timeframe, the bar, the title, the message and your keys, valued at the firing bar. The Alert tab of ⚙ Preferences sends it to your webhook (chapter 17).

alert("Golden cross", "MA50 over MA200 at #close#", onceperbarclose, 1, {side: "long", price: close, rsi: RSI[14](close)})

One level only, at most 64 keys. A comparison sends true / false, a value not yet defined sends null. Muting an alert silences the popup, not the JSON.

Alerts need the ProRealTime tabAn alert fires on live price updates only, never on the history, and only while a ProRealTime tab is open. In a hidden tab the browser slows the page down: the alert arrives late, and an onceperbarclose alert can skip a bar.
ProRealCode StudioUser guide · Chapter 23
05 · Swing points and past values

Find a swing point, and the price at the last signal.

FormReturns
PivotHigh[L,R](price)The price of the bar R bars back when it is strictly higher than the L bars before it and the R bars after it. Undefined otherwise.
PivotLow[L,R](price)The same for a low.
PivotHigh[N]Short form: L = R = N, source high (low for PivotLow).
ValueWhen(cond, source, n)The value of source on the bar where cond was true for the n-th most recent time. n = 0 is the latest, and may be left out. source defaults to close.
ForceIndex[p](price)The force index smoothed by an exponential average of p bars. Without the bracket, ForceIndex(close) is the shared instruction.

Example

ph = PivotHigh[5,5](high)
IF ISSET(ph) THEN
  DRAWTEXT("#ph#", barindex - 5, ph) COLOURED(200, 0, 0)
ENDIF
crossUp = close CROSSES OVER ExponentialAverage[20](close)
lastEntry = ValueWhen(crossUp, close)
prevEntry = ValueWhen(crossUp, close, 1)
RETURN lastEntry AS "Last cross", prevEntry AS "Cross before"

What you see: the price of each swing high written above it, and two flat steps that move to the close of each new upward cross of the average.

A pivot is late

PivotHigh[5,5] knows a top 5 bars later. The value appears there, carrying the top's price.

It never repaints

Both read only bars that are already closed. What you saw yesterday is still there today, unlike ZigZag.

Ties are not pivots

Two equal highs report nothing. Before enough bars, the value is undefined: a gap.

ProRealCode StudioUser guide · Chapter 23
06 · Text and arrays

A variable can hold text. An array can hold a list.

Text in a variable

IF close > open THEN
  side = "up"
ELSE
  side = "down"
ENDIF
myLabel = "Bar " + side
console(myLabel)
RETURN close

+ joins two texts. =, <, > compare them. myLabel[1] is the text of the bar before.

Where text can go

DRAWTEXT(myLabel, …), DRAWLABEL, TABLECELL, console(). Not into RETURN, which draws numbers, and not as a condition: write IF side = "up" THEN. Both mistakes are reported before the code runs.

DRAWTEXT takes one text or one variable, not a join: write "Bar #side#" there.

Arrays

A name that starts with $ is an array: cells $a[0] to $a[999999]. A cell never written reads 0. An array is not a history: $a[2] is cell 2, not two bars ago, and the array keeps its content from bar to bar, so clear it with ARRAYCLEAR($a) when needed.

ARRAYFROM($w, close, 20)
mid = ARRAYMEDIAN($w)
spread = ARRAYPERCENTILE($w, 75) - ARRAYPERCENTILE($w, 25)
RETURN mid AS "Median 20", spread AS "Spread 25-75"

What you see: the median of the last 20 closes, and the distance between their first and third quarter.

FamilyInstructions
Size and orderARRAYSIZE ARRAYCLEAR ARRAYPUSH ARRAYPOP ARRAYSHIFT ARRAYUNSHIFT ARRAYINSERT ARRAYREMOVE ARRAYSET ARRAYGET
StatisticsARRAYSUM ARRAYAVG ARRAYMEDIAN ARRAYMODE ARRAYVARIANCE ARRAYSTDDEV ARRAYMIN ARRAYMAX ARRAYRANGE ARRAYPERCENTILE
SearchARRAYINDEXOF ARRAYLASTINDEXOF ARRAYINCLUDES ARRAYCOUNT
BuildARRAYSORT ARRAYREVERSE ARRAYFILL ARRAYNEW ARRAYFROM ARRAYCOPY ARRAYSLICE ARRAYCONCAT
ProRealCode StudioUser guide · Chapter 23
07 · Other data

Read another instrument, or another timeframe, on the same chart.

MarketData("TICKER", timeframe, source, mode)
PartWhat to write
Instrument"EURUSD", or "" for the chart's own instrument, or an input() of type instrument.
Timeframe1 hour, 15 minutes, daily… or default for the chart's own, or an input() of type timeframe.
Sourceopen high low close volume range typicalprice medianprice weightedclose totalprice.
Modedefault: the candle as it stands. updateonclose: closed candles only, for a backtest.
eu = MarketData("EURUSD", 1 hour, close, updateonclose)
RETURN Average[20](eu) AS "EUR/USD hourly MA"
  • Which instruments. The chart's own, and the forex pairs and futures your platform session lists. For any other, the status line reads MarketData: cannot resolve '…' and the value stays undefined. It is never an error: the chart keeps drawing.
  • Another instrument at another timeframe is rebuilt by Studio from the chart's timeframe, and the status line says rebuilt locally from the chart timeframe. Daily and above can differ by a candle.

TIMEFRAME, chosen from ⚙ Settings

TIMEFRAME(…) is shared with the ProBuilder syntax. In Studio the timeframe can be a setting, declared first. A timeframe finer than the chart's is refused.

input(mytf, "1 hour", "Timeframe", timeframe)
TIMEFRAME(mytf)
h = RSI[14](close)
TIMEFRAME(default)
RETURN h AS "RSI, higher timeframe"
ProRealCode StudioUser guide · Chapter 23
07 · The market itself

Is the market open? What does it quote right now?

SESSION("mode")

"isopen"1 when the bar opens inside the trading hours
"ispremarket"1 between pre-open and open
"isbreak"1 during the lunch break
"isfirstbar"1 on a session's first bar
"opentime"open time, HHMMSS

Also "closetime" "breakstart" "breakend" "preopen" "weekstart" "weekend" "gmt" "eodoffset". Hours are the platform's; bank holidays are not known.

Example

inHours = SESSION("isopen") and not SESSION("isbreak")
IF SESSION("isfirstbar") THEN
  BACKGROUNDCOLOR(0, 120, 255, 30)
ENDIF
RETURN inHours AS "Market open"

What you see: a 1 / 0 curve, each session's first bar tinted blue. "isopen" alone counts the break as open.

BID and ASK

BID BESTBIDbest bid price
ASK BESTASKbest ask price
BIDSIZE ASKSIZEvolume offered at that price
BIDVOLUME ASKVOLUMEvolume carried by that quote

Example

IF ISSET(bid) AND ISSET(ask) THEN
  spreadTicks = (ask - bid) / ticksize
ELSE
  spreadTicks = undefined
ENDIF
RETURN spreadTicks AS "Spread (ticks)"
One quote, the current oneThese names read the platform's live quote, about four times a second, with no history: every bar reads the same value. Without an order book they stay undefined, and the Problems panel says so. Test with ISSET.
ProRealCode StudioUser guide · Chapter 23
07 · ProRealTrend lines

Read ProRealTrend's lines.

Six names read the support and resistance lines ProRealTrend computes for the chart, whether it is shown or hidden. With no line, the code still runs. All six light the Studio Only badge.

TrendLineCounthow many lines, shown or hidden; 0 when there are none
TrendLine(i)level of line i on the current candle; undefined before its start, after its end, or for an i outside 1 to TrendLineCount: test with IsSet
TrendLineType(i)1 support, -1 resistance
TrendLineImportance(i)3 major, 2 intermediate, 1 minor, as ProRealTrend ranks the line
TrendLineOblique(i)1 oblique, 0 horizontal; an oblique runs straight from candle to candle
TrendLinePeriod(i)the line's own timeframe in seconds, like GetTimeframe: day 86400, week 604800, month 2592000. On a daily chart ProRealTrend mixes all three
nearSup = undefined
nearRes = undefined
FOR i = 1 TO TrendLineCount DO
  lvl = TrendLine(i)
  IF IsSet(lvl) THEN
    IF lvl <= close AND (NOT IsSet(nearSup) OR lvl > nearSup) THEN
      nearSup = lvl
    ENDIF
    IF lvl > close AND (NOT IsSet(nearRes) OR lvl < nearRes) THEN
      nearRes = lvl
    ENDIF
  ENDIF
NEXT
RETURN nearSup AS "Nearest support", nearRes AS "Nearest resistance"

The nearest level below and above the close

Two curves that follow the closest line under the price and the closest line over it. When ProRealTrend recomputes its lines, the indicator recalculates.

A major horizontal resistance breaks: in the same loop, keep the lines where TrendLineType(i) = -1 AND TrendLineImportance(i) = 3 AND TrendLineOblique(i) = 0, then test close > lvl AND close[1] <= lvl.

Distance to a higher-timeframe level: keep the lines where TrendLinePeriod(i) > GetTimeframe, then compute (close - lvl) / lvl * 100.

Today's lines, not yesterday'sProRealTrend computes its lines over the whole history: on a past candle, TrendLine(i) is where today's line passes, not one known then. Decide on the last candles; do not backtest on these values.
ProRealCode StudioUser guide · Chapter 23
08 · Drawing · Tables

Pin a table to a corner of the chart.

t = DRAWTABLE(rows, cols, position [, width [, height]])
TABLECELL(t, row, col, "text" [, font] [, style] [, size] [, align] [, "tooltip"])
TABLEMERGE(t, row, col, rowSpan, colSpan)
TABLEBG(t, row, col, r, g, b [, alpha])

Example

DEFPARAM DrawOnLastBarOnly = true
r = RSI[14](close)
t = DRAWTABLE(2, 2, topright) FILLCOLOR(20, 24, 32)
TABLECELL(t, 0, 0, "RSI 14") COLOURED(200, 200, 200)
TABLECELL(t, 0, 1, "#r#") COLOURED(255, 255, 255)
TABLEMERGE(t, 1, 0, 1, 2)
TABLECELL(t, 1, 0, "close #close#")
RETURN
RSI 1441.25
close 1.17021
Illustration. The table this code draws, top right. The values are made up.
RuleWhat it means for you
DRAWTABLE is assignedIt returns a handle, t here, that the other instructions take first.
Cornerstopleft, topright (default), bottomleft, bottomright, center. The table stays clear of the price scale.
SizeLeave out width and height and each column fits its text. Writing past the declared rows or columns makes the table grow.
ColoursCOLOURED is the text, FILLCOLOR the background, BORDERCOLOR the lines. TABLEBG changes one cell's background only.
One table per lineA table is drawn once for the whole chart: a cell written on every bar shows the last bar's value. DEFPARAM DrawOnLastBarOnly = true is the cheap way.
LimitsUp to 4,000 cells per code. Tooltips are kept but cannot be hovered: the chart layer takes no mouse.
ProRealCode StudioUser guide · Chapter 23
08 · Drawing · Widget cells

A gauge, a bar, a sparkline or a heat colour, in one cell.

A table titled Dashboard · 14 bars on a dark chart: three gauges for RSI 38, ATR 0.52% and Mom -0.18%, three sparklines under them, a row of heat cells reading 38, 0.52 and -0.18, and a row of horizontal bars labelled RSI, ATR and Mom.
A bundled example with the four widgets, on a dark chart. Gauges, sparklines, heat cells, bars, from top to bottom.
TABLEGAUGE(t, row, col, value, min, max [, "label"])
TABLEBAR  (t, row, col, value, min, max [, "label"])
TABLEHEAT (t, row, col, value, min, max [, "text"])
TABLESPARK(t, row, col, series, period)

Example

DEFPARAM DrawOnLastBarOnly = true
r = RSI[14](close)
t = DRAWTABLE(2, 2, bottomright)
TABLEGAUGE(t, 0, 0, r, 0, 100, "RSI") COLOURED(90, 170, 255)
TABLESPARK(t, 0, 1, close, 30)
TABLEBAR(t, 1, 0, r, 0, 100, "RSI")
TABLEHEAT(t, 1, 1, r, 100, 0, "#r#")
RETURN
WidgetShows
TABLEGAUGEa level: a half dial with a needle
TABLEBARa size: a bar filled from min to value
TABLESPARKa shape: the last period values, newest on the right, up to 200
TABLEHEATa zone: the cell coloured from low to high. min above max reverses it
ProRealCode StudioUser guide · Chapter 23
08 · Drawing · Labels and colour ramps

A text in a box that points at its price. A colour that follows a value.

EUR/USD candles on a dark chart with boxed labels: yellow price labels with a pointer above swing highs, green ones below swing lows, red MA20 down and blue MA20 up labels pointing sideways, and a shaded band around a moving average that turns green or red.
The bundled DRAWLABEL example on Spot EUR/USD. Captured with the platform in dark mode.

DRAWLABEL

DRAWLABEL(x, y, "text" [, shape] [, size] [, align] [, "tooltip"])
ph = PivotHigh[5,5](high)
IF ISSET(ph) THEN
  DRAWLABEL(barindex - 5, ph, "#ph#", arrowdown, small) FILLCOLOR(255, 200, 0, 200)
ENDIF
RETURN

Position first, text third, the reverse of DRAWTEXT. Shapes: flag (default) circle square diamond triangle triangleup triangledown cross xcross arrowup arrowdown arrowleft arrowright none. Sizes: tiny small normal large huge. The box sits on the side that leaves the price visible.

GRADIENTCOLOR

GRADIENTCOLOR(value, low, high, colourLow [, colourMid], colourHigh)
RETURN close AS "Price" GRADIENTCOLOR(RSI[14](close), 30, 70, "#4040ff", "white", "#ff4040")

Goes where COLOURED(…) goes, or inside the colour of COLORBETWEEN, BACKGROUNDCOLOR and TABLEBG. Here the price line is blue at RSI 30 and below, white at 50, red at 70 and above. Colours are text: "#4040ff", "#4040ffcc" or a name like "teal".

ProRealCode StudioUser guide · Chapter 23
08 · Drawing · Fills and placement

A fill that fades, and an oscillator that marks the candles.

COLORBETWEEN in two colours

COLORBETWEEN(v1, v2, topColour, bottomColour [, topValue, bottomValue])
ma = Average[20](close)
COLORBETWEEN(ma, close, "#00e5b019", "#00e5b0cc")
RETURN ma AS "MA"

What you see: the band between the average and the price, almost clear along the average and denser towards the price, inside every bar.

Two colour texts fade the band from top to bottom. A number after the first colour is still its transparency: COLORBETWEEN(a, b, "teal", 128) stays a flat band.

closeMA
Illustration. The fade runs from the price, dense, to the average, almost clear.

DEFPARAM overlay and ONPRICE

DEFPARAM overlay = false puts the whole code in its own panel under the chart; true, the default, puts it on the price. ONPRICE, written after one drawing, sends that single drawing to the price chart while the rest stays in the panel.

DEFPARAM overlay = false
myrsi = RSI[14](close)
IF myrsi CROSSES OVER 30 THEN
  DRAWARROWUP(barindex, low) COLOURED(0, 200, 0) ONPRICE
ENDIF
RETURN myrsi AS "RSI", 70 AS "70", 30 AS "30"

What you see: the RSI and its two levels in a panel, and a green arrow under the candle each time the RSI crosses back over 30.

ONPRICE works on the DRAW… family, COLORBETWEEN and BACKGROUNDCOLOR, never on RETURN curves. Its values are not rescaled: give it prices. It is an error on a table, which is already on the price chart.

ProRealCode StudioUser guide · Chapter 23
09 · Strategies

Hold a long and a short at the same time.

DEFPARAM Hedging = True
DEFPARAM CumulateOrders = False
IF close CROSSES OVER Average[50](close) THEN
  BUY 1 SHARES AT MARKET
ENDIF
IF RSI[14](close) > 70 THEN
  SELLSHORT 1 SHARES AT MARKET
ENDIF
IF RSI[14](close) < 50 THEN
  EXITSHORT AT MARKET
ENDIF
SET STOP %LOSS 2

With Hedging = True a short order no longer closes the long one: the two positions live side by side. SELL closes only the long, EXITSHORT only the short. The default is False.

CumulateOrders and the stops apply to each side on its own. Declare it before the first order; changing it while a position or an order is open is an error.

Chapter 23 · In short
You want toWrite
reuse a calculationFUNCTION … ENDFUNCTION, INCLUDE "library"
let the reader tune itinput(name, default, "Title", type)
see a value, be warnedconsole(), alert(…, {key: value})
mark swing pointsPivotHigh, PivotLow, ValueWhen
read other dataMarketData, SESSION, BID / ASK, TrendLine(i)
draw and colourDRAWTABLE, DRAWLABEL, GRADIENTCOLOR, ONPRICE

Each of these is an addition: it runs in Studio, and the ProRealTime editor does not compile it. Everything else is in the shared documentation at prorealcode.com/documentation/.

Next

Chapter 24 · All preferences

Every setting of ⚙ Preferences, tab by tab, with its default value.

ProRealCode StudioUser guide · Chapter 23
ProRealCode ProRealCode
Loading...