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 14 · Part III — On the chart

Studio in your colours. Candles redrawn, if you want.

Everything in this chapter is a preference: a theme for Studio's windows, the way your curves are coloured, a style for the candles of your chart, and a little motion. None of it changes a single value on the chart.

  1. 01Choose a theme 66 palettes, or follow the platform.
  2. 02Redraw the candles Five styles, one shortcut.
  3. 03Candle colours and heat Your own up and down colours.
  4. 04Motion Off until you turn it on.
The ProRealCode Studio editor in the ProRealCode Studio Dark theme: black background, the rail on the left, seven tabs, an example's comments in grey, the status bar along the bottom.
The editor in “ProRealCode Studio Dark”. A dark capture on purpose: this is what the theme looks like.
Where the settings areAll of them are in “⚙ Preferences” → “Appearance”. Open “⚙ Preferences” with the ⚙ at the bottom of the rail, or with the “Preferences” row of the ƒ launcher when the editor is closed. Each change is saved in this browser.
ProRealCode StudioUser guide · Chapter 14
Task 1 · Choose a theme

Preview first. Nothing changes until “Apply theme”.

Preferences on the Appearance tab: the Theme list set to ProRealCode Studio Light — Default, the switch Apply also to ProRealTime greyed, a preview box with a few lines of code in colour, the Apply theme button greyed, and the Auto colours switch turned on with its explanation. 1 2 3 4 5
“⚙ Preferences” → “Appearance”, on “ProRealCode Studio Light”.
  1. “Theme”. “Auto (follow platform)” first, then the dark themes, then the light ones.
  2. “Apply also to ProRealTime”. Gives the platform's own menus and panels the theme's colours. “The chart itself is not affected.” Greyed under Auto and under Studio's two themes.
  3. The preview. The selected theme on a few lines of code, before you commit.
  4. “Apply theme”. Saves the choice and repaints Studio. Greyed until something changed.
  5. “Auto colours”. On: a curve too close to the chart's background is nudged until it reads. Off: your COLOURED(…) values are drawn exactly as written.
  1. Open the “Theme” list and pick a name.The preview box takes its colours. Studio itself does not change yet.
  2. Try others, and decide on “Apply also to ProRealTime”.The switch is off until you turn it on.
  3. Click “Apply theme”.The editor and Studio's windows repaint. The choice stays after a reload.
In the listWhat it is
Auto (follow platform)The default. Dark platform, dark theme; light platform, light theme. Two extra rows, “Auto: dark theme” and “Auto: light theme”, say which pair: Studio Dark and Studio Light unless you change them.
66 themes53 dark, 13 light. Studio's own two end in “— Default”; 11 with stronger text and borders end in “— High contrast”.
ProRealCode StudioUser guide · Chapter 14
Task 2 · Redraw the candles

Five ways to draw a candle. The first draws nothing.

“Price render style” decides how Studio draws the candles of your chart. The default, “Classic flat”, leaves the platform's own candles alone. The four others draw over them, only for the bars on screen.

Daily candles in the platform's own blue and red, with a dashed moving average.
“Classic flat”: the platform's candles.
The same candles drawn as small green and red boxes in three dimensions.
“Isometric OHLC (3D boxes)”.
The same candles, most of them pale grey-green or grey-red, the largest ones in strong green or red.
“Heat candle (magnitude colour)”.

Spot EUR/USD, daily, the same bars three times. Captured with the platform in dark mode.

In the listWhat you see
Classic flat (platform candles)The platform's candles, untouched. Studio draws nothing and it costs nothing.
Isometric OHLC (3D boxes)Each candle as a small box in three dimensions.
Depth-by-volume isometricThe same boxes, deeper when the bar traded more volume.
Gradient body (2.5D)A body shaded with a gradient.
Heat candle (magnitude colour)A body coloured by how far the bar travelled from open to close: grey for a small move, full colour for the biggest one on screen.
  1. In “Appearance”, open “Price render style” and pick a style.The candles change at once. No “Apply” here.
  2. Or, with the chart in front of you, press Ctrl + Shift + D.Each press moves to the next style, then back to “Classic flat”. Not while you are typing in a text field.
ProRealCode StudioUser guide · Chapter 14
Task 3 · Candle colours and heat

One pair of colours for every candle Studio draws.

Illustration. The rows of “Appearance” this task uses, redrawn with their labels as on screen.
  1. Pick a style other than “Classic flat” (task 2).Under “Classic flat” the platform draws the candles, and its own colours apply.
  2. Turn on “Custom candle colours”.“Bullish candle” and “Bearish candle” stop being greyed.
  3. Click each colour and choose yours.Every candle Studio draws takes the pair at once.
RowWhat it does
Custom candle coloursOff: the built-in green and red. On: your pair. Turning it off keeps your pair for later.
Bullish candleA candle that closed at or above its open.
Bearish candleA candle that closed below its open.
Heat sensitivityFive steps: Subtle, Low, Normal, High, Extreme. Only “Heat candle” reads it, so it is greyed under the other styles.

How the heat scale works

The two ends never move. A bar that closed where it opened is grey; the biggest body on screen is in full colour. The setting changes everything in between: “Subtle” keeps colour for the big moves, “Extreme” gives it to almost every bar.

One pair, three uses

The pair colours the redrawn candles, the two ends of the heat scale, and the bar still forming in Bar replay (chapter 15). Under “Classic flat”, only that replay bar uses it, and the tab says so.

ProRealCode StudioUser guide · Chapter 14
Task 4 · Motion

Motion is off until you turn it on.

Illustration. The two motion rows, turned on. Both are off when Studio is installed.
“Motion only.”The tab says it above the two switches: “Neither of these touches the data the chart receives — no quote is delayed, filtered or dropped, and no value changes.”

“Advanced visual effects” moves exactly four things

  1. A change of price render style dissolves in, instead of switching at once.
  2. In “Backtest results”, the equity curve draws itself from left to right and the gauges and bars count up (chapter 18).
  3. The trade markers of a backtest pop in on the chart when a run first appears.
  4. The live result of a strategy armed in real time pulses while it stays armed (chapter 19).

Nothing else in the editor moves. On an older computer, or a chart already carrying several codes, it can use noticeably more processor.

“Live candle animation”

One candle moves: the one at the right edge, still forming. On each price update its open, high, low and close slide to their new values in a fraction of a second, and a new candle grows out of the previous close. It needs three things at once: this switch, “Advanced visual effects”, and a price render style other than “Classic flat”, since it animates the candles Studio draws. Closed bars, Bar replay and the platform's own candles never move.

Your computer's reduced-motion setting winsIf your system asks applications to reduce motion, Studio plays none of these animations, whatever the two switches say.
ProRealCode StudioUser guide · Chapter 14
Chapter 14 · In short

These settings change the look, never a value.

“Appearance” rowWhen Studio is installedCovered in
ThemeAuto (follow platform)Task 1
Apply also to ProRealTimeOffTask 1
Auto coloursOnTask 1
Price render styleClassic flatTask 2
Custom candle coloursOffTask 3
Heat sensitivityNormalTask 3
Advanced visual effects · Live candle animationOff · OffTask 4

The “Launcher rows” further down the same tab are covered in chapter 01; every preference is listed in chapter 24. Ctrl + Shift + D cycles the price render styles.

I chose a theme and nothing changed.

The list only changes the preview. Click “Apply theme”.

“Apply also to ProRealTime” is greyed.

It works with a named theme only. Under Auto, or on Studio Dark and Studio Light, there is nothing to pass to the platform.

My curve is not the colour I wrote in the code.

“Auto colours” nudged it because it was hard to read on your chart's background. Turn it off to see your exact colours.

I picked custom colours and my candles did not change.

Under “Classic flat” the platform draws the candles. Pick another price render style.

Ctrl + Shift + D did nothing.

The cursor was in a text field, the editor for instance. Click on the chart, then press it again.

The forming candle does not move smoothly.

“Live candle animation” needs “Advanced visual effects” on, a style other than “Classic flat”, and no reduced-motion setting on your computer.

Next

Chapter 15 · Bar replay

Walk your chart back in time, one bar at a time, and practise trades on it.

ProRealCode StudioUser guide · Chapter 14
ProRealCode ProRealCode
Loading...