Update OrdersSimulations.js

This commit is contained in:
Luis Fernando Molina committed 2020-10-27 09:44:33 +01:00
1 parent 91910b184c
commit fa871397a0
1 file changed
+7 -1
+7 -1
View File
@@ -64,8 +64,14 @@ exports.newOrdersSimulations = function newOrdersSimulations(bot, logger) {
function basedOnSessionParameters() {
/*
The default way to calculate the Actual Rate is to apply the Slippage defined
at the Session Parameters Definition.
at the Session Parameters Definition. We are not going to apply the default if there
is a definition for this order on how to calculate the actual rate.
*/
if (tradingSystemOrder.simulatedExchangeEvents !== undefined) {
if (tradingSystemOrder.simulatedExchangeEvents.simulatedActualRate !== undefined) {
return
}
}
switch (tradingEngineOrder.type) {
case 'Market Order': {
/*