Skip to content

Commit

Permalink
Fixes EOL characters
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Jan 18, 2022
1 parent a469c5e commit 6ee889c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Indicator/IndicatorCandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,20 @@ class IndicatorCandle : public Indicator<TS> {
int i = 0;
while (true) {
_curr_candle_time = CalcCandleTimestamp(GetBarTime(i++));

if (_curr_candle_time < icdata.GetMin()) {
// There is no older entries.
break;
}

_candle = icdata.GetByKey(_curr_candle_time);

if (_candle.IsValid()) {
break;
}
}
}

if (!_candle.IsValid()) {
// Giving up.
DebugBreak();
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_AMA.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class Indi_AMA : public IndicatorTickOrCandleSource<IndiAMAParams> {
for (int x = prev_calculated; x < rates_total; ++x) {
Print("price[", x, "] = ", price[x].Get(), ", O = ", iOpen(Symbol(), PERIOD_CURRENT, Bars(Symbol(), PERIOD_CURRENT) - x - 1));
}

int i;
// Check for rates count.
if (rates_total < ExtPeriodAMA + begin) return (0);
Expand Down

0 comments on commit 6ee889c

Please sign in to comment.