Recession bands (with formulas)

Overview

We have a Recession bands (Fill range) functionality with pre-made bands of different types. You can also set 0/1 series as Fill range graph type in Graph layout. Below you will find an example how to create recession band from a 'normal' series.

Examples

Recession bands with formulas

Combine analysis and formulas to calculate 2 consecutive quarters of decline and turn series into recession band.

Drawdown

Overview

You can calculate Drawdown with the Drawdown formula. There are ways of constructing it differently to fit your desired output – please see examples below.

Examples

Drawdown - historical drawdown

Historical drawdown from each peak to bottom. Our drawdown() formula is defined as 100*(peak - value)/peak.

Drawdown - as a number or percentage

From our formula Drawdown() the outcome is in percentage. Here we change it into a number.

Drawdown - count Drawdown's length

See how to calculate length of a simple drawdown and length of drawdown from certain value to local peak.

Drawdown - maximum drawdown each year

Calculate maximum value for each year including current one.

Drawdown - show values only when recession

See drawdowns, but only when there is a recession.

Forward Swaps & 5y5y

Overview

Calculate swaps with Zero coupon rate analysis and/or with formulas.

Examples

Forward swaps SEK

Calculate from SEK swap rates (1 year-10 year) from SEB (Skandinaviska Enskilda Banken).

Forward swaps EUR

Calculate from EUR swap rates (1 year-10 year) from SEB (Skandinaviska Enskilda Banken).

Euro Area & US 5Y5Y Inflation Swap Rate (requires ICAP)

With formulas calculate 5y5y from inflation swaps for EUR and USD. This chart requires series from ICAP database which is outside core package.

EUR 5y5y Forward Inflation Swap - Bloomberg Method (requires ICAP)

With formulas calculate 5y5y from inflation swaps for EUR. Method used here is based on Bloomberg's method of calculating 5y5y. This chart requires series from ICAP database which is outside core package.

Futures (connecting them into curve)

Overview

See below examples how to connect Position-series with each other, creating a curve. Then it can be connected to the main-series.

Examples

Crude Oil Brent curve - current (1-24th Position)

Create curve, but only from 1st Position to 24th Position series.

Crude Oil Brent curve - current and 1y before

Create curve from all Position series - for current date and for 1 year before.

Gas curve - current

Create curve for Gas futures and connect it to 1st Position series.

Futures - currency curve

Create futures curve for a currency (latest and selected date).

Futures - currency curve (flipped currency)

Create futures curve for a currency (latest and selected date). It's the same file as above but currency is flipped from USD/ILS to ILS/USD.

Yield curve from futures

Create Yield curve (with analysis) or through formulas & analyses.

Global Credit Impulse

Overview

Global credit impulse - a term created by Michael Biggs - it measures the change in new credit issued as a percentage of growth (GDP).

Example

Global Credit Impulse

We have used mix of series from BIS and national sources and weighted them with GDP series from IMF.

Contribution to growth

Overview

Some sources provide separate series for contribution to inflation or GDP. But what happens when they don't, or there are no weights? Or when you simply want to calculate some series as part of another one? See examples below.

Watchlist Charts

Under Files\Macrobond chart library\Examples\Watchlist Charts you'll find folders for selected countries where we have added ready-made Contribution to GDP or/and CPI (inflation) files.

Examples

Contributions to GDP (from series) - Euro Area

Example with contribution series provided by the source.

Contribution to growth - subcomponents with Total and weights

Manual calculation for when source provides separate series for subcomponents and their weight-series.

Contribution to growth - series with Total but without weights

Manual calculation for when you have a Total series but not weight-series - you can calculate them based on the Total.

Contribution to growth - series without Total and weights

Manual calculation for  when there is no Total series and no weight-series. You decide which series would be Total (or calculate it) and which ones use as subcomponents.

Currency conversion

If you are working with series expressed in a variety of currencies it can be helpful to convert all the series to a single currency. In Macrobond there is an automatic currency conversion feature you can apply to your entire document.

Currency conversion works only if series has currency metadata. If series is a non-currency series then no calculation will be performed on it.

How are exchange rates determined?

Relevant parameters

Parameters which are taken into consideration in the process of converting currency are:

  • the currency the series is expressed in,
  • the frequency and properties of the input series,
  • the method selected. The default method is 'Automatic'. (see What’s behind ‘Automatic’ method? for more information)

How it's converted?

In the conversion process, Daily exchange rate series are used, but they are sometimes extended with data of a lower frequency if needed to get longer history.

  1. The currency conversion takes place before the frequency conversion of the series in the document. (see The order of calculation for more information)
  2. The application will search for a direct exchange series to calculate the conversion among the exchange rate series defined by Macrobond.
  3. The application will find an exchange rate series that requires the fewest possible steps to calculate the conversion. Currently all exchange rate series used in Macrobond are specified with USD as the base rate, so in practice most of the exchanges are done via USD.

Which series was used in conversion?

If you want to know exactly which series was used to perform the conversion, navigate to the Forecast tab in Series list. As you can see in the picture below, the FX series used for currency conversion are listed in addition to those added to the Series list.

If your series contain forecasts, you can also add forecasts to the series used for the currency conversion. See How to add a forecast values?.

Currency conversion methods

All currency series are Daily. So, if series is in Daily frequency conversion is straightforward. When your series have a lower-than-Daily frequency there are several options for how to do the currency conversion.

After selecting currency in Currency box on Series list:

‘Currency conversion method’ box will become available under Conversion settings:

By default, all series are set to ‘Automatic’ (method is set according to the properties of the series) but you can change it manually to:

  • Legacy
  • First
  • First 5d median
  • Last
  • Last 5d median
  • Average
  • None

What’s behind ‘Automatic’ method?

The default setting is 'Automatic'. This means that the method will be decided according to the properties of the series:

  • for Daily series we use ‘Last’,
  • for other frequencies we use 'Last 5d median',
  • for Flow series and series that we know are sampled in the middle of the period or are averages of the period, we use the 'Average',
  • if we know that the series is sampled at the start of the period, we use 'First 5d median'.

What’s behind ‘Legacy’ method?

This method was used in documents created before Macrobond version 1.22.

Relevant parameters which are taken into consideration in the process of converting currency are:

  • the frequency and properties of the input series,
  • the currency the series is expressed in.

The process of converting is a bit different because of the third step:

  1. The currency conversion takes place before the frequency conversion of the series in the document. (see The order of calculation for more information)
  2. The application will search for a direct exchange series to calculate the conversion.
  3. Finally, the application will search for a series that matches the frequency of the document. If a corresponding frequency is not found, the closest higher frequency will be used and the first observation of the period.

Applying currency conversion to a single series (manual conversion)

If you only want to convert a specific series in your document, you can use the formula language and a suitable exchange rate series. Note that all exchange rates are in Daily frequency and they will change frequency of document.

Our ready made currency series can be found under:
Currency per USD
Concept & Category > Interest & Exchange Rates > National Sources > FX Rates > USD Rate

Currency per EUR
Concept & Category > Interest & Exchange Rates > National Sources > FX Rates > EUR Rate

Convert series from Local currency to USD or EUR

From HKD to USD or EUR:

hkgdp*1/hkd
hkgdp*1/hkdeur

From NOK to USD or EUR:

nobank2048/nok 
nobank2048/nokeur

Convert series from USD or EUR to Local currency

From USD or EUR to HKD:

usgdp*hkd
eunaac0019*hkdeur

Convert series from one Local currency to another Local currency

From NOK to HKD through USD:

nobank2048/nok*hkd

From NOK to HKD through EUR:

nobank2048/nokeur*hkdeur

Questions

How does the currency conversion feature work when I change the frequency?

Exchange series are in Daily frequency, but what happen when you apply it to a non-Daily series and select its frequency as main?

If Currency conversion method is set to 'Automatic' the application chooses method according to properties of the series: 'Last 5d median', 'Average' or 'First 5d median'. For more information which applies to what series see What’s behind ‘Automatic’ method?.

Why doesn’t currency conversion feature work on my series?

The whole process is based on series’ metadata. If series doesn’t have them, currency conversion won’t work.

For example, all series downloaded with The Macrobond Bloomberg Connector do not have currency metadata. We suggest either using manual conversion mentioned above or downloading series from Bloomberg already in desired currency with an override:

"ih:bl:ndueacwf index:PX_LAST:Curr=ZAR"

Why doesn't currency conversion feature match the manual calculation?

  1. You have performed manual calculation in the same document you have used currency conversion feature.
    Currency chosen in the Currency box on Series list is applied to the whole document before calculations in Series list and analyses (see The order of calculation for more information). If you calculated manually in the same document you actually calculated on an already changed series. To compare conversions please use two separate documents.
  2. You have performed calculations in two different documents.
    The default conversion method in Currency conversion feature is 'Automatic' - which means that exact method will be decided according to the properties of the series (see What’s behind ‘Automatic’ method? for more information).For example, in manual conversion Macrobond uses 'Last' (last observation), while Currency conversion feature for non-Daily series uses 'Last 5d median'. To match the manual conversion go to Conversion settings and change Currency conversion method.

Working with documents

Overview

To improve workflow, we introduced new tabs in one of the Analytics tab activity’s segments:

  • Open documents - a vertical view of all open documents, including a thumbnail.
  • Documents - alternative way to open documents instead of using the File > Open document dialog, with some extra features (i.e., preview, notifications of changes).

Using Open documents tab

In this tab you can manage documents on which you are working by:

  • selecting a document from the list instead of searching through all opened tabs (since 1.29 multi-selection is also possible)
  • navigating through the list with keyboard arrows
  • copying hyperlinked path to the document*
  • opening folder where the document is located with right-click > Open containing folder*
  • creating presentation document from one or more selected documents, for more information see Presentation documents
  • closing document by using the X in the corner showed when the mouse is over or by right-click and selecting one of the options*, or by using mouse middle-button on document's tab.
  • closing ‘all documents’ or ‘all other documents’ through right-click and selecting one of the options*

*Also available when right-clicking on document’s tab.

Using Documents tab

This is an alternative way to open documents instead of using the File > Open document. It also integrates the list of Recent documents that can also be found in the Start tab activity.

Switching between directories

By default, you see three directories – crumb bars – and can easily switch between them. You can switch between directories by:

  • using drop-down arrow
  • using the ‘tree button’ on the right of the bar
  • double-clicking on subfolders displayed below bars
  • using keys, deleting, and typing new directories


You can decrease/increase number of bars (up to 10). To do this click on cog icon (More settings) and change number of bars. From here you can also sort documents.

Preview document

When you select one of the documents (it works for Presentations too) it will open in document’s segment as a preview. The tab will be in orange color. If you click on another file, the content of the preview will be replaced.

To change document’s status from preview to permanent:

  • double click on the document in the Documents tab
  • click on the Open document symbol next to the X in the orange preview tab
  • make any changes in the document

Copy path

If you want to share location of the file with your colleagues, you can right-click on document’s tab and select Copy path. Now you can paste in a hyperlinked path to this directory.

Open containing folder

When you have opened file, you can right-click on its tab and select Open containing folder. It will open that folder in the Documents tab.