Entry Exit Target Size and Rate implementation

This commit is contained in:
Luis Fernando Molina committed 2020-08-05 20:31:06 +02:00
1 parent 269524a358
commit f5a1d6339b
5 files changed
+266 -182

No files matched your search

+16 -8
View File
@@ -118,17 +118,25 @@ exports.newTradingSystem = function newTradingSystem(bot, logger, tradingEngineM
}
async function run() {
/* Run the Trigger Stage */
tradingStagesModule.runTriggerStage()
try {
/* Run the Trigger Stage */
tradingStagesModule.runTriggerStage()
/* Run the Open Stage */
await tradingStagesModule.runOpenStage()
/* Run the Open Stage */
await tradingStagesModule.runOpenStage()
/* Run the Manage Stage */
tradingStagesModule.runManageStage()
/* Run the Manage Stage */
tradingStagesModule.runManageStage()
/* Run the Close Stage */
await tradingStagesModule.runCloseStage()
/* Run the Close Stage */
await tradingStagesModule.runCloseStage()
} catch (err) {
/*
If an error ocurred during execution, it was alreeady logged and
included at the errors array. That means we need to do nothing here,
just prevent the execution to be halted for not handling exceptions.
*/
}
}
function evalNode(node, evaluating, descendentOfNodeType, isDescendent) {