Skip to content

Commit

Permalink
Updated steps
Browse files Browse the repository at this point in the history
  • Loading branch information
TNSGXhosts committed Dec 20, 2023
1 parent 520dbd6 commit b7f194e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b7f194e

Please sign in to comment.