Bug Fixes

This commit is contained in:
Luis Fernando Molina committed 2020-07-29 11:16:05 +02:00
1 parent 3bdd857743
commit 00c47a7478
4 files changed
+22 -10

No files matched your search

+8
View File
@@ -656,6 +656,14 @@ exports.newTradingSystem = function newTradingSystem(bot, logger, tradingEngineM
evalConditions(manageStage, 'Manage Stage')
evalFormulas(manageStage, 'Manage Stage')
if (
tradingEngine.current.position.stopLoss.stopLossStage.value === 'Open Stage' ||
tradingEngine.current.position.takeProfit.takeProfitStage.value === 'Open Stage') {
let stageNode = tradingSystem.tradingStrategies[tradingEngine.current.strategy.index.value].openStage
evalConditions(stageNode, 'Initial Definition')
evalFormulas(stageNode, 'Initial Definition')
}
/* Stop Loss Management */
checkStopPhasesEvents()
calculateStopLoss()