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 03 · Part I — Getting started

One editor, a rail of windows, a bar that reports.

Everything in Studio starts from the editor under your chart. This chapter names its parts once, so that the rest of the guide can simply say “the rail” or “the status bar”.

  1. 01The editor The open code, its tabs, its line numbers.
  2. 02Buttons and status bar What acts, and what reports.
  3. 03The rail One icon per window.
  4. 04The ⋯ menu The less frequent actions.
  5. 05Three places Under the chart, beside it, or floating.
A Spot EUR/USD daily chart with a shaded ribbon and a REGIME table, and the ProRealCode Studio editor docked under it, open on the code that draws them.
The editor in its first place, under the chart. The platform is in dark mode here; the editor uses Studio's light theme.
ProRealCode StudioUser guide · Chapter 03
01 · The editor

The open code, its tabs and its line numbers.

The left half of the editor: the rail of icons on the left edge, the title ProRealCode Studio with the code's name and the chips unsaved and Studio Only, five tabs, and the code with its line numbers 1 to 15. 1 2 3 4 5
The left half of the editor, open on the example “Trend heat ribbon + regime HUD”.
  1. The rail. Each icon opens one of Studio's windows. Page 03 of this chapter lists them.
  2. The open code. Its name, then its chips. “unsaved”: changes not saved yet. “Studio Only”: it uses an instruction the ProRealTime editor does not know (chapter 06).
  3. The tabs. One per open code. Click a tab to switch to it.
  4. Line numbers. Errors are reported by line (chapter 09).
  5. The code, in colour. Grey lines are comments.
On the tab barMeans
× on a tabCloses the tab. The code stays on the chart, and a saved code stays in your codes.
+A new, empty code in a new tab. What is on the chart stays.
A dot before a nameEdits the chart has not seen yet: click “Run” to apply them.
×2 after a nameTwo copies of this code are on the chart, each with its own settings.
5 / 6, far rightCodes open, and the most you allow. Many open codes slow the chart; the limit is in ⚙ Preferences → Limits.
ProRealCode StudioUser guide · Chapter 03
02 · Buttons and status bar

The buttons act on the open code. The bar reports.

The right end of the editor's header: Run, Save, Variables, View outlined in green, A−, A+, three dots, a down arrow and Close; under them, the counter 5 / 6 and the Close all tabs icon.
The right end of the header, and of the tab bar under it.
RunPuts the code on the chart, or updates it there. Ctrl + Enter.Ch. 02
SaveSaves the code; asks for a name the first time. Ctrl + S.Ch. 02
VariablesDeclares the settings of the code, its input() lines.Ch. 08
ViewShows or hides this code's curves on the chart. Outlined in green while they show.Ch. 12
A− · A+Smaller or larger text in the editor.Ch. 06
⋯ · arrow · CloseMore actions (page 04) · collapse to a thin bar · back to the ƒ launcher.Ch. 01

The status bar, left to right

The left part of the status bar: a green light, chart linked · 3,000 bars, then live · 3000 bars · 1 indicator · 3 series · 1 table · 64.9 ms engine.
The right part of the status bar: ProRealCode Script, a green dot and All in sync, then Alt+P dock · Ctrl+↵ run · Ctrl+S save.
chart linked · 3,000 barsStudio is linked to the chart, and reads this many candles.Ch. 04
live · 3000 bars · 1 indicator…The last computation: candles, codes, what was drawn, and how long it took.Ch. 11
ProRealCode ScriptThe language of the open code, read from the code itself.Ch. 06
⚠ 1 problemOnly when a code has an error. Click it to open Problems.Ch. 09
All in syncWhere your codes are saved: “Saved locally” without an account. Click it for the list.Ch. 05
Alt+P dock · Ctrl+↵ run…A reminder of three shortcuts.Ch. 25
ProRealCode StudioUser guide · Chapter 03
03 · The rail

Fifteen icons, one window each.

The rail, top to bottom: folder, line with the badge 6, stacked layers, clock with an arrow, candle with a play triangle, bar chart, two windows, terminal, bell, circle with an exclamation mark, open book, the blue prorealcode mark, the green ProRealAI mark, a person with a green dot, and a gear at the bottom.
Icon, top to bottomOpensCh.
Codes · folderYour codes, the examples and the prorealcode.com library07
Codes on the chartWhat is applied and drawing right now. The badge counts them.12
TemplatesSave a group of codes applied on the chart, with their settings, and apply it later13
Bar replayWalk the chart forward one bar at a time, and paper-trade it15
Strategies panelBacktest results, and which strategies are running18
Backtest resultsThe numbers of the last run, and every run of this session18
DashboardWindows you build: an instrument, a timeframe, indicators21
ConsoleThe “>_ Console” zone under the code, for console() output09
Alerts panelArmed alerts and desktop notifications. The badge counts new ones.16
Problems panelErrors of the codes on the chart. Red badge: how many.09
About · bookVersion, help and what's new27
prorealcode.com · blueThe Codes window, on the prorealcode.com library07
ProRealAI · greenThe ProRealAI site, in a new browser tab—
Account panelYour prorealcode.com account. Green dot: connected.05
Preferences · gearEditor, theme, colours, limits. Alone at the bottom.24
Panels and windowsThe icons marked panel open inside the editor, left of the code, one at a time; click again to close. The others open a window over the chart. Hover any icon for its name.
ProRealCode StudioUser guide · Chapter 03
04 · The ⋯ menu

What you do once a day waits behind ⋯.

The ⋯ menu: Format document Shift+Alt+F, Toggle // comment Ctrl+/, Toggle /* */ comment Shift+Alt+A, Dataflow map, Dashboard, Dock: bottom, Fullscreen, Re-detect chart.
The ⋯ menu. Shortcuts are on the right of their item.
  1. Click ⋯ near the top right of the editor.The menu opens next to the button.
  2. Click an item.It acts and the menu closes, except “Dock: …”, which stays open so you can click it again.
  3. To close the menu, click elsewhere or press Esc.
ItemDoesCh.
Format documentLays the code out again, line by line.06
Toggle // commentComments out the selected lines, or brings them back.06
Toggle /* */ commentThe same, as one block.06
Dataflow mapOpens “How this code works”, the map of what the code computes.10
DashboardOpens the dashboard, like its rail icon.21
Dock: bottomMoves the editor to its next place. The label names where it is now.03
FullscreenGives the editor the whole height, width or window; click again to shrink it back.03
⟳ Re-detect chartLinks Studio to the chart again, when the status bar shows no link.04
ProRealCode StudioUser guide · Chapter 03
05 · Three places

Under the chart, beside it, or floating over it.

  1. Click ⋯, then “Dock: bottom”.The editor moves to the right of the chart. The item now reads “Dock: right”.
  2. Click it again.The editor floats over the chart: “Dock: floating”. Drag its header to move it.
  3. Click it a third time.Back under the chart. Studio remembers the last place in this browser.
The editor docked on the right of the screen, the chart on the left keeping the platform's right-hand bar, both side by side.
“Dock: right”. The chart narrows to make room. Platform in dark mode, as on the right.
The editor as a floating window in the middle of the chart, its buttons wrapped on two rows, the candles visible around it.
“Dock: floating”. In a small window the buttons wrap onto two rows.

Resize, or take the whole screen

PlaceTo resize⋯ → “Fullscreen”
BottomDrag its top edge up or down.The whole height; again, back to 260 px.
RightDrag its left edge.The whole width; again, back to 460 px.
FloatingDrag its bottom-right corner.The whole window; again, 560 × 380 px.
ProRealCode StudioUser guide · Chapter 03
Chapter 03 · In short

The code in the middle, windows on the rail, news at the bottom.

The editor holds the code, the rail opens the windows, and the status bar says whether the chart is linked, what the last computation did and whether your codes are saved. Place and size are remembered in this browser.

KeysDoes
Alt + PShow / hide the editor
Alt + ICodes on the chart

I closed a tab. Is my indicator gone from the chart?

No. A tab is only the code open in the editor. The indicator stays on the chart; “Codes on the chart” removes it (chapter 12).

The editor hides my candles.

Move it: ⋯ → “Dock: bottom” sends it to the right, then floating. Or drag its edge to make it smaller.

Alt + P and Alt + I do nothing.

The cursor is in a text field, maybe the editor. Click the chart, then press the keys again.

Where did a panel go?

Only one panel shows at a time. Click its rail icon again: Strategies, Alerts, Problems or Account.

Next

Chapter 04 · Linking Studio to the chart

What “chart linked” means, and how to work with several charts.

ProRealCode StudioUser guide · Chapter 03
ProRealCode ProRealCode
Loading...