Table of Contents

Candle Generation

Hydra allows you to generate various types of candles based on downloaded trades, which can subsequently be exported to Excel, XML, SQL, BIN, JSON, or TXT formats.

This allows you to use the generated data in any technical analysis programs (WealthLab, AmiBroker, etc.).

Candle Generation Process

  1. On the General tab, click the Candles button, and the following window will open:

    hydra candles main

  2. In the opened window, you need to configure the candle generation parameters:

Example of Timeframe Candle Generation

To generate 5-minute candles for the SBER@TQBR instrument:

  1. Select the candle type TimeFrameCandleMessage
  2. Set Timeframe = 5 min
  3. Select the SBER@TQBR instrument
  4. Click the search button

After data generation, you will see the result:

hydra candles tf

Example of Volume Candle Generation

To generate volume candles:

  1. Select the candle type VolumeCandleMessage
  2. Specify the volume (for example, 100)
  3. Select the instrument
  4. In the Build from field, select Ticks
  5. Click the search button

Generation result:

hydra candles volume

Data Sources for Building Candles

If market data could not be obtained directly from the source, you can generate candles by selecting in the Build from field the type of data from which they will be built:

  • Ticks - building candles from tick data
  • Order Books - building candles from order book data
  • Level1 - building candles from Level1 data
  • Smaller Timeframe - building candles with a larger timeframe from candles with a smaller one

Examples of Different Building Options:

  • 10-minute candles from ticks:

    hydra candles tf 10

  • 30-minute candles from 5-minute candles:

    hydra candles tf 01

Tip

If you select don't build in the Build from field, only ready-made candles that were downloaded directly through the data source will be searched.

Visualization of Generated Candles

For graphical display of generated candles:

  1. Click the hydra candles button

  2. A chart with the built candles will open:

    hydra candles tf chart

    hydra candles volume chart

Adding Indicators to the Chart

Technical indicators can be added to the candle chart:

  1. Open the context menu by right-clicking on the chart panel
  2. Select the Indicator item and the desired indicator from the list
  3. To display the indicator on a separate panel:
    • Add a new panel using the hydra add button
    • Select the desired indicator from the context menu

Example of a chart with added indicators:

hydra candles ind chart

Data Export

The obtained candle values can be exported to various formats for use in other programs.

Also see the video tutorial on building various types of candles