From b7f194e2913a634f6779c9668b0e49c6f1ce3bf9 Mon Sep 17 00:00:00 2001 From: TNSGXhosts <79087978+TNSGXhosts@users.noreply.github.com> Date: Wed, 20 Dec 2023 12:53:12 +0100 Subject: [PATCH] Updated steps --- .../UserInputPipeline/PipelineSteps/CreateOrderStep.cs | 1 - .../UserInputPipeline/PipelineSteps/CreatePositionStep.cs | 1 - .../UserInputPipeline/PipelineSteps/UpdateOrderStep.cs | 1 - .../UserInputPipeline/PipelineSteps/UpdatePositionStep.cs | 1 - 4 files changed, 4 deletions(-) diff --git a/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/CreateOrderStep.cs b/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/CreateOrderStep.cs index 8ecdb8b..09bb500 100644 --- a/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/CreateOrderStep.cs +++ b/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/CreateOrderStep.cs @@ -17,7 +17,6 @@ public bool Execute(string input) { Direction = userContext.OrderData.Direction.ToString(), Size = userContext.OrderData.Size, Level = userContext.OrderData.Level, - //GuaranteedStop = userContext.OrderData.StopLoss != 0 || userContext.OrderData.TakeProfit != 0, StopLevel = userContext.OrderData.StopLoss, ProfitLevel = userContext.OrderData.TakeProfit, Type = Types.LIMIT diff --git a/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/CreatePositionStep.cs b/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/CreatePositionStep.cs index b2ff833..9c788e9 100644 --- a/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/CreatePositionStep.cs +++ b/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/CreatePositionStep.cs @@ -16,7 +16,6 @@ public bool Execute(string input) { Epic = userContext.OrderData.Epic, Direction = userContext.OrderData.Direction.ToString(), Size = userContext.OrderData.Size, - //GuaranteedStop = userContext.OrderData.StopLoss != 0 || userContext.OrderData.TakeProfit != 0, StopLevel = userContext.OrderData.StopLoss, ProfitLevel = userContext.OrderData.TakeProfit }; diff --git a/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/UpdateOrderStep.cs b/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/UpdateOrderStep.cs index 013d23a..3081e3c 100644 --- a/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/UpdateOrderStep.cs +++ b/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/UpdateOrderStep.cs @@ -17,7 +17,6 @@ public bool Execute(string input) Level = (decimal)userContext.OrderData.Level, StopLevel = userContext.OrderData.StopLoss, ProfitLevel = userContext.OrderData.TakeProfit, - //GuaranteedStop = userContext.OrderData.StopLoss != 0 || userContext.OrderData.TakeProfit != 0 }; return capitalClient.UpdateOrder(userContext.InputCallback, position).Result; diff --git a/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/UpdatePositionStep.cs b/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/UpdatePositionStep.cs index fad0e0d..fbce151 100644 --- a/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/UpdatePositionStep.cs +++ b/src/Trading.Application/Trading.Application/UserInputPipeline/PipelineSteps/UpdatePositionStep.cs @@ -16,7 +16,6 @@ public bool Execute(string input) var position = new CreatePositionEntity() { StopLevel = userContext.OrderData.StopLoss, ProfitLevel = userContext.OrderData.TakeProfit, - //GuaranteedStop = userContext.OrderData.StopLoss != 0 || userContext.OrderData.TakeProfit != 0 }; return capitalClient.UpdatePosition(userContext.InputCallback, position).Result;