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 24 · Part VI — Reference

Every setting of ⚙ Preferences, with its default.

Six tabs, about forty settings. Most take effect the moment you change them, and all stay in this browser until you change them again.

The Preferences window on its Editor tab: the six tabs Editor, Limits, Appearance, Alert, Backtest and Privacy on the left, the Minimap, Code folding, Auto-indent and Indent guides switches with their explanations on the right, and the Reset to defaults button at the bottom. 1 2 3 4
The window on its Editor tab. The switches show the guide's own browser, not the defaults.
  1. The tabs. Editor, Limits, Appearance, Alert, Backtest, Privacy.
  2. A setting and its control: a switch, a number, a list.
  3. Its explanation, in grey, under each setting.
  4. “↺ Reset to defaults”: every tab back to its default (last sheet).
  1. Click ⚙ at the bottom of the rail, on the left edge of the editor.“⚙ Preferences” opens over the chart. The “Preferences” row of the ƒ launcher opens it too, even with the editor closed.
  2. Click a tab, change a setting.The change applies at once. Only the theme waits for “Apply theme”.
  3. Close the window with × or Esc.Nothing to save: the setting is already kept.
ProRealCode StudioUser guide · Chapter 24
Tab 1 · Editor

How the editor shows and shapes your code.

SettingDefaultWhat it does
MinimapOffA small map of the whole code in the editor's right margin, with a box you drag to scroll. It takes some width from the code, hence off.
Code foldingOffSmall arrows in the margin fold IF, FOR, WHILE and FUNCTION blocks. Line numbers do not change, so a folded block reads as a jump.
Auto-indentOnEnter keeps the indentation and adds a level after IF, FOR, WHILE or FUNCTION. Typing ENDIF, NEXT, WEND, ENDFUNCTION, ELSE or ELSIF moves the line back. Off: a plain new line. Tab and Shift + Tab indent either way.
Indent guidesOnA faint vertical line per indentation level.
Timeframe bandsOnA tint behind the lines under each TIMEFRAME(), one colour per timeframe, so you see which timeframe a line runs on. TIMEFRAME(default) ends the band.
Format on saveOn“Save” re-indents the whole code first, like “Format document” (Shift + Alt + F). A code whose blocks do not close properly is saved as it is.
Inline error checkingWhile typingWhen the editor checks for problems. “While typing”: 400 ms after you stop typing. “On ▶ Run only”: when you run the code, and the markers go away at your next edit. Quick fixes work the same either way (chapter 09).
Two settings you may want onThe minimap and code folding are off because they take room. On a long code, both are worth switching on.
ProRealCode StudioUser guide · Chapter 24
Tabs 2 and 4 · Limits and Alert

How many codes at once, and where your signals go.

LimitsDefaultWhat it does
Maximum open codes6 (1 to 40)How many codes stay open as tabs. At the limit, opening another one offers to close the oldest tab. Your saved codes are not affected.
Maximum codes on the chart8 (1 to 40)How many codes run on the chart together. Each one is recalculated on every new bar. At the limit, applying another offers to take one off.
The Alert tab: the heading Webhook URL for JSON signals, the Send signals to webhook switch with its explanation, an empty URL field showing https://your-webhook.example.com/prt-alert in grey, the Test button and the warning about receivers on your own machine.
The Alert tab, URL field empty.

An alert() that carries a {key: value} block builds a JSON signal each time it fires (chapter 23). This tab sends it to a web address of yours: n8n, Make, Zapier, your own server. Chapter 17 shows the whole set-up.

A receiver on your own machine (localhost, 127.0.0.1, a LAN address) cannot be reached: Chrome blocks it. Use a tunnel or a public receiver.

AlertDefaultWhat it does
Send signals to webhookOnOff, the signal is still built and shown in the Alerts window, but nothing is sent. Lets you pause without deleting the address.
URL fieldEmptyThe address that receives the signals. Empty means off. It must start with http:// or https://.
Test—Sends a test signal now, even with the switch off. The tab then reads “last webhook delivered (…) at …” or “⚠ webhook failed (…) — is the receiver running?”.
ProRealCode StudioUser guide · Chapter 24
Tab 3 · Appearance · Theme

Preview a theme, then apply it.

The Appearance tab: the Theme list set to ProRealCode Studio Light — Default, the greyed Apply also to ProRealTime switch, a preview of a short code in that theme, the Apply theme button and the Auto colours switch.
The theme list, its preview and “Apply theme”. This browser had chosen ProRealCode Studio Light.
  1. Open the “Theme” list and pick a theme.The preview under it takes the new colours. Studio itself does not change yet.
  2. Click “Apply theme”.The editor and its windows take the theme, and the choice is kept.
SettingDefaultWhat it does
ThemeAuto (follow platform)66 themes, grouped Dark and Light; 11 are marked “High contrast”. Auto follows the platform: dark when it is dark, light when it is light.
Auto: dark theme · Auto: light themeProRealCode Studio Dark · LightShown only under Auto: the two themes Auto switches between.
Apply also to ProRealTimeOffGives the platform's own interface the theme's colours. The chart itself is not affected. Not available under Auto or a ProRealCode Studio theme.
Auto coloursOnAdjusts a curve colour that would be unreadable on the chart background. Off: your COLOURED(…) values exactly as written.
ProRealCode StudioUser guide · Chapter 24
Tab 3 · Appearance · Candles and motion

Redraw the candles, or leave the platform's alone.

Daily candles drawn as green and red 3D boxes on a dark chart, with a dashed red average.
“Isometric OHLC (3D boxes)”. Dark platform.
The same candles with flat bodies whose colour strength follows the size of each bar's move, on a dark chart.
“Heat candle (magnitude colour)”. Dark platform.
SettingDefaultWhat it does
Price render styleClassic flat (platform candles)Classic flat draws nothing over the platform's candles. The other four redraw them: Isometric OHLC (3D boxes), Depth-by-volume isometric, Gradient body (2.5D), Heat candle (magnitude colour). Ctrl + Shift + D cycles the five.
Custom candle coloursOffOn: the two colours below replace the built-in green and red.
Bullish candle · Bearish candle#3fb968 · #f0605aClose at or above the open, close below it. Under Classic flat, only the Bar replay candle uses them.
Heat sensitivityNormalSubtle, Low, Normal, High, Extreme. Heat candle only: Subtle keeps the colour for big moves, Extreme gives it to almost every bar.
Advanced visual effectsOffAnimates a change of style, the Backtest results curve and figures, the trade markers, an armed strategy's live result. How values are drawn, never the data. Your system's reduced-motion setting wins.
Live candle animationOffThe forming candle slides to its new shape on each price update. Needs Advanced visual effects and a style other than Classic flat.
ProRealCode StudioUser guide · Chapter 24
Tab 3 · Appearance · Launcher

What stays on screen with the editor closed.

The end of the Appearance tab: launcher row switches for Alerts, Dashboard, About (off) and Account, the greyed Preferences row, the Show the ƒ launcher switch and the Side bar button list set to Open the menu beside it.
The end of the tab. In this browser the About row was off; by default every row is on.

Launcher rows

One switch per row of the ƒ launcher, all on by default: Editor, Codes, Active, Templates, Bar replay, Strategies, Alerts, Dashboard, About, Account. A row you switch off leaves the launcher at once; switch it back on and it returns.

“Preferences” stays, greyed: with every other row gone, it is the way back to this list.

SettingDefaultWhat it does
Show the ƒ launcherOnKeeps the floating ƒ strip on screen while the editor is closed. Off: the chart is clear, and the platform's side bar button is the way back in.
Clicking the buttonOpen the menu beside itWhat the “ProRealCode Studio” button on the platform's right bar does: open the launcher's list next to it, or “Show / hide ProRealCode Studio”. Shown only on a platform that has this button.
Before you switch the launcher offCheck that the “ProRealCode Studio” button is on the platform's right bar. Without the launcher and without that button, Alt + P still opens the editor (chapter 25).
ProRealCode StudioUser guide · Chapter 24
Tab 5 · Backtest

The account a strategy is tested on, and whether it may run live.

SettingDefaultWhat it does
Account
Initial capital10000The balance a strategy starts with. The equity curve starts there, and net % and drawdown % are measured against it.
Lot size1What one LOT means: BUY 2 LOTS opens 2 × this many units. Leave 1 unless you trade forex, where a lot is usually 100,000.
Use the current spreadOnEach fill pays half the instrument's current spread: a buy at the ask, a sell at the bid. Off: fills at the bar price. A spread typed in the results window wins.
Chart annotations
Order labels on the chartOnBUY, SELL, SELLSHORT or EXITSHORT and the fill price at each order, for the 60 most recent orders.
Trade lines on the chartOnA dotted line from each entry to its exit: green for a gain, red for a loss, grey at zero.
Realtime
Run strategies in realtimeOffLets you arm a strategy in the Strategies window, to act on each new bar. Switching it off disarms every strategy. The ProRealTime tab must stay open, minimised is fine.
Send each fill to the webhookOnAn armed strategy sends each fill as JSON to the address of the Alert tab. No real order is placed anywhere.
Sound on each fillOnA rising two-note chime, unlike the alert tone, for a fill on the newest bar only.
A Studio backtest is not a ProRealTime backtestStudio simulates the fills itself. When a stop and a target fall inside the same bar, it takes the stop; ProRealTime decides that case on a lower timeframe. The two can give different numbers.
ProRealCode StudioUser guide · Chapter 24
Tab 6 · Privacy

One switch for anonymous usage data.

The Privacy tab: the Anonymous usage data switch, on, and its explanation.
The Privacy tab, as it opens by default.

Anonymous usage data, on by default, sends counters: which features are used, how long calculations take. They are tied to a random device number, never to your account.

Your code, instrument names, chart values, alert texts and library searches are never collected. Switching it off discards what is not sent yet (chapter 27).

“↺ Reset to defaults” changes more than switchesIt puts every tab back to its default, launcher rows included, without asking. The webhook address of the Alert tab is emptied: write it down first. Anonymous usage data goes back on.
Chapter 24 · In short
Editorminimap, folding, indentation, timeframe bands, error checking
Limitsopen tabs (6), codes on the chart (8)
Appearancetheme, candle style and colours, animations, launcher
Alertthe webhook address for JSON signals
Backtestcapital, lot, spread, chart marks, live strategies
Next

Chapter 25 · Keyboard shortcuts

Every key Studio answers to.

ProRealCode StudioUser guide · Chapter 24
ProRealCode ProRealCode
Loading...