Merge pull request #517 from Luis-Fernando-Molina/develop
Contribution: Improvement at Info Page
This commit is contained in:
2 files changed
+19
No files matched your search
+12
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
+7
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user