Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v3.002-dev-new' into v3.003-dev-new
Browse files Browse the repository at this point in the history
* origin/v3.002-dev-new:
  Workaround for closing order conditions after orders are loaded from active pool (GH-705)
  Trade: TradeParams: Adds max_spread
  Order: Fixes the current volume value when data in orequest is missing
  Order: Refresh order after modification
  Trade: Disables filling modes for MQL4
  Account/AccountMt: Fixes zero division
  Refs EA31337-classes/EA31337-indicators-other#13, EA31337-classes/EA31337-indicators-other#15. WIP. TDI-RT-Clone and Heiken_Ashi_Smoothed indicators made to work in MT5.
  GHA: Compile: Adds support for path input
  • Loading branch information
kenorb committed Apr 27, 2024
2 parents 7bb64fa + efa612e commit 5cb35fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Indicator.define.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class DrawIndicator;
_obj.SetHandle(_handle); \
} \
} \
if (Terminal::IsVisualMode()) { \
if (Terminal::IsVisualMode()) { \
/* To avoid error 4806 (ERR_INDICATOR_DATA_NOT_FOUND), */ \
/* we check the number of calculated data only in visual mode. */ \
int _bars_calc = BarsCalculated(_handle); \
Expand All @@ -131,6 +131,7 @@ class DrawIndicator;
} \
} \
if (CopyBuffer(_handle, MODE, SHIFT, 1, _res) < 0) { \
Print(#NATIVE_METHOD_CALL, " = ", _res[0], ", LE = ", _LastError); \
return ArraySize(_res) > 0 ? _res[0] : EMPTY_VALUE; \
} \
return _res[0];

0 comments on commit 5cb35fd

Please sign in to comment.