Tyding up
This commit is contained in:
1 parent
b945ecdfbb
commit
4d3c9ce4ab
1 file changed
+3
-2
+3
-2
@@ -36,6 +36,7 @@
|
||||
/* We are going to run the Definition comming at the event. */
|
||||
bot.DEFINITION = JSON.parse(message.event.definition)
|
||||
bot.SESSION = JSON.parse(message.event.session)
|
||||
bot.UI_CURRENT_VALUES = message.event.uiCurrentValues
|
||||
|
||||
setValuesToUse(message)
|
||||
|
||||
@@ -113,7 +114,7 @@
|
||||
minimumBalanceB: 0,
|
||||
maximumBalanceA: 0.002,
|
||||
maximumBalanceB: 0,
|
||||
timePeriod: bot.DEFINITION.uiCurrentValues.timePeriod,
|
||||
timePeriod: bot.UI_CURRENT_VALUES.timePeriod,
|
||||
slippage: {
|
||||
positionRate: 0,
|
||||
stopLoss: 0,
|
||||
@@ -133,7 +134,7 @@
|
||||
const ONE_YEAR_IN_MILISECONDS = 365 * 24 * 60 * 60 * 1000
|
||||
switch (bot.SESSION.type) {
|
||||
case 'Backtesting Session': {
|
||||
bot.VALUES_TO_USE.timeRange.initialDatetime = new Date(bot.DEFINITION.uiCurrentValues.initialDatetime)
|
||||
bot.VALUES_TO_USE.timeRange.initialDatetime = new Date(bot.UI_CURRENT_VALUES.initialDatetime)
|
||||
bot.VALUES_TO_USE.timeRange.finalDatetime = new Date()
|
||||
break
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user