Update OrdersSimulations.js

This commit is contained in:
Luis Fernando Molina committed 2020-10-27 09:44:41 +01:00
1 parent 5cda19de6a
commit 9c29d4f45d
1 file changed
+7 -1
@@ -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': {
/*