Building blocks

Author: admin

February 26th, 2019

Rating:
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Building blocks are the core components that are combined to create rules and actions for every trading strategy.

There are three separate panels:

Entry Rules Building Blocks
Entry building blocks can be divided into several parts:

  • Indicators -RSI, CCI, Momentum, etc.
  • Price ranges – indicaotrs like ATR, Bar Range
  • Price values – simple price values like Open, High, Low, Close
  • Operators – that are used to compare and combine the rules, for example <, >, and, or, etc.
  • Simple rules -predefined rules like “CCI is rising”, “CCI is higher than level”, etc.
  • Other – other blocks, like Number constant, Hour, Minute of day, Day of week

Order and Exit Types

These are blocks that can be used in action – what kind of order to open (Market, Stop, Limit) and how to exit the order – Stop Loss, Profit Target, Trailing Stop, etc.

You can find description of all Order and Exit nodes here.

You can choose each block that you want to use by checking its checkbox. You can also optionally increate its weight or %. Weight is used for blocks that compete with each other – block with bigger weight has bigger chance to be chosen.
Percentage is used for exits – how big probability is to use given exit method.

This way you can choose blocks want to use in the strategy, so you can select your favorite indicators, or choose for example only price data + operators if you want to generate strategies based only on price.

Good practice
According to our experience, you can sometimes get better results if you don’t check all the available components, but narrow your choice to a smaller group of indicators or price values.

Advanced – Block parameters

There is a possibility to edit parameters for every generated block. By default, it uses Default parameters, you can click on the Default link next to the block to modify its config.

Let’s see configuration on Parameters tab for CCI. Here you can see list of all parameters used in CCI building block:

  • Chart – every indicator is computed on a given chart. If you use only one chart (simple strategy) it will be computed from data on main chart
  • Computed From – price data from which CCI is computed
  • Period – CCI period
  • Shift – CCI shift value

Every indicator or other building block has its own set of parameters, most of them contain Chart and Shift, plus some number of indicator parameters like periods.

Parameters

In this part you see list of al parameters of given block, and you can modify how they are generated. You can choose the exact range for random generated value, or set some of the parameters fixed. To edit a parameter, double click on it in the grid.

 

Then you can choose if the parameter will have fixed value or if it will be randomly generated. For random parameters you can also choose list of values to choose from, or range from-to for numeric parameters.

Parameter Sets

There is one more possibility to define block parameter ranges. You can create multiple sets of parameters, where in each set some of the parameters could be generated randomly, and other have fixed values.

So instead of generating (for example) CCI Period randomly from range between 10 and 50, you can create a few parameter sets, and let SQ X randomly chose CCI period only from values 14 and 30.

Parameter sets compete with normal parameter definitions for which of them will be actually used in the generated block. You can use Weight to increase probability that a particular set is used.

For example, by setting Weight of Parameters to 0, while keeping Weights of parameter sets to 1 you tell SQ to generate parameters only using parameter sets.

Leave a Reply

Please Login to comment