Glean Concepts

Signals and Actions

Everything in Glean designs is a Signal or an Action.


Actions

Actions allow you to interact with the market and Glean :

There are 4 primary types of Glean actions :
  • Orders (market, limit, stop, etc)
  • Cancels (of previous action)
  • Sets (changing value of other signals)
  • No actions
Actions can be created at any time from the action menu, or by right clicking and choosing add action (+ action).

Actions require signals to become active, so lets talk about signals.

Signals


Data enters Glean through signals, which then control your strategy design's actions.
Thousands of signals are included, billions of signals can be constructed.

All the signals fall into two categories :
  • simple signals   (hold single value of information)
  • combined signals (lets you construct new signals from existing ones)
Lets see some examples.
Like signals can be combined to form new signals, like so :

Combined signals function like simple signals when used, only their creation is different.

Signal Types

Regardless of category, there are 4 types of information signals contain :

  • Truth signals hold on/off levels (eg :  price > myindicator,   ismypositionflat,  allowlongs = true)
  • Number signals typically hold contract and share sizes (eg: myinitialsize = 100, middenominator =2 )
  • Decimal signals hold prices and calculations (eg: midnumerator = bid + ask, mid = midnumerator / middenominator )
  • Text signals hold symbols and destinations
The simple rule of thumb when constructing signals in Glean is : "if in doubt, create more signals".

Creating Signals


You can create signals from the signal menu, or by right clicking and choosing + signal and choosing the desired category and type.

Editing Signals


Signals can be edited at any time by double clicking.


Removing Signals


Signals can be removed in Block view (views > Design > Blocks) by locating the signal, right clicking and choosing remove.

If a signal is used by other signals, you will have to remove it from use before deleting it.

Signal Groups

Calculating complex signals may require many tens of individual signals.    Sometimes additional signals are used to control the calculation.

Working with these related signals is easy in Glean with Signal groups.

Signal groups allow you to change related signals in one place rather than individually.

In this screenshot, the bollinger signal group is :
  • identified by the dotted line
  • contains 29 related signals
  • 6 of these signals will affect the calculation
You can always edit signals individually or in the group, whichever is easier.

Read-only signals are hidden by default, show them by right clicking and choosing show signals.

Design Undos


Anytime you change a design by adding, editing or removing signals, a new version of your design is created to protect your work.

You can move back and forth between previous and subsequent design versions using the version toolbar.

In community mode Glean will let you work with 20 designs and 25 undo levels per design.   

In Optimize and optionally DLL unlock mode you have unlimited designs and rollback capabilities.