Merge pull request #517 from Luis-Fernando-Molina/develop

Contribution: Improvement at Info Page
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-01-31 12:38:24 +01:00
commit 31bf60fae2
2 files changed
+19

No files matched your search

@@ -11,6 +11,18 @@
"style": "Note",
"text": "Candle And Cycle",
"updated": 1611919730247
},
{
"style": "Title",
"text": "Context Info"
},
{
"style": "Text",
"text": "The following is the information preserved at the moment this Info Message was generated:"
},
{
"style": "Placeholder",
"text": "contextInfo"
}
]
}
@@ -214,6 +214,13 @@ exports.newSuperalgosBotModulesTradingSimulation = function (processIndex) {
type: 'TS LF Trading Bot Info - Candle And Cycle',
placeholder: {}
}
contextInfo = {
candleIndex: tradingEngine.current.episode.candle.index.value,
cycle: tradingEngine.current.episode.cycle.value
}
TS.projects.superalgos.utilities.docsFunctions.buildPlaceholder(docs, undefined, undefined, undefined, undefined, undefined, contextInfo)
tradingSystem.addInfo([tradingSystem.id, infoMessage, docs])
await tradingSystemModuleObject.run()