You can create, delete, and edit Blox from the Blox menu. If you edit a Block, that will change the behavior of all the systems that use that Block.  This is a very powerful feature since you can have multiple systems that use a particular style Money Manager. And when you update or improve that Money Manager it will improve all the systems that use that Block.


Each Block is entirely independent. The reason for this is so you can mix and match Blox in other systems, and trade or sell them to others. You can create a Risk Manager Block, and drag and drop it into any one of your systems to see what sort of difference it makes. You can also share or sell these Blox with others without any modifications required.


Each Block is made up of multiple Scripts. These Scripts contain the actual code that tells Trading Blox what to do. Each Script can have its own local variables, procedures, and functions. Local variables are only available to that Script. In addition, local variables are undefined at the beginning of a script, and should be reset to some known value at the top of the script before being used.


In addition to local variables, there are Block variables available to scripts in a Block. These include: Block Global's, Instrument Global's, Parameters, and Indicators.

The Scope determines if these variables, parameters and indicators are available only to the Block, System, or Test. Simulation scope is Test Scope but retains values throughout the simulation.



You can view, create, or edit Blox by clicking on the Blox menu item from the Edit menu:





This will bring up the Blox Editor:



For the new and experienced user alike, it is prudent to make a copy of a built-in blox before you edit them.  This serves several purposes:


A new installation or update/upgrade (new version, etc.) will replace all Blox and Systems that came with the product, replacing your editing if the names are the same.

It is always good to have a backup in case you want to return to the original.


Select a block on the left and right click to select copy or new.


If you click "New" this dialog comes up:




The types are explained in the following sections.


If you click "Copy" will copy the Block and bring up a dialog for the new name and new group.



Once you have your new Block, you can edit the different scripts by clicking on them.  You can copy code from other systems by using Control - c and Control - v.  Starting from scratch as a beginner if you have no programming experience can seem daunting. We suggest you look at other simple Blox (such as the MACD or Dual Moving Average) to get a feel for the syntax.


Scripts and block items such as parameters variables, and indicators can be copied, pasted, deleted, or moved up and down. Right click on an item to see the menu selection.


You can add new scripts to a block, such as adding a Can Fill Orders script to an Entry Block. You can also add new custom scripts which can act as custom functions.


Edit Time: 9/25/2017 09:09:58 AM

Topic ID#: 651


Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software