Skip to content

Commit

Permalink
Tiny C++ compatibility fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nseam committed Sep 18, 2024
1 parent 80e370f commit 080e9fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Indicator/IndicatorData.h
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@ class IndicatorData : public IndicatorBase {
if (GetCandle() == THIS_PTR) {
Alert(GetFullName(), " candle indicator must override ", __FUNCTION__, "()!");
DebugBreak();
return -1;
return (ENUM_TIMEFRAMES)-1;
}

return GetCandle() PTR_DEREF GetTf();
Expand Down
5 changes: 3 additions & 2 deletions Platform/Chart/Chart.define.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
#define MODE_MARGINHEDGED 31
#define MODE_MARGINREQUIRED 32
#define MODE_FREEZELEVEL 33
#else
// #ifdef __MQL4__
#endif

#ifndef __MQL5__
#define MODE_REAL_VOLUME 7
#endif

0 comments on commit 080e9fd

Please sign in to comment.