Understanding Explorations

Exploration Tool Window
Creating Explorations
Programming Exploration
Filtering Symbols
Launching Explorations
Launching Explorations from the IDE
Pre-selecting symbols
Working with Exploration Results
Browsing Charts
Cancelling Explorations
Modifying Explorations
Cloning Explorations
Removing Explorations


The Explorer is one of the most powerful tools in Chartsy|One. It allows to scan historical data of selected symbols for trading opportunities using custom, fully programmable criteria.

The exploration is a definition of the screening task and it consists two parts: the exploration configuration and the exploration formula (source code). The exploration configuration contains general properties of the screening task, such as the exploration name and the time frame and the resolution of candles supplied to the exploration script (for example: daily candles, hourly candles,... etc). The exploration formula is the actual source code executed when the exploration task is running.

It is possible and quite common to have multiple exploration configurations associated with one exploration formula.

Exploration Tool Window

Explorations can be managed, created, deleted and organized into categories from the “Explorations” window.

To open the “Explorations” window use any of the following methods:

Creating Explorations

To create a new exploration from the Exploration Tool window:

  1. Click New… button.
  2. A “New Exploration” window is opened, where you can define exploration configuration options:
    • Name - an exploration display name (required),
    • Class name - a name of the Java class containing the exploration formula source code to execute (required). You can reuse already existing formulas by pressing Browse… button and selecting picking the existing class from your Formula Center repository.
    • Category - a name of a category under which a created exploration item will be shown (optional).
    • Time Frame - the resolution of candles to use.
    • Range - the range of data to use
    • Apply To - a hint to the system, about what symbols to use in the exploration. The “Apply To” field should contain a valid name of the top-level folder from the “Symbols” tree view, or its regular expression if the “Regex” checkbox is selected.
  3. Press Finish button to accept changes.

The exploration configuration is saved and the source code editor tab is opened in the background. Use the source code editor and the build in development environment to develop an actual exploration code.

Note: If already existing class name is selected in step 2 above, then a code editor is not opened in the last step.

Programming Exploration

The exploration code is a Java class which contains an actual code that will be executed against all selected symbols when an exploration is launched. The class must extend Exploration base class and must implement at least the explore(Symbol, Quotes) method.

The explore(Symbol, Quotes) method is an entry point of a custom exploration code. It is called once for each symbol selected for exploration. The method is called with two arguments of type Symbol and Quotes.

The Symbol is a reference to the symbol being currently explored.

The Quotes object delivers a historical data candles for the symbol. The resolution and range of the candles matches the values declared in the exploration configuration. The Quotes object is an indexed, chronologically ordered collection of OHLC prices (candles). The latest, newest candle has index 0, while the older candles has indexes 1, 2,... etc. The method quotes.length() gives the total number of candles available in the object.

The explore() method usually crunches supplied historical symbol data and publishes results by invoking addColumn(String, Object) method or any of its alternate versions one or more times. The added columns will become automatically visible in the exploration result table.

For example the following exploration code displays an open, high, low and closing prices of the last candle and in addition displays the last value of the RSI(14) indicator.

Filtering Symbols

To programmatically filter out symbols from the exploration override filter(Symbol) or filter(Symbol, Quotes) method (or both) in your exploration class. By returning “false” for a particular symbol it is effectively excluded from the exploration result and the explore() method won’t be called for it.

Launching Explorations

To launch the exploration from the “Explorations” window:

  1. Left click on the exploration to select it.
  2. Press the Explore button.
  3. A new “Select Symbols for Exploration” window is opened with a symbols tree view.
  4. Select one or more symbols from the displayed symbols tree by checking the box near each symbol or symbol group you want to be included in the exploration.
  5. Press the Explore button to confirm your selection and start the exploration.

A new exploration task is started in the background and a new “Exploration Result” tab is expected to open. The “Exploration Result” tab is a table displaying in realtime the results of the exploration task. The more symbol you included in the exploration, the more time the exploration needs to scan all historical data.

Launching Explorations from the IDE

While working with the exploration source code you can quickly launch an exploration by clicking the Launch button from the editor toolbar. The provided combobox allows also to change an exploration configuration against which an exploration will be launched.

Note: While working with the source code the editor changes must be saved before launching the exploration. Otherwise the Explorer Tool won’t be able to pick up the newest code and instead it will execute an old one.

Pre-selecting symbols

Sometimes it is crucial to launch repeatedly many explorations or multiple versions of an exploration being developed with the same set of symbols. You can avoid repeatedly selecting the same set of symbols over and over again each time you start an exploration, by pre-selecting them in the Symbols view.

To do so, mark checked the required symbols or symbol folders in the symbol tree view. by checking the boxes near the tree items which you want to include in the exploration. If any items are checked in the view, the Explorer Tool will by default use all symbols from the checked symbols for new exploration launches.

Working with Exploration Results

The “Exploration Result” table displays a result of the ongoing or completed exploration process. Each row in the table corresponds to a single processed symbol. Each column is defined in the exploration source code and can display any data for a particular symbol you like.

To export exploration result table to CSV file:

  1. Right click on a row in the table.
  2. Select Export to CSV or other alternative export actions available in the context menu.
  3. Choose the file name and directory you want to export the data to.
  4. Click Save to confirm.

To show chart for a symbol:


Browsing Charts

To quickly browse charts for a number of symbols from the exploration result follow the given steps:

  1. Order the rows in the exploration in a way you like to group the symbols you are interested in. For example, if you are interested in low-RSI stocks, sort the RSI column in ascending order.
  2. Select multiple rows in the table using any of the following methods:
    • Press CTRL + left click on the row to select, CTRL + left click again to deselect;
    • Press SHIFT + up/down arrow keys to select/deselect adjacent rows;
    • Left mouse button press and drag to define the rows selection.
  3. Right click on the table.
  4. Select Open Charts(s) from the context menu.

A new chart tab is expected to open. To quickly switch charted symbol and navigate forth and back to the next (previous) symbol, press right (left) arrow keys on the keyboard.

Note: If the arrow keys are not changing the chart symbol, first click the “Go Forward” button in the chart toolbar, and then continue using the keyboard arrow keys.

Note: You can press and hold the “Go Forward” or “Go Back” buttons to open an entire list of symbols, from which you can select the symbol to chart.

Cancelling Explorations

While the exploration is running Chartsy displays a progress of the task in the application’s status bar.

To cancel a long running exploration:

  1. Click the cancel icon near the progress bar of the task.
  2. When asked for confirmation press Yes to confirm.

Modifying Explorations

To modify properties of an exploration:

  1. Highlight an exploration you want to modify in the “Explorations” window.
  2. Click the Edit button.
  3. The “Modify Exploration” dialog is expected to open.
  4. Change exploration configuration properties and click Finish to save all changes.

To rename an exploration:

  1. Highlight an exploration you want to rename in the “Explorations” window.
  2. Click the Rename button.
  3. Enter a new name for the exploration.
  4. Click OK to accept change.

Cloning Explorations

To create a new exploration configuration based on an existing one:

  1. Highlight an exploration you want to clone in the “Explorations” window.
  2. Click Copy as… button.
  3. A “New Exploration” window is expected to open with exploration properties already populated.
  4. Change exploration configuration properties in any way you like and click “Finish” to create a new exploration.

Removing Explorations

To remove existing exploration:

  1. Highlight an exploration you want to remove in the “Explorations” window.
  2. Click Delete… button.
  3. Click Yes when asked for confirmation.