Merge pull request #541 from Luis-Fernando-Molina/develop
Contribution: Learning Engine minimun structure
This commit is contained in:
3 files changed
+206
-28
No files matched your search
@@ -1 +1 @@
|
||||
{"type":"Learning Engine","name":"Low-Frequency","project":"Superalgos","id":"1b545b9a-9adf-4037-b72a-6f52e4cf6267","savedPayload":{"position":{"x":11138,"y":10795.442378864669},"targetPosition":{"x":11138,"y":10795.442378864669},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}}
|
||||
{"type":"Learning Engine","name":"Low-Frequency","project":"Superalgos","learningCurrent":{"type":"Learning Current","name":"New Learning Current","project":"Superalgos","learningEpisode":{"type":"Learning Episode","name":"New Learning Episode","project":"Superalgos","serialNumber":{"type":"Serial Number","name":"New Serial Number","config":"{\n\"initialValue\": 0\n}","project":"Superalgos","id":"2cc4ea2e-0c49-4dc4-be14-5c37dba3d4a3","savedPayload":{"position":{"x":11579.353376181454,"y":11483.233023771927},"targetPosition":{"x":11138,"y":11395.442378864669},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":4,"arrangementStyle":0},"uiObject":{}}},"identifier":{"type":"Identifier","name":"New Identifier","config":"{\n\"initialValue\": \"\"\n}","project":"Superalgos","id":"5e87e4cf-d3cf-4ca3-90d0-bcc215ff32df","savedPayload":{"position":{"x":11553.745789630078,"y":11567.649923428959},"targetPosition":{"x":11138,"y":11395.442378864669},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":4,"arrangementStyle":0},"uiObject":{}}},"begin":{"type":"Begin","name":"New Begin","config":"{\n\"initialValue\": 0\n}","project":"Superalgos","id":"7073b390-c791-428b-b75d-11d7bef076ee","savedPayload":{"position":{"x":11512.161325536144,"y":11645.44898372349},"targetPosition":{"x":11138,"y":11395.442378864669},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":4,"arrangementStyle":0},"uiObject":{}}},"end":{"type":"End","name":"New End","config":"{\n\"initialValue\": 0\n}","project":"Superalgos","id":"f5dc8eea-94d7-41d7-9c44-3b044fa5cbb7","savedPayload":{"position":{"x":11456.198051533946,"y":11713.640430398615},"targetPosition":{"x":11138,"y":11395.442378864669},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":4,"arrangementStyle":0},"uiObject":{}}},"beginRate":{"type":"Begin Rate","name":"New Begin Rate","config":"{\n\"initialValue\": 0\n}","project":"Superalgos","id":"f36a352e-9711-490f-9020-84bf3731f93c","savedPayload":{"position":{"x":11388.006604858821,"y":11769.603704400815},"targetPosition":{"x":11138,"y":11395.442378864669},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":4,"arrangementStyle":0},"uiObject":{}}},"endRate":{"type":"End Rate","name":"New End Rate","config":"{\n\"initialValue\": 0\n}","project":"Superalgos","id":"0cd1e3ea-f314-4777-9988-bbde66dd2688","savedPayload":{"position":{"x":11310.207544564291,"y":11811.188168494748},"targetPosition":{"x":11138,"y":11395.442378864669},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":4,"arrangementStyle":0},"uiObject":{}}},"status":{"type":"Status","name":"New Status","config":"{\n\"initialValue\": \"Not Open\"\n}","project":"Superalgos","id":"1961b061-f041-494f-8c47-004c672c23f3","savedPayload":{"position":{"x":11225.790644907258,"y":11836.795755046123},"targetPosition":{"x":11138,"y":11395.442378864669},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":4,"arrangementStyle":0},"uiObject":{}}},"exitType":{"type":"Exit Type","name":"New Exit Type","config":"{\n\"initialValue\": \"No Exit\"\n}","project":"Superalgos","id":"9ffc4653-3d13-4036-b8aa-98e34ea6e497","savedPayload":{"position":{"x":11138,"y":11845.442378864669},"targetPosition":{"x":11138,"y":11395.442378864669},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":4,"arrangementStyle":0},"uiObject":{}}},"headOfTheMarket":{"type":"Head Of The Market","name":"New Head Of The Market","config":"{\n\"initialValue\": false\n}","project":"Superalgos","id":"dc3294b4-3754-4154-808a-6531410f6378","savedPayload":{"position":{"x":11050.209355092742,"y":11836.795755046123},"targetPosition":{"x":11138,"y":11395.442378864669},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":4,"arrangementStyle":0},"uiObject":{}}},"processDate":{"type":"Process Date","name":"New Process Date","config":"{\n\"initialValue\": 0\n}","project":"Superalgos","id":"a009dbfb-9fce-4787-9461-dc63cb0cdf03","savedPayload":{"position":{"x":10965.79245543571,"y":11811.188168494748},"targetPosition":{"x":11138,"y":11395.442378864669},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":4,"arrangementStyle":0},"uiObject":{}}},"learningEpisodeCounters":{"type":"Learning Episode Counters","name":"New Learning Episode Counters","project":"Superalgos","periods":{"type":"Periods","name":"New Periods","config":"{\n\"initialValue\": 0\n}","project":"Superalgos","id":"74d652d9-7439-4a8f-a66e-588f1cb24686","savedPayload":{"position":{"x":10975.784040048437,"y":12210.957080582268},"targetPositLine truncated
|
||||
@@ -112,6 +112,12 @@
|
||||
"relatedUiObject": "Design Space",
|
||||
"actionFunction": "payload.executeAction"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"label": "Add Docs Space",
|
||||
"relatedUiObject": "Docs Space",
|
||||
"actionFunction": "payload.executeAction"
|
||||
},
|
||||
{
|
||||
"action": "Delete UI Object",
|
||||
"askConfirmation": true,
|
||||
@@ -3210,33 +3216,21 @@
|
||||
"autoAdd": true
|
||||
},
|
||||
{
|
||||
"name": "episodeBaseAsset",
|
||||
"name": "learningEpisodeCounters",
|
||||
"type": "node",
|
||||
"childType": "Episode Base Asset",
|
||||
"childType": "Learning Episode Counters",
|
||||
"autoAdd": true
|
||||
},
|
||||
{
|
||||
"name": "episodeQuotedAsset",
|
||||
"name": "learningEpisodeStatistics",
|
||||
"type": "node",
|
||||
"childType": "Episode Quoted Asset",
|
||||
"childType": "Learning Episode Statistics",
|
||||
"autoAdd": true
|
||||
},
|
||||
{
|
||||
"name": "tradingEpisodeCounters",
|
||||
"name": "distanceToLearningEvent",
|
||||
"type": "node",
|
||||
"childType": "Trading Episode Counters",
|
||||
"autoAdd": true
|
||||
},
|
||||
{
|
||||
"name": "tradingEpisodeStatistics",
|
||||
"type": "node",
|
||||
"childType": "Trading Episode Statistics",
|
||||
"autoAdd": true
|
||||
},
|
||||
{
|
||||
"name": "distanceToTradingEvent",
|
||||
"type": "node",
|
||||
"childType": "Distance To Trading Event",
|
||||
"childType": "Distance To Learning Event",
|
||||
"autoAdd": true
|
||||
},
|
||||
{
|
||||
@@ -3460,6 +3454,65 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "Learning Episode Counters",
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Add Missing Children",
|
||||
"label": "Add Missing Children",
|
||||
"relatedUiObject": "Learning Parameters",
|
||||
"actionFunction": "payload.executeAction"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"label": "Add User Defined Counter",
|
||||
"relatedUiObject": "User Defined Counter",
|
||||
"actionFunction": "payload.executeAction"
|
||||
},
|
||||
{
|
||||
"action": "Delete UI Object",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Delete",
|
||||
"label": "Delete",
|
||||
"iconPathOn": "delete-entity",
|
||||
"iconPathOff": "delete-entity",
|
||||
"actionFunction": "payload.executeAction"
|
||||
}
|
||||
],
|
||||
"addLeftIcons": true,
|
||||
"level": 3,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Learning Episode->"
|
||||
},
|
||||
"propertyNameAtParent": "learningEpisodeCounters",
|
||||
"childrenNodesProperties": [
|
||||
{
|
||||
"name": "periods",
|
||||
"type": "node",
|
||||
"childType": "Periods",
|
||||
"autoAdd": true
|
||||
},
|
||||
{
|
||||
"name": "hits",
|
||||
"type": "node",
|
||||
"childType": "Hits",
|
||||
"autoAdd": true
|
||||
},
|
||||
{
|
||||
"name": "fails",
|
||||
"type": "node",
|
||||
"childType": "Fails",
|
||||
"autoAdd": true
|
||||
},
|
||||
{
|
||||
"name": "userDefinedCounters",
|
||||
"type": "array",
|
||||
"childType": "User Defined Counter",
|
||||
"autoAdd": false
|
||||
}
|
||||
],
|
||||
"icon": "bitcoin"
|
||||
},
|
||||
{
|
||||
"type": "Position Counters",
|
||||
"menuItems": [
|
||||
@@ -3816,7 +3869,7 @@
|
||||
"addLeftIcons": true,
|
||||
"level": 3,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Trading Episode Counters->Episode Base Asset->Episode Quoted Asset->"
|
||||
"compatibleTypes": "->Trading Episode Counters->Learning Episode Counters->Episode Base Asset->Episode Quoted Asset->"
|
||||
},
|
||||
"propertyNameAtParent": "fails"
|
||||
},
|
||||
@@ -3870,7 +3923,7 @@
|
||||
"addLeftIcons": true,
|
||||
"level": 3,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Trading Episode Counters->Episode Base Asset->Episode Quoted Asset->"
|
||||
"compatibleTypes": "->Trading Episode Counters->Learning Episode Counters->Episode Base Asset->Episode Quoted Asset->"
|
||||
},
|
||||
"propertyNameAtParent": "hits"
|
||||
},
|
||||
@@ -3924,7 +3977,7 @@
|
||||
"addLeftIcons": true,
|
||||
"level": 3,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Trading Episode Counters->Position Counters->Strategy Counters->Order Counters->"
|
||||
"compatibleTypes": "->Trading Episode Counters->Learning Episode Counters->Position Counters->Strategy Counters->Order Counters->"
|
||||
},
|
||||
"propertyNameAtParent": "periods"
|
||||
},
|
||||
@@ -3978,10 +4031,51 @@
|
||||
"addLeftIcons": true,
|
||||
"level": 3,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Trading Episode Counters->Position Counters->Strategy Counters->"
|
||||
"compatibleTypes": "->Trading Episode Counters->Learning Episode Counters->Position Counters->Strategy Counters->"
|
||||
},
|
||||
"propertyNameAtParent": "userDefinedCounters"
|
||||
},
|
||||
{
|
||||
"type": "Learning Episode Statistics",
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Add Missing Children",
|
||||
"label": "Add Missing Children",
|
||||
"relatedUiObject": "Learning Parameters",
|
||||
"actionFunction": "payload.executeAction"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"label": "Add User Defined Statistic",
|
||||
"relatedUiObject": "User Defined Statistic",
|
||||
"actionFunction": "payload.executeAction"
|
||||
},
|
||||
{
|
||||
"action": "Delete UI Object",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Delete",
|
||||
"label": "Delete",
|
||||
"iconPathOn": "delete-entity",
|
||||
"iconPathOff": "delete-entity",
|
||||
"actionFunction": "payload.executeAction"
|
||||
}
|
||||
],
|
||||
"addLeftIcons": true,
|
||||
"level": 3,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Learning Episode->"
|
||||
},
|
||||
"propertyNameAtParent": "learningEpisodeStatistics",
|
||||
"childrenNodesProperties": [
|
||||
{
|
||||
"name": "userDefinedStatistics",
|
||||
"type": "array",
|
||||
"childType": "User Defined Statistic",
|
||||
"autoAdd": true
|
||||
}
|
||||
],
|
||||
"icon": "bitcoin"
|
||||
},
|
||||
{
|
||||
"type": "Trading Episode Statistics",
|
||||
"menuItems": [
|
||||
@@ -4052,6 +4146,34 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "Distance To Learning Event",
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Add Missing Children",
|
||||
"label": "Add Missing Children",
|
||||
"relatedUiObject": "Learning Parameters",
|
||||
"actionFunction": "payload.executeAction"
|
||||
},
|
||||
{
|
||||
"action": "Delete UI Object",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Delete",
|
||||
"label": "Delete",
|
||||
"iconPathOn": "delete-entity",
|
||||
"iconPathOff": "delete-entity",
|
||||
"actionFunction": "payload.executeAction"
|
||||
}
|
||||
],
|
||||
"addLeftIcons": true,
|
||||
"level": 3,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Learning Episode->"
|
||||
},
|
||||
"propertyNameAtParent": "distanceToLearningEvent",
|
||||
"childrenNodesProperties": [],
|
||||
"icon": "bitcoin"
|
||||
},
|
||||
{
|
||||
"type": "Stop Loss",
|
||||
"menuItems": [
|
||||
@@ -5300,7 +5422,7 @@
|
||||
"addLeftIcons": true,
|
||||
"level": 3,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Trading Episode Statistics->Position Statistics->"
|
||||
"compatibleTypes": "->Trading Episode Statistics->Learning Episode Statistics->Position Statistics->"
|
||||
},
|
||||
"propertyNameAtParent": "userDefinedStatistics",
|
||||
"childrenNodesProperties": [
|
||||
@@ -15089,6 +15211,54 @@
|
||||
"propertyNameAtParent": "keys",
|
||||
"isPersonalData": true
|
||||
},
|
||||
{
|
||||
"type": "Docs Space",
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"disableIfPropertyIsDefined": true,
|
||||
"propertyToCheckFor": "spaceStyle",
|
||||
"label": "Add Space Style",
|
||||
"relatedUiObject": "Space Style",
|
||||
"actionFunction": "payload.executeAction"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"disableIfPropertyIsDefined": true,
|
||||
"propertyToCheckFor": "spaceSettings",
|
||||
"label": "Add Space Settings",
|
||||
"relatedUiObject": "Space Settings",
|
||||
"actionFunction": "payload.executeAction"
|
||||
},
|
||||
{
|
||||
"action": "Delete UI Object",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Delete",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Delete",
|
||||
"iconPathOn": "delete-entity",
|
||||
"iconPathOff": "delete-entity"
|
||||
}
|
||||
],
|
||||
"isHierarchyHead": true,
|
||||
"addLeftIcons": true,
|
||||
"level": 0,
|
||||
"childrenNodesProperties": [
|
||||
{
|
||||
"name": "spaceStyle",
|
||||
"type": "node",
|
||||
"childType": "Space Style",
|
||||
"autoAdd": true
|
||||
},
|
||||
{
|
||||
"name": "spaceSettings",
|
||||
"type": "node",
|
||||
"childType": "Space Settings",
|
||||
"autoAdd": true
|
||||
}
|
||||
],
|
||||
"icon": "bitcoin"
|
||||
},
|
||||
{
|
||||
"type": "Design Space",
|
||||
"menuItems": [
|
||||
@@ -15141,7 +15311,7 @@
|
||||
"level": 4,
|
||||
"propertyNameAtParent": "spaceStyle",
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Charting Space->Design Space->"
|
||||
"compatibleTypes": "->Charting Space->Design Space->Docs Space->"
|
||||
},
|
||||
"editors": {
|
||||
"config": true
|
||||
@@ -15174,7 +15344,7 @@
|
||||
"level": 4,
|
||||
"propertyNameAtParent": "spaceSettings",
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->Charting Space->Design Space->"
|
||||
"compatibleTypes": "->Charting Space->Design Space->Docs Space->"
|
||||
},
|
||||
"editors": {
|
||||
"config": true
|
||||
|
||||
@@ -17,9 +17,17 @@ function newSuperalgosDocsSearchEngine() {
|
||||
}
|
||||
|
||||
function setUpSearchEngine(callbackFunction) {
|
||||
//callbackFunction()
|
||||
//return
|
||||
|
||||
let docsSpaceNode = UI.projects.superalgos.spaces.designSpace.workspace.getHierarchyHeadsByType('Docs Space')
|
||||
if (docsSpaceNode === undefined) { return }
|
||||
if (docsSpaceNode.spaceSettings === undefined) { return }
|
||||
let indexContent = UI.projects.superalgos.utilities.nodeConfig.loadPropertyFromNodeConfig(docsSpaceNode.spaceSettings.payload, 'indexContent')
|
||||
|
||||
if (indexContent === false) {
|
||||
callbackFunction()
|
||||
return
|
||||
}
|
||||
|
||||
let totalAsyncCallsMade = 0
|
||||
let totalAsyncCallsFinished = 0
|
||||
|
||||
|
||||
Reference in new issue
Block a user