Merge branch 'develop' of https://github.com/Superalgos/Superalgos into develop

This commit is contained in:
maxah committed 2021-12-02 17:11:51 +03:00
commit 770383635f
64 files changed
+115008 -42707

No files matched your search

@@ -584,9 +584,10 @@
}
function startLiveTrading() {
// Testing:
TS.projects.foundations.globals.processVariables.PM_COMMUNICATION_MODULE.beginListening();
TS.projects.foundations.globals.processVariables.PM_COMMUNICATION_MODULE.getQuoteAssetBalance();
/* Testing to be removed @PLUV: */
/*TS.projects.foundations.globals.processVariables.PM_COMMUNICATION_MODULE.beginListening();
TS.projects.foundations.globals.processVariables.PM_COMMUNICATION_MODULE.getQuoteAssetBalance();*/
/* End Testing */
return checkKey()
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

@@ -11,12 +11,12 @@
},
{
"action": "Add UI Object",
"label": "Add Cancel Order Portfolio Event",
"label": "Add Ask Portfolio Events Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "cancelOrderPMEvent",
"relatedUiObject": "Cancel Order PM Event",
"propertyToCheckFor": "askPortfolioEventsManager",
"relatedUiObject": "Ask Portfolio Events Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -51,9 +51,9 @@
"autoAdd": true
},
{
"name": "cancelOrderPMEvent",
"name": "askPortfolioEventsManager",
"type": "node",
"childType": "Cancel Order PM Event"
"childType": "Ask Portfolio Events Manager"
},
{
"name": "announcements",
@@ -1,29 +0,0 @@
{
"type": "Cancel Order PM Event",
"menuItems": [
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 4,
"attachingRules": {
"compatibleTypes": "->Cancel Order Event->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "cancelOrderPMEvent"
}
@@ -11,12 +11,12 @@
},
{
"action": "Add UI Object",
"label": "Add Close Stage Portfolio Event",
"label": "Add Ask Portfolio Events Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "closeStagePMEvent",
"relatedUiObject": "Close Stage PM Event",
"propertyToCheckFor": "askPortfolioEventsManager",
"relatedUiObject": "Ask Portfolio Events Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -51,9 +51,9 @@
"autoAdd": true
},
{
"name": "closeStagePMEvent",
"name": "askPortfolioEventsManager",
"type": "node",
"childType": "Close Stage PM Event"
"childType": "Ask Portfolio Events Manager"
},
{
"name": "announcements",
@@ -11,12 +11,12 @@
},
{
"action": "Add UI Object",
"label": "Add Create Order Portfolio Event",
"label": "Add Ask Portfolio Events Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "createOrderPMEvent",
"relatedUiObject": "Create Order PM Event",
"propertyToCheckFor": "askPortfolioEventsManager",
"relatedUiObject": "Ask Portfolio Events Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -51,9 +51,9 @@
"autoAdd": true
},
{
"name": "createOrderPMEvent",
"name": "askPortfolioEventsManager",
"type": "node",
"childType": "Create Order PM Event"
"childType": "Ask Portfolio Events Manager"
},
{
"name": "announcements",
@@ -29,7 +29,7 @@
},
"level": 4,
"attachingRules": {
"compatibleTypes": "->Target Size In Base Asset->Target Size In Quoted Asset->Target Rate->Phase->Simulated Actual Rate->Situation->Indicator Function->Order Rate->Social Bot Command->"
"compatibleTypes": "->Target Size In Base Asset->Target Size In Quoted Asset->Target Rate->Phase->Simulated Actual Rate->Situation->Indicator Function->Order Rate->Social Bot Command->Ask Portfolio Formula Manager->"
},
"propertyNameAtParent": "formula"
}
@@ -3,7 +3,7 @@
"menuItems": [
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
@@ -18,7 +18,7 @@
"addLeftIcons": true,
"level": 4,
"attachingRules": {
"compatibleTypes": "->Task->Portfolio Task->"
"compatibleTypes": "->Task->"
},
"referencingRules": {
"compatibleTypes": "->Exchange Account Key->"
@@ -1,29 +0,0 @@
{
"type": "Managed Stop Loss PM Formula",
"menuItems": [
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 4,
"attachingRules": {
"compatibleTypes": "->Managed Stop Loss->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "managedStopLossPMFormula"
}
@@ -11,12 +11,12 @@
},
{
"action": "Add UI Object",
"label": "Add Manged SL Portfolio Formula",
"label": "Add Ask Portfolio Formula Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "managedStopLossPMFormula",
"relatedUiObject": "Managed Stop Loss PM Formula",
"propertyToCheckFor": "askPortfolioFormulaManager",
"relatedUiObject": "Ask Portfolio Formula Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -43,9 +43,9 @@
"autoAdd": true
},
{
"name": "managedStopLossPMFormula",
"name": "askPortfolioFormulaManager",
"type": "node",
"childType": "Managed Stop Loss PM Formula"
"childType": "Ask Portfolio Formula Manager"
}
],
"propertyNameAtParent": "managedStopLoss"
@@ -1,29 +0,0 @@
{
"type": "Managed Take Profit PM Formula",
"menuItems": [
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 4,
"attachingRules": {
"compatibleTypes": "->Managed Take Profit->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "managedTakeProfitPMFormula"
}
@@ -11,12 +11,12 @@
},
{
"action": "Add UI Object",
"label": "Add Manged TP Portfolio Formula",
"label": "Add Ask Portfolio Formula Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "managedTakeProfitPMFormula",
"relatedUiObject": "Managed Take Profit PM Formula",
"propertyToCheckFor": "askPortfolioFormulaManager",
"relatedUiObject": "Ask Portfolio Formula Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -43,9 +43,9 @@
"autoAdd": true
},
{
"name": "managedTakeProfitPMFormula",
"name": "askPortfolioFormulaManager",
"type": "node",
"childType": "Managed Take Profit PM Formula"
"childType": "Ask Portfolio Formula Manager"
}
],
"propertyNameAtParent": "managedTakeProfit"
@@ -41,9 +41,9 @@
}
],
"addLeftIcons": true,
"level": 2,
"level": 3,
"attachingRules": {
"compatibleTypes": "->Portfolio Task->"
"compatibleTypes": "->Task->"
},
"childrenNodesProperties": [
{
@@ -11,12 +11,12 @@
},
{
"action": "Add UI Object",
"label": "Add Move Phase Portfolio Event",
"label": "Add Ask Portfolio Events Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "moveToPhasePMEvent",
"relatedUiObject": "Move To Phase PM Event",
"propertyToCheckFor": "askPortfolioEventsManager",
"relatedUiObject": "Ask Portfolio Events Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -54,9 +54,9 @@
"autoAdd": true
},
{
"name": "moveToPhasePMEvent",
"name": "askPortfolioEventsManager",
"type": "node",
"childType": "Move To Phase PM Event"
"childType": "Ask Portfolio Events Manager"
},
{
"name": "announcements",
@@ -1,29 +0,0 @@
{
"type": "Move To Phase PM Event",
"menuItems": [
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 4,
"attachingRules": {
"compatibleTypes": "->Move To Phase Event->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "moveToPhasePMEvent"
}
@@ -11,12 +11,12 @@
},
{
"action": "Add UI Object",
"label": "Add Next Phase Portfolio Event",
"label": "Add Ask Portfolio Events Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "nextPhasePMEvent",
"relatedUiObject": "Next Phase PM Event",
"propertyToCheckFor": "askPortfolioEventsManager",
"relatedUiObject": "Ask Portfolio Events Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -51,9 +51,9 @@
"autoAdd": true
},
{
"name": "nextPhasePMEvent",
"name": "askPortfolioEventsManager",
"type": "node",
"childType": "Next Phase PM Event"
"childType": "Ask Portfolio Events Manager"
},
{
"name": "announcements",
@@ -1,29 +0,0 @@
{
"type": "Next Phase PM Event",
"menuItems": [
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 4,
"attachingRules": {
"compatibleTypes": "->Next Phase Event->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "nextPhasePMEvent"
}
@@ -1,29 +0,0 @@
{
"type": "Order Rate PM Formula",
"menuItems": [
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 4,
"attachingRules": {
"compatibleTypes": "->Order Rate->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "orderRatePMFormula"
}
@@ -13,12 +13,12 @@
},
{
"action": "Add UI Object",
"label": "Add Order Rate Portfolio Formula",
"label": "Add Ask Portfolio Formula Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "orderRatePMFormula",
"relatedUiObject": "Order Rate PM Formula",
"propertyToCheckFor": "askPortfolioFormulaManager",
"relatedUiObject": "Ask Portfolio Formula Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -45,9 +45,9 @@
"autoAdd": true
},
{
"name": "orderRatePMFormula",
"name": "askPortfolioFormulaManager",
"type": "node",
"childType": "Order Rate PM Formula"
"childType": "Ask Portfolio Formula Manager"
}
],
"propertyNameAtParent": "orderRate"
@@ -21,9 +21,9 @@
}
],
"addLeftIcons": true,
"level": 3,
"level": 2,
"attachingRules": {
"compatibleTypes": "->Portfolio Task->"
"compatibleTypes": "->Task->"
},
"childrenNodesProperties": [
{
@@ -24,7 +24,7 @@
{
"action": "Add UI Object",
"label": "Add Task Manager",
"relatedUiObject": "Portfolio Task Manager",
"relatedUiObject": "Task Manager",
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting",
"relatedUiObjectProject": "Foundations"
@@ -35,7 +35,7 @@
"askConfirmation": true,
"confirmationLabel": "Confirm to Proceed",
"workDoneLabel": "Done",
"relatedUiObject": "Portfolio Task",
"relatedUiObject": "Task",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations"
},
@@ -66,9 +66,9 @@
"propertyNameAtParent": "portfolioMineTasks",
"childrenNodesProperties": [
{
"name": "portfolioTaskManagers",
"name": "taskManagers",
"type": "array",
"childType": "Portfolio Task Manager",
"childType": "Task Manager",
"monitorChildrenRunning": true
}
]
@@ -70,6 +70,5 @@
"childType": "Exchange Portfolio Tasks",
"monitorChildrenRunning": true
}
],
"icon": "bitcoin"
]
}
@@ -11,12 +11,12 @@
},
{
"action": "Add UI Object",
"label": "Add Take Position Portfolio Event",
"label": "Add Ask Portfolio Events Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "takePositionPMEvent",
"relatedUiObject": "Take Position PM Event",
"propertyToCheckFor": "askPortfolioEventsManager",
"relatedUiObject": "Ask Portfolio Events Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -46,7 +46,7 @@
"label": "Add Incoming Signals",
"relatedUiObject": "Incoming Signals",
"relatedUiObjectProject": "Trading-Signals"
},
},
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
@@ -71,9 +71,9 @@
"autoAdd": true
},
{
"name": "takePositionPMEvent",
"name": "askPortfolioEventsManager",
"type": "node",
"childType": "Take Position PM Event"
"childType": "Ask Portfolio Events Manager"
},
{
"name": "announcements",
@@ -1,29 +0,0 @@
{
"type": "Take Position PM Event",
"menuItems": [
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 2,
"attachingRules": {
"compatibleTypes": "->Take Position Event->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "takePositionPMEvent"
}
@@ -1,29 +0,0 @@
{
"type": "Target Rate PM Formula",
"menuItems": [
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 4,
"attachingRules": {
"compatibleTypes": "->Target Rate->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "targetRatePMFormula"
}
@@ -13,12 +13,12 @@
},
{
"action": "Add UI Object",
"label": "Add Target Rate Portfolio Formula",
"label": "Add Ask Portfolio Formula Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "targetRatePMFormula",
"relatedUiObject": "Target Rate PM Formula",
"propertyToCheckFor": "askPortfolioFormulaManager",
"relatedUiObject": "Ask Portfolio Formula Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -45,9 +45,9 @@
"autoAdd": true
},
{
"name": "targetRatePMFormula",
"name": "askPortfolioFormulaManager",
"type": "node",
"childType": "Target Rate PM Formula"
"childType": "Ask Portfolio Formula Manager"
}
],
"propertyNameAtParent": "targetRate"
@@ -1,29 +0,0 @@
{
"type": "Target Size In Base Asset PM Formula",
"menuItems": [
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 4,
"attachingRules": {
"compatibleTypes": "->Target Size In Base Asset->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "targetSizeInBaseAssetPMFormula"
}
@@ -13,12 +13,12 @@
},
{
"action": "Add UI Object",
"label": "Add Target Base Size Portfolio Formula",
"label": "Add Ask Portfolio Formula Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "targetSizeInBaseAssetPMFormula",
"relatedUiObject": "Target Size In Base Asset PM Formula",
"propertyToCheckFor": "askPortfolioFormulaManager",
"relatedUiObject": "Ask Portfolio Formula Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -45,9 +45,9 @@
"autoAdd": true
},
{
"name": "targetSizeInBaseAssetPMFormula",
"name": "askPortfolioFormulaManager",
"type": "node",
"childType": "Target Size In Base Asset PM Formula"
"childType": "Ask Portfolio Formula Manager"
}
],
"propertyNameAtParent": "targetSizeInBaseAsset"
@@ -1,29 +0,0 @@
{
"type": "Target Size In Quoted Asset PM Formula",
"menuItems": [
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 4,
"attachingRules": {
"compatibleTypes": "->Target Size In Quoted Asset->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "targetSizeInQuotedAssetPMFormula"
}
@@ -13,12 +13,12 @@
},
{
"action": "Add UI Object",
"label": "Add Target Quoted Size Portfolio Formula",
"label": "Add Ask Portfolio Formula Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "targetSizeInQuotedAssetPMFormula",
"relatedUiObject": "Target Size In Quoted Asset PM Formula",
"propertyToCheckFor": "askPortfolioFormulaManager",
"relatedUiObject": "Ask Portfolio Formula Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -45,9 +45,9 @@
"autoAdd": true
},
{
"name": "targetSizeInQuotedAssetPMFormula",
"name": "askPortfolioFormulaManager",
"type": "node",
"childType": "Target Size In Quoted Asset PM Formula"
"childType": "Ask Portfolio Formula Manager"
}
],
"propertyNameAtParent": "targetSizeInQuotedAsset"
@@ -67,6 +67,16 @@
"actionProject": "Visual-Scripting",
"relatedUiObjectProject": "Foundations"
},
{
"action": "Add UI Object",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "bot",
"label": "Add Portfolio Bot Instance",
"relatedUiObject": "Portfolio Bot Instance",
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting",
"relatedUiObjectProject": "Foundations"
},
{
"action": "Add UI Object",
"disableIfPropertyIsDefined": true,
@@ -87,6 +97,16 @@
"actionProject": "Visual-Scripting",
"relatedUiObjectProject": "Foundations"
},
{
"action": "Add UI Object",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "managedTasks",
"label": "Add Managed Tasks",
"relatedUiObject": "Managed Tasks",
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting",
"relatedUiObjectProject": "Foundations"
},
{
"action": "Add UI Object",
"disableIfPropertyIsDefined": true,
@@ -120,6 +140,11 @@
"type": "node",
"childType": "Trading Bot Instance"
},
{
"name": "bot",
"type": "node",
"childType": "Portfolio Bot Instance"
},
{
"name": "bot",
"type": "node",
@@ -145,6 +170,11 @@
"type": "node",
"childType": "Key Reference"
},
{
"name": "managedTasks",
"type": "node",
"childType": "Managed Tasks"
},
{
"name": "taskServerAppReference",
"type": "node",
@@ -11,12 +11,12 @@
},
{
"action": "Add UI Object",
"label": "Add Trigger Off Portfolio Event",
"label": "Add Ask Portfolio Events Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "triggerOffPMEvent",
"relatedUiObject": "Trigger Off PM Event",
"propertyToCheckFor": "askPortfolioEventsManager",
"relatedUiObject": "Ask Portfolio Events Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -46,7 +46,7 @@
"label": "Add Incoming Signals",
"relatedUiObject": "Incoming Signals",
"relatedUiObjectProject": "Trading-Signals"
},
},
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
@@ -71,9 +71,9 @@
"autoAdd": true
},
{
"name": "triggerOffPMEvent",
"name": "askPortfolioEventsManager",
"type": "node",
"childType": "Trigger Off PM Event"
"childType": "Ask Portfolio Events Manager"
},
{
"name": "announcements",
@@ -11,12 +11,12 @@
},
{
"action": "Add UI Object",
"label": "Add Trigger On Portfolio Event",
"label": "Add Ask Portfolio Events Manager",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "triggerOnPMEvent",
"relatedUiObject": "Trigger On PM Event",
"propertyToCheckFor": "askPortfolioEventsManager",
"relatedUiObject": "Ask Portfolio Events Manager",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Foundations",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
@@ -46,7 +46,7 @@
"label": "Add Incoming Signals",
"relatedUiObject": "Incoming Signals",
"relatedUiObjectProject": "Trading-Signals"
},
},
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
@@ -71,9 +71,9 @@
"autoAdd": true
},
{
"name": "triggerOnPMEvent",
"name": "askPortfolioEventsManager",
"type": "node",
"childType": "Trigger On PM Event"
"childType": "Ask Portfolio Events Manager"
},
{
"name": "announcements",
@@ -53,18 +53,6 @@ function newFoundationsActionSwitch() {
UI.projects.foundations.functionLibraries.taskFunctions.stopAllTaskManagers(action.node)
}
break
case 'Run All Portfolio Task Managers':
{
UI.projects.foundations.functionLibraries.taskFunctions.runAllTaskManagers(action.node)
}
break
case 'Stop All Portfolio Task Managers':
{
UI.projects.foundations.functionLibraries.taskFunctions.stopAllTaskManagers(action.node)
}
break
case 'Run All Managed Tasks':
{ /* Portfolio Task References */
UI.projects.foundations.functionLibraries.taskFunctions.runAllManagedTasks(action.node);
@@ -528,7 +516,7 @@ function newFoundationsActionSwitch() {
{
UI.projects.foundations.functionLibraries.workspaceFunctions.fixMissingReferences(action.rootNodes)
}
break
break
case 'Switch To Forward Testing':
{
action.node.type = "Forward Testing Session"
@@ -579,7 +567,7 @@ function newFoundationsActionSwitch() {
{
UI.projects.foundations.functionLibraries.productFunctions.installProduct(action.node, action.rootNodes)
}
break
break
default: {
console.log("[WARN] Action sent to Foundations Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name)
@@ -131,7 +131,7 @@ function newFoundationsFunctionLibraryTaskFunctions() {
}
}
let taskLightingPath = '->Portfolio Task->Task->' +
let taskLightingPath = '->Task->' +
'Task Server App Reference->Task Server App->Signing Account->' +
'Portfolio Bot Instance->' +
'Sensor Bot Instance->' +
@@ -139,12 +139,12 @@ function newFoundationsFunctionLibraryTaskFunctions() {
'Indicator Bot Instance->' +
'Trading Bot Instance->' +
'Learning Bot Instance->' +
'Social Trading Bot Reference->Signing Account->' +
'Sensor Process Instance->Time Frames Filter->API Data Fetcher Process Instance->Indicator Process Instance->Trading Process Instance->Learning Process Instance->' +
'Social Trading Bot Reference->Signing Account->' +
'Sensor Process Instance->Time Frames Filter->API Data Fetcher Process Instance->Indicator Process Instance->Trading Process Instance->Portfolio Process Instance->Learning Process Instance->' +
'Social Trading Bot Reference->Social Trading Bot->Signing Account->' +
'Execution Started Event->' +
'Key Reference->Exchange Account Key->' +
'Task Manager->Portfolio Task Manager->' +
'Task Manager->' +
'Data Mine Tasks->Trading Mine Tasks->Portfolio Mine Tasks->Learning Mine Tasks->' +
'Market Data Tasks->Market Trading Tasks->Market Portfolio Tasks->Market Learning Tasks->' +
'Exchange Data Tasks->Exchange Trading Tasks->Exchange Portfolio Tasks->Exchange Learning Tasks->' +
@@ -206,7 +206,7 @@ function newFoundationsFunctionLibraryTaskFunctions() {
'Exchange Data Tasks->Exchange Trading Tasks->Exchange Portfolio Tasks->Exchange Learning Tasks->Crypto Exchange->' +
'Market Data Tasks->Market Trading Tasks->Market Portfolio Tasks->Market Learning Tasks->Market->' +
'Data Mine Tasks->Trading Mine Tasks->Portfolio Mine Tasks->Learning Mine Tasks->' +
'Task Manager->Portfolio Task Manager->Portfolio Task->Managed Tasks->Task Reference->Task->' +
'Task Manager->Managed Tasks->Task Reference->Task->' +
'Indicator Bot Instance->Sensor Bot Instance->API Data Fetcher Bot Instance->Trading Bot Instance->Portfolio Bot Instance->Learning Bot Instance->' +
'Indicator Process Instance->Sensor Process Instance->API Data Fetcher Process Instance->Trading Process Instance->Portfolio Process Instance->Learning Process Instance->' +
'Paper Trading Session->Forward Testing Session->Backtesting Session->Live Trading Session->Live Portfolio Session->Back Learning Session->Live Learning Session->Managed Sessions->' +
@@ -216,11 +216,11 @@ function newFoundationsFunctionLibraryTaskFunctions() {
let networkDefinition = UI.projects.visualScripting.functionLibraries.protocolNode.getProtocolNode(lanNetworkNode.payload.parentNode, false, true, true, false, false, networkLightingPath)
let managedTasksLightingPath = '->Portfolio Task->Managed Tasks->Portfolio Bot Instance->' +
let managedTasksLightingPath = '->Task->Managed Tasks->Portfolio Bot Instance->' +
'Task Reference->Task->Sensor Bot Instance->API Data Fetcher Bot->Indicator Bot Instance->Trading Bot Instance->Learning Bot Instance->' +
'Sensor Process Instance->Time Frames Filter->API Data Fetcher Process Instance->Indicator Process Instance->Trading Process Instance->Learning Process Instance->' +
'Execution Started Event->Key Reference->Exchange Account Key->' +
'Task Manager->Portfolio Task Manager->' +
'Task Manager->' +
'Data Mine Tasks->Trading Mine Tasks->Learning Mine Tasks->Portfolio Mine Tasks->' +
'Market Trading Tasks->Market Data Tasks->Market Learning Tasks->Market Portfolio Tasks->' +
'Market->Exchange Markets->Crypto Exchange->Crypto Exchanges->exchange Markets->Market->' +
@@ -372,7 +372,7 @@ function newFoundationsFunctionLibraryTaskFunctions() {
}
function runAllTasks(taskManager) {
let tasks = (taskManager.type !== 'Portfolio Task Manager') ? taskManager.tasks : taskManager.portfolioTasks;
let tasks = taskManager.tasks;
for (let i = 0; i < tasks.length; i++) {
let node = tasks[i];
let menu = node.payload.uiObject.menu;
@@ -382,7 +382,7 @@ function newFoundationsFunctionLibraryTaskFunctions() {
}
function stopAllTasks(taskManager) {
let tasks = (taskManager.type !== 'Portfolio Task Manager') ? taskManager.tasks : taskManager.portfolioTasks;
let tasks = taskManager.tasks;
for (let i = 0; i < tasks.length; i++) {
let node = tasks[i];
let menu = node.payload.uiObject.menu
@@ -392,7 +392,7 @@ function newFoundationsFunctionLibraryTaskFunctions() {
}
function runAllTaskManagers(parent) {
let manager = (parent.type !== 'Portfolio Mine Tasks') ? parent.taskManagers : parent.portfolioTaskManagers;
let manager = parent.taskManagers;
for (let i = 0; i < manager.length; i++) {
let node = manager[i];
let menu = node.payload.uiObject.menu;
@@ -403,7 +403,7 @@ function newFoundationsFunctionLibraryTaskFunctions() {
}
function stopAllTaskManagers(parent) {
let manager = (parent.type !== 'Portfolio Mine Tasks') ? parent.taskManagers : parent.portfolioTaskManagers;
let manager = parent.taskManagers;
for (let i = 0; i < manager.length; i++) {
let node = manager[i];
let menu = node.payload.uiObject.menu;
@@ -888,9 +888,7 @@ function newFoundationsFunctionLibraryTaskFunctions() {
if (node.payload === undefined) { return }
if (node.payload.referenceParent === undefined) { return }
let taskManager = (node.type !== 'Portfolio Mine Tasks') ?
UI.projects.visualScripting.functionLibraries.uiObjectsFromNodes.addUIObject(node, 'Task Manager') :
UI.projects.visualScripting.functionLibraries.uiObjectsFromNodes.addUIObject(node, 'Portfolio Task Manager');
let taskManager = UI.projects.visualScripting.functionLibraries.uiObjectsFromNodes.addUIObject(node, 'Task Manager');
taskManager.name = node.payload.referenceParent.name
taskManager.payload.floatingObject.collapseToggle()
@@ -1033,9 +1031,7 @@ function newFoundationsFunctionLibraryTaskFunctions() {
}
function addTask(taskManager) {
let task = (taskManager.type !== 'Portfolio Task Manager') ?
UI.projects.visualScripting.functionLibraries.uiObjectsFromNodes.addUIObject(taskManager, 'Task') :
UI.projects.visualScripting.functionLibraries.uiObjectsFromNodes.addUIObject(taskManager, 'Portfolio Task');
let task = UI.projects.visualScripting.functionLibraries.uiObjectsFromNodes.addUIObject(taskManager, 'Task');
if (systemNode !== undefined) {
task.name = systemNode.name
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -61,7 +61,9 @@ function newGovernanceUserProfileSpace() {
for (let i = 0; i < userProfiles.length; i++) {
let userProfile = userProfiles[i]
userProfile.payload.isLoading = true
if (userProfile.payload.isLoading === undefined) {
userProfile.payload.isLoading = true
}
}
/*
let pools = UI.projects.foundations.spaces.designSpace.workspace.getHierarchyHeadsByNodeType('Pools')
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,53 @@
{
"type": "Ask Portfolio Events Manager",
"menuItems": [
{
"action": "Add UI Object",
"label": "Add Confirm Event",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "confirmEvent",
"relatedUiObject": "Confirm Event",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
"action": "Add UI Object",
"label": "Add Raise Event",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "raiseEvent",
"relatedUiObject": "Raise Event",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"level": 2,
"attachingRules": {
"compatibleTypes": "->Trigger On Event->Trigger Off Event->Take Position Event->Create Order Event->Cancel Order Event->Close Stage Event->Next Phase Event->Move To Phase Event->"
},
"childrenNodesProperties": [
{
"name": "confirmEvent",
"type": "node",
"childType": "Confirm Event"
},
{
"name": "raiseEvent",
"type": "node",
"childType": "Raise Event"
}
],
"propertyNameAtParent": "askPortfolioEventsManager"
}
@@ -0,0 +1,53 @@
{
"type": "Ask Portfolio Formula Manager",
"menuItems": [
{
"action": "Add UI Object",
"label": "Add Confirm Formula",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "confirmFormula",
"relatedUiObject": "Confirm Formula",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
"action": "Add UI Object",
"label": "Add Set Formula",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "setFormula",
"relatedUiObject": "Set Formula",
"actionFunction": "payload.executeAction",
"relatedUiObjectProject": "Portfolio-Management",
"actionProject": "Visual-Scripting"
},
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"level": 2,
"attachingRules": {
"compatibleTypes": "->Target Rate->Target Size In Base Asset->Target Size In Quoted Asset->Managed Stop Loss->Managed Take Profit->Order Rate->"
},
"childrenNodesProperties": [
{
"name": "confirmFormula",
"type": "node",
"childType": "Confirm Formula"
},
{
"name": "setFormula",
"type": "node",
"childType": "Set Formula"
}
],
"propertyNameAtParent": "askPortfolioFormulaManager"
}
@@ -1,5 +1,5 @@
{
"type": "Trigger On PM Event",
"type": "Confirm Event",
"menuItems": [
{
"action": "Delete UI Object",
@@ -13,17 +13,11 @@
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 2,
"attachingRules": {
"compatibleTypes": "->Trigger On Event->"
"compatibleTypes": "->Ask Portfolio Events Manager->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "triggerOnPMEvent"
"propertyNameAtParent": "confirmEvent"
}
@@ -1,5 +1,5 @@
{
"type": "Trigger Off PM Event",
"type": "Confirm Formula",
"menuItems": [
{
"action": "Delete UI Object",
@@ -13,17 +13,11 @@
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 2,
"attachingRules": {
"compatibleTypes": "->Trigger Off Event->"
"compatibleTypes": "->Ask Portfolio Formula Manager->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "triggerOffPMEvent"
"propertyNameAtParent": "confirmFormula"
}
@@ -1,5 +1,5 @@
{
"type": "Close Stage PM Event",
"type": "Raise Event",
"menuItems": [
{
"action": "Delete UI Object",
@@ -13,17 +13,11 @@
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 2,
"attachingRules": {
"compatibleTypes": "->Close Stage Event->"
"compatibleTypes": "->Ask Portfolio Events Manager->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "closeStagePMEvent"
"propertyNameAtParent": "raiseEvent"
}
@@ -1,5 +1,5 @@
{
"type": "Create Order PM Event",
"type": "Set Formula",
"menuItems": [
{
"action": "Delete UI Object",
@@ -13,17 +13,11 @@
}
],
"addLeftIcons": true,
"initialValues": {
"config": "{}"
},
"editors": {
"config": true
},
"level": 2,
"attachingRules": {
"compatibleTypes": "->Create Order Event->"
"compatibleTypes": "->Ask Portfolio Formula Manager->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "createOrderPMEvent"
"propertyNameAtParent": "setFormula"
}
@@ -581,9 +581,11 @@
}
function startLivePortfolio() {
for (let key of TS.projects.foundations.globals.taskConstants.MANAGED_SESSIONS_MAP.keys()) {
/* Testing to be removed: @PLUV */
/*for (let key of TS.projects.foundations.globals.taskConstants.MANAGED_SESSIONS_MAP.keys()) {
TS.projects.foundations.globals.taskConstants.MANAGED_SESSIONS_MAP.get(key).beginListening();
}
}*/
/* End Testing */
return checkKey()
}