ProRealCode Studio is on its way. As soon as it is published, this button will take you straight to its Chrome Web Store page.
Every code on the chart costs time at each update of the price. Studio shows that time next to each code, and one click further, which of its lines spends it. A slow chart then becomes one line to rewrite.
1
2
| The chip reads | What it means |
|---|---|
| — | Not measured yet. |
| 2.1 ms, plain | Under 16 ms. Nothing to do. |
| ⚡ 23 ms, amber | From 16 ms. Worth a look if the chart feels slow. |
| ⚡ 66.5 ms, red | From 50 ms. Each update holds the page long enough to feel stuck. |
1
2
3
4
Hot lines give six line numbers. The flow map (chapter 10) puts a share of the time on every card, so you see which part of the calculation costs, and what it feeds.
DEFPARAM CalculateOnLastBars = N limits the first calculation to the last N bars. It caps nothing when the chart holds N bars or fewer. And each new candle moves the window, so the whole window is calculated again.
Measured on 6,000 bars with a window of 500, which also left the bars before the window blank. Leave it out, unless the chart holds far more history than your code needs.
A FOR loop of 50 turns on a chart of 3,000 bars runs its inside line 150,000 times. Hot lines puts that line at the top: fewer turns is time saved on every bar.
| The tooltip names | Where it comes from |
|---|---|
TIMEFRAME segments on another instrument in default mode | A TIMEFRAME block that reads another instrument. |
| this indicator's own TIMEFRAME / instrument setting | A timeframe or instrument chosen in ⚙ Settings, not in the code (chapter 08). |
| an expression evaluated on another instrument | A value read from another instrument. |
| repainting series (ZigZag…) | An instruction whose past values change with new bars. |
| CALL "name" → repainting series | The same, inside a code this one calls. |
| Where | What it tells you |
|---|---|
| The chip | What one update of each code costs. Amber from 16 ms, red from 50 ms. |
| Hot lines | The six lines that spend the most, as shares. Click one to edit it. |
| Show timings | The same shares on the cards of the flow map. |
The chip. Timing every line slows the code down, so read Hot lines as shares, not as times.
The code has not been measured yet. Wait for the next update of the chart, or run it again.
Look at the other rows: each code adds its time, and the status line gives the total.
A first calculation past 20 seconds. The chart keeps its last drawing until it lands (chapter 09).
Only at the moment you open Hot lines or “Show timings”: the code is calculated once more. The chip itself costs nothing.
No. You never see its source, so there is nothing to show line by line (chapter 22).
Chapter 12 · Codes on the chart