Skip to content

Commit

Permalink
Order: ProcessConditions: Adds _refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Sep 26, 2021
1 parent c71001a commit 68b5693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Order.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -2581,9 +2581,9 @@ class Order : public SymbolInfo {
/**
* Process order conditions.
*/
bool ProcessConditions() {
bool ProcessConditions(bool _refresh = false) {
bool _result = true;
if (IsOpen() && ShouldCloseOrder()) {
if (IsOpen(_refresh) && ShouldCloseOrder()) {
string _reason = "Close condition";
#ifdef __MQL__
// _reason += StringFormat(": %s", EnumToString(oparams.cond_close));
Expand Down

0 comments on commit 68b5693

Please sign in to comment.