diff --git a/Projects/Foundations/Schemas/App-Schema/live-portfolio-session.json b/Projects/Foundations/Schemas/App-Schema/live-portfolio-session.json index 9c18dda1c..5e0a6b6ba 100644 --- a/Projects/Foundations/Schemas/App-Schema/live-portfolio-session.json +++ b/Projects/Foundations/Schemas/App-Schema/live-portfolio-session.json @@ -51,6 +51,16 @@ "relatedUiObjectProject": "Social-Bots", "actionProject": "Visual-Scripting" }, + { + "action": "Add UI Object", + "disableIfPropertyIsDefined": true, + "propertyToCheckFor": "managedSessions", + "label": "Add Managed Sessions", + "relatedUiObject": "Managed Sessions", + "actionFunction": "payload.executeAction", + "actionProject": "Visual-Scripting", + "relatedUiObjectProject": "Foundations" + }, { "action": "Add Missing Children", "label": "Add Missing Children", @@ -109,6 +119,11 @@ "type": "node", "childType": "Social Bots", "project": "Social-Bots" + }, + { + "name": "managedSessions", + "type": "node", + "childType": "Managed Sessions" } ], "propertyNameAtParent": "session" diff --git a/Projects/Foundations/Schemas/App-Schema/managed-sessions.json b/Projects/Foundations/Schemas/App-Schema/managed-sessions.json new file mode 100644 index 000000000..dfb7d9e4d --- /dev/null +++ b/Projects/Foundations/Schemas/App-Schema/managed-sessions.json @@ -0,0 +1,58 @@ +{ + "type": "Managed Sessions", + "menuItems": [ + { + "action": "Run All Sessions", + "label": "Run All Sessions", + "askConfirmation": true, + "confirmationLabel": "Confirm to Run", + "workDoneLabel": "Run Request Sent", + "iconPathOn": "run", + "iconPathOff": "run", + "actionFunction": "payload.executeAction" + }, + { + "action": "Stop All Sessions", + "label": "Stop All Sessions", + "askConfirmation": true, + "confirmationLabel": "Confirm to Stop", + "workDoneLabel": "Stop Request Sent", + "iconPathOn": "stop", + "iconPathOff": "stop", + "actionFunction": "payload.executeAction" + }, + { + "action": "Add UI Object", + "label": "Add Session Reference", + "relatedUiObject": "Session Reference", + "actionFunction": "payload.executeAction", + "actionProject": "Visual-Scripting", + "relatedUiObjectProject": "Foundations" + }, + { + "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": "->Live Portfolio Session->" + }, + "childrenNodesProperties": [ + { + "name": "sessionReference", + "type": "array", + "childType": "Session Reference", + "autoAdd": false, + "monitorChildrenRunning": true + } + ], + "propertyNameAtParent": "managedSessions" +} \ No newline at end of file diff --git a/Projects/Foundations/Schemas/App-Schema/managed-tasks.json b/Projects/Foundations/Schemas/App-Schema/managed-tasks.json new file mode 100644 index 000000000..2c3da2ae9 --- /dev/null +++ b/Projects/Foundations/Schemas/App-Schema/managed-tasks.json @@ -0,0 +1,58 @@ +{ + "type": "Managed Tasks", + "menuItems": [ + { + "action": "Run All Tasks", + "label": "Run All Tasks", + "askConfirmation": true, + "confirmationLabel": "Confirm to Run", + "workDoneLabel": "Run Request Sent", + "iconPathOn": "run", + "iconPathOff": "run", + "actionFunction": "payload.executeAction" + }, + { + "action": "Stop All Tasks", + "label": "Stop All Tasks", + "askConfirmation": true, + "confirmationLabel": "Confirm to Stop", + "workDoneLabel": "Stop Request Sent", + "iconPathOn": "stop", + "iconPathOff": "stop", + "actionFunction": "payload.executeAction" + }, + { + "action": "Add UI Object", + "label": "Add Task Reference", + "relatedUiObject": "Task Reference", + "actionFunction": "payload.executeAction", + "actionProject": "Visual-Scripting", + "relatedUiObjectProject": "Foundations" + }, + { + "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": "->Task->" + }, + "childrenNodesProperties": [ + { + "name": "taskReference", + "type": "array", + "childType": "Task Reference", + "autoAdd": false, + "monitorChildrenRunning": true + } + ], + "propertyNameAtParent": "managedTasks" +} \ No newline at end of file diff --git a/Projects/Foundations/Schemas/App-Schema/session-reference.json b/Projects/Foundations/Schemas/App-Schema/session-reference.json new file mode 100644 index 000000000..95eea45cb --- /dev/null +++ b/Projects/Foundations/Schemas/App-Schema/session-reference.json @@ -0,0 +1,26 @@ +{ + "type": "Session Reference", + "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" + } + ], + "title": [ "Use Reference Parent" ], + "isTitleAllwaysVisible": true, + "addLeftIcons": true, + "level": 2, + "attachingRules": { + "compatibleTypes": "->Managed Sessions->" + }, + "referencingRules": { + "compatibleTypes": "->Backtesting Session->Forward Testing Session->Paper Trading Session->Live Trading Session->Back Learning Session->Live Learning Session->" + }, + "propertyNameAtParent": "sessionReference" +} \ No newline at end of file diff --git a/Projects/Foundations/Schemas/App-Schema/task-reference.json b/Projects/Foundations/Schemas/App-Schema/task-reference.json new file mode 100644 index 000000000..4ee3db582 --- /dev/null +++ b/Projects/Foundations/Schemas/App-Schema/task-reference.json @@ -0,0 +1,26 @@ +{ + "type": "Task Reference", + "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" + } + ], + "title": [ "Use Reference Parent" ], + "isTitleAllwaysVisible": true, + "addLeftIcons": true, + "level": 2, + "attachingRules": { + "compatibleTypes": "->Managed Tasks->" + }, + "referencingRules": { + "compatibleTypes": "->Task->" + }, + "propertyNameAtParent": "taskReference" +} \ No newline at end of file diff --git a/Projects/Foundations/Schemas/App-Schema/task.json b/Projects/Foundations/Schemas/App-Schema/task.json index c25cd5ed7..51dd2bd21 100644 --- a/Projects/Foundations/Schemas/App-Schema/task.json +++ b/Projects/Foundations/Schemas/App-Schema/task.json @@ -97,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": "Delete UI Object", "actionProject": "Visual-Scripting", @@ -149,6 +159,11 @@ "name": "keyReference", "type": "node", "childType": "Key Reference" + }, + { + "name": "managedTasks", + "type": "node", + "childType": "Managed Tasks" } ], "propertyNameAtParent": "tasks"