diff --git a/CanvasApp/FloatingSpace/UiObjectConstructor.js b/CanvasApp/FloatingSpace/UiObjectConstructor.js index 0054c8b61..1df4c95a6 100644 --- a/CanvasApp/FloatingSpace/UiObjectConstructor.js +++ b/CanvasApp/FloatingSpace/UiObjectConstructor.js @@ -148,7 +148,7 @@ function newUiObjectConstructor () { currentStatus: true, label: undefined, visible: true, - icons: ['menu-tensor-free-angles', 'angle-to-parent-360', 'angle-to-parent-180', 'angle-to-parent-090', 'angle-to-parent-045'], + icons: ['angle-to-parent-000', 'angle-to-parent-360', 'angle-to-parent-180', 'angle-to-parent-090', 'angle-to-parent-045'], rawRadius: 8, targetRadius: 0, currentRadius: 0, @@ -163,7 +163,7 @@ function newUiObjectConstructor () { currentStatus: true, label: undefined, visible: true, - icons: ['headphones', 'distance-to-parent-025', 'distance-to-parent-050', 'distance-to-parent-100', 'distance-to-parent-150', 'distance-to-parent-200'], + icons: ['distance-to-parent-000', 'distance-to-parent-025', 'distance-to-parent-050', 'distance-to-parent-100', 'distance-to-parent-150', 'distance-to-parent-200'], rawRadius: 8, targetRadius: 0, currentRadius: 0, diff --git a/CanvasApp/Panels/LayersPanel.js b/CanvasApp/Panels/LayersPanel.js index 6e8226a1c..98684a18e 100644 --- a/CanvasApp/Panels/LayersPanel.js +++ b/CanvasApp/Panels/LayersPanel.js @@ -299,7 +299,7 @@ function newLayersPanel () { The overall idea here is that we need to keep syncronized the panel with the layers that are defined at the Designer. Users can connect or disconnect any objext resulting in changes in which are valid layers and which not at any point in time. So what we do here is trying to keep the panel - only with the layers that are connected to the Charting System hiriarcy. + only with the layers that are connected to the Charting Space hiriarcy. To achieve this, first we are going to move all session related cards to a local array. Then we are going to check for layers at the designer, and will move back the cards which still have layers well diff --git a/CanvasApp/Spaces/ChartSpace.js b/CanvasApp/Spaces/ChartSpace.js index dced0c410..41394e27b 100644 --- a/CanvasApp/Spaces/ChartSpace.js +++ b/CanvasApp/Spaces/ChartSpace.js @@ -87,14 +87,14 @@ function newChartSpace () { let rootNodes = canvas.designerSpace.workspace.workspaceNode.rootNodes for (let i = 0; i < rootNodes.length; i++) { let rootNode = rootNodes[i] - if (rootNode.type === 'Charting System') { + if (rootNode.type === 'Charting Space') { thisObject.payload = rootNode.payload } } thisObject.viewport = newViewport() if (thisObject.payload.node.viewport === undefined) { - if (ERROR_LOG === true) { logger.write('[WARN] initialize -> There must exist a Viewport node attached to the Charting System node in order for the Viewport save its properties. ') } + if (ERROR_LOG === true) { logger.write('[WARN] initialize -> There must exist a Viewport node attached to the Charting Space node in order for the Viewport save its properties. ') } } else { thisObject.viewport.payload = thisObject.payload.node.viewport.payload } diff --git a/CanvasApp/Spaces/DesignerSpace.js b/CanvasApp/Spaces/DesignerSpace.js index 86045cb00..1618ab0b1 100644 --- a/CanvasApp/Spaces/DesignerSpace.js +++ b/CanvasApp/Spaces/DesignerSpace.js @@ -178,7 +178,7 @@ function newDesignerSpace () { 'crypto-exchanges', 'crypto-exchange', 'exchange-markets', - 'charting-system', + 'charting-space', 'time-line-chart', 'time-frame-scale', 'time-scale', @@ -227,6 +227,7 @@ function newDesignerSpace () { 'distance-to-parent-100', 'distance-to-parent-050', 'distance-to-parent-025', + 'distance-to-parent-000', 'angle-to-parent-360', 'angle-to-parent-180', 'angle-to-parent-090', diff --git a/CanvasApp/Spaces/FloatingSpace.js b/CanvasApp/Spaces/FloatingSpace.js index 6422a85f0..0737e8ed0 100644 --- a/CanvasApp/Spaces/FloatingSpace.js +++ b/CanvasApp/Spaces/FloatingSpace.js @@ -91,7 +91,7 @@ function newFloatingSpace () { payload.node.type === 'Trading System' || payload.node.type === 'Network' || payload.node.type === 'Crypto Ecosystem' || - payload.node.type === 'Charting System' || + payload.node.type === 'Charting Space' || payload.node.type === 'Data Mine' ) { return false diff --git a/Inter-Process-Files/AppSchema.json b/Inter-Process-Files/AppSchema.json index d0af4a5a2..840d8fdb8 100644 --- a/Inter-Process-Files/AppSchema.json +++ b/Inter-Process-Files/AppSchema.json @@ -724,8 +724,8 @@ }, { "action": "Add UI Object", - "label": "Add Charting System", - "relatedUiObject": "Charting System", + "label": "Add Charting Space", + "relatedUiObject": "Charting Space", "actionFunction": "payload.onMenuItemClick" }, { @@ -4772,7 +4772,7 @@ "isPersonalData": true }, { - "type": "Charting System", + "type": "Charting Space", "menuItems": [ { "action": "Add UI Object", @@ -4792,7 +4792,7 @@ "action": "Delete UI Object", "askConfirmation": true, "confirmationLabel": "Confirm to Delete", - "label": "Delete Charting System", + "label": "Delete Charting Space", "iconPathOn": "delete", "iconPathOff": "delete", "actionFunction": "payload.onMenuItemClick" @@ -4801,7 +4801,7 @@ "isHierarchyHead": true, "addLeftIcons": true, "level": 1, - "icon": "charting-system", + "icon": "charting-space", "properties": [ { "name": "viewport", @@ -4878,7 +4878,7 @@ "isTitleAllwaysVisible": true, "icon": "time-machine", "chainAttachesTo": { - "compatibleTypes": "->Charting System->" + "compatibleTypes": "->Charting Space->" }, "propertyNameAtParent": "timeMachines", "properties": [ @@ -4939,7 +4939,7 @@ "level": 2, "icon": "viewport", "chainAttachesTo": { - "compatibleTypes": "->Charting System->" + "compatibleTypes": "->Charting Space->" }, "propertyNameAtParent": "viewport" }, diff --git a/WebServer/Images/Icons/style-01/angle-to-parent-000.png b/WebServer/Images/Icons/style-01/angle-to-parent-000.png index 7cacded49..d458e70c1 100644 Binary files a/WebServer/Images/Icons/style-01/angle-to-parent-000.png and b/WebServer/Images/Icons/style-01/angle-to-parent-000.png differ diff --git a/WebServer/Images/Icons/style-01/angle-to-parent-045.png b/WebServer/Images/Icons/style-01/angle-to-parent-045.png index a7ce167dc..906a1d914 100644 Binary files a/WebServer/Images/Icons/style-01/angle-to-parent-045.png and b/WebServer/Images/Icons/style-01/angle-to-parent-045.png differ diff --git a/WebServer/Images/Icons/style-01/angle-to-parent-090.png b/WebServer/Images/Icons/style-01/angle-to-parent-090.png index 0042f2b25..4b3583bc6 100644 Binary files a/WebServer/Images/Icons/style-01/angle-to-parent-090.png and b/WebServer/Images/Icons/style-01/angle-to-parent-090.png differ diff --git a/WebServer/Images/Icons/style-01/angle-to-parent-180.png b/WebServer/Images/Icons/style-01/angle-to-parent-180.png index 80b1d773e..ce921425f 100644 Binary files a/WebServer/Images/Icons/style-01/angle-to-parent-180.png and b/WebServer/Images/Icons/style-01/angle-to-parent-180.png differ diff --git a/WebServer/Images/Icons/style-01/angle-to-parent-360.png b/WebServer/Images/Icons/style-01/angle-to-parent-360.png index 2d22de411..6cf98ad3f 100644 Binary files a/WebServer/Images/Icons/style-01/angle-to-parent-360.png and b/WebServer/Images/Icons/style-01/angle-to-parent-360.png differ diff --git a/WebServer/Images/Icons/style-01/charting-space.png b/WebServer/Images/Icons/style-01/charting-space.png new file mode 100644 index 000000000..b3e320916 Binary files /dev/null and b/WebServer/Images/Icons/style-01/charting-space.png differ diff --git a/WebServer/Images/Icons/style-01/distance-to-parent-000.png b/WebServer/Images/Icons/style-01/distance-to-parent-000.png new file mode 100644 index 000000000..984873dd9 Binary files /dev/null and b/WebServer/Images/Icons/style-01/distance-to-parent-000.png differ diff --git a/WebServer/Images/Icons/style-01/distance-to-parent-025.png b/WebServer/Images/Icons/style-01/distance-to-parent-025.png index 093728876..e9fa9f3a0 100644 Binary files a/WebServer/Images/Icons/style-01/distance-to-parent-025.png and b/WebServer/Images/Icons/style-01/distance-to-parent-025.png differ diff --git a/WebServer/Images/Icons/style-01/distance-to-parent-050.png b/WebServer/Images/Icons/style-01/distance-to-parent-050.png index 954fdf8ee..dce0a9386 100644 Binary files a/WebServer/Images/Icons/style-01/distance-to-parent-050.png and b/WebServer/Images/Icons/style-01/distance-to-parent-050.png differ diff --git a/WebServer/Images/Icons/style-01/distance-to-parent-100.png b/WebServer/Images/Icons/style-01/distance-to-parent-100.png index 4c56ed394..6ba242342 100644 Binary files a/WebServer/Images/Icons/style-01/distance-to-parent-100.png and b/WebServer/Images/Icons/style-01/distance-to-parent-100.png differ diff --git a/WebServer/Images/Icons/style-01/distance-to-parent-150.png b/WebServer/Images/Icons/style-01/distance-to-parent-150.png index 07e6b93f1..041adb15c 100644 Binary files a/WebServer/Images/Icons/style-01/distance-to-parent-150.png and b/WebServer/Images/Icons/style-01/distance-to-parent-150.png differ diff --git a/WebServer/Images/Icons/style-01/distance-to-parent-200.png b/WebServer/Images/Icons/style-01/distance-to-parent-200.png index 4ccf4e78b..54aa46ff2 100644 Binary files a/WebServer/Images/Icons/style-01/distance-to-parent-200.png and b/WebServer/Images/Icons/style-01/distance-to-parent-200.png differ diff --git a/docs/_data/data_mine.md b/docs/_data/data_mine.md index ee43526e0..860236ac3 100644 --- a/docs/_data/data_mine.md +++ b/docs/_data/data_mine.md @@ -30,7 +30,7 @@ record: "A record is the compendium of information stored for each period of tim formula: "In the context of a record definition, formulas are used to assign a value to the property, usually in the form of a variable declared in the calculation or data building procedure." -calculations_procedure: "The calculations procedure processes information to be fed to calculated properties. Calculated properties are not stored in the data set; instead, they are calculated in real-time as the data is consume by others." +calculations_procedure: "The calculations procedure processes information to be fed to calculated properties. Calculated properties are not stored in the data set; instead, they are calculated in real-time as the data is consumed by others." procedure_loop: "The procedure loop holds the JavaScript code that cycles through an input processing information to generate an output." diff --git a/docs/_data/data_mine.yml b/docs/_data/data_mine.yml index ee43526e0..860236ac3 100644 --- a/docs/_data/data_mine.yml +++ b/docs/_data/data_mine.yml @@ -30,7 +30,7 @@ record: "A record is the compendium of information stored for each period of tim formula: "In the context of a record definition, formulas are used to assign a value to the property, usually in the form of a variable declared in the calculation or data building procedure." -calculations_procedure: "The calculations procedure processes information to be fed to calculated properties. Calculated properties are not stored in the data set; instead, they are calculated in real-time as the data is consume by others." +calculations_procedure: "The calculations procedure processes information to be fed to calculated properties. Calculated properties are not stored in the data set; instead, they are calculated in real-time as the data is consumed by others." procedure_loop: "The procedure loop holds the JavaScript code that cycles through an input processing information to generate an output." diff --git a/docs/css/customstyles.css b/docs/css/customstyles.css index ec21cf4ec..f4db5c841 100644 --- a/docs/css/customstyles.css +++ b/docs/css/customstyles.css @@ -507,6 +507,7 @@ table.definitionTable tbody tr td { margin: 0px; border: 0px; vertical-align: middle; + min-width: 100px; } table.hierarchyTable { diff --git a/docs/pages/suite/suite-data-mine-hierarchy.md b/docs/pages/suite/suite-data-mine-hierarchy.md index 092f8ebd7..3f379857f 100644 --- a/docs/pages/suite/suite-data-mine-hierarchy.md +++ b/docs/pages/suite/suite-data-mine-hierarchy.md @@ -1308,7 +1308,11 @@ To add a record definition node, select *Add Record Definition* on the product d record: "A record is the compendium of information stored for each period of time, including the start and end datetime of the period along with the properties that provide the information the indicator is meant to generate." -Records may have as many properties as required. The order in which record properties are defined around the parent record definition node is the order in which they are stored in the actual record. +Records may have as many properties as required. + +{% include important.html content="The order in which record properties are defined around the parent record definition node is the order in which they are stored in the actual record." %} + +{% include tip.html content="The first two records are usually the *begin* and *end* records, featuring the corresponding datetimes that indicate when the record starts and ends." %} ### Adding a Record Property @@ -1320,21 +1324,21 @@ Select *Configure Property* on the menu to access the configuration. ```js { - "codeName": "begin", + "codeName": "record-name", "isString": false, "isCalculated": true } ``` -* ```codeName``` is the name of the record as it is used in the bot's code. Most record definitions will have a *begin* date and an *end* date. +* ```codeName``` is the name of the record as it is used in the bot's code. * ```isString``` determines if the field is a text string or if, in turn, is a numeric field. Dates are stored in the *epoch* format, which is numeric. The reason why this configuration is important is because fields which are strings need to be stored between "double quotes". -* ```isCalculated``` determines if the field is stored in the dataset or if, instead, is calculated at a later stage, as explained in the *input to output cycle* earlier. A value *true* means that the record is not stored. In the case ```isCaculated``` is not defined in the configuration, it is assumed to be false. +* ```isCalculated``` determines if the field is stored in the dataset or if, instead, is calculated at a later stage. A value *true* means that the record is not stored. In the case ```isCaculated``` is not defined in the configuration, it is assumed to be false. [![Indicators-Record-Definitions-01](https://user-images.githubusercontent.com/13994516/69139160-3ce72000-0ac0-11ea-9566-a259c9ea6194.gif)](https://user-images.githubusercontent.com/13994516/69139160-3ce72000-0ac0-11ea-9566-a259c9ea6194.gif) -The image above shows the four different record properties defined for Paula's Bollinger Standard Channels product. +The image above shows a record definition with four record properties. @@ -1348,6 +1352,19 @@ The image above shows the four different record properties defined for Paula's B formula: "In the context of a record definition, formulas are used to assign a value to the property, usually in the form of a variable declared in the calculation or data building procedure." +A formula may act in slightly different ways depending on the ```isCaculated``` attribute in the record property configuration: + +* When a property is calculated (```"isCalculated": true```), the formula assigns to the property a value that is calculated in the calculations procedure. Even if the property is not stored in the dataset, it is made available as a *calculated property* to other bots that may have the dataset as input. + +* When a property is not calculated (```"isCalculated": false``` or the attribute is not defined in the configuration) the formula is applied in the data building procedure. + +### Adding a Formula + +To add a formula, select *Add Formula* on the record property menu. + + + + @@ -1358,7 +1375,21 @@ formula: "In the context of a record definition, formulas are used to assign a v **{{site.data.data_mine.calculations_procedure}}** -calculations_procedure: "The calculations procedure processes information to be fed to calculated properties. Calculated properties are not stored in the data set; instead, they are calculated in real-time as the data is consume by others." +calculations_procedure: "The calculations procedure processes information to be fed to calculated properties. Calculated properties are not stored in the data set; instead, they are calculated in real-time as the data is consumed by others." + +Bots store data in the minimized array format as a strategy to build the lightest possible datasets. For the same reason, a bot may chose not to store information that is easily calculable. + +For example, imagine an indicator that stores buy and sell volumes... does it *need* to store the total volume? Given that it is so easy to calculate, the answer is *probably* no. IT is up to the developer to decide, but it is certainly not required. + +{include note.html content="It may not be worthy to store information that can be easily calculated at a later stage." %} + +The calculations procedure calculates the properties that the developer chose not to store in the dataset. + +### Adding a Calculations Procedure + +To add a calculations procedure, select *Add Missing Items* on the product definition node menu. Items that may be missing are created along with the basic structure of nodes required to define them. + + @@ -1370,7 +1401,7 @@ calculations_procedure: "The calculations procedure processes information to be **{{site.data.data_mine.procedure_loop}}** -procedure_loop: "The procedure loop holds the JavaScript code that cycles through an input processing information to generate an output." +procedure_loop: "The procedure loop holds the JavaScript code that cycles through reading an input processing information to generate an output." diff --git a/docs/robots.txt b/docs/robots.txt new file mode 100644 index 000000000..77470cb39 --- /dev/null +++ b/docs/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / \ No newline at end of file