From 6ee889c0de8509bf015718bb383f7c222532f940 Mon Sep 17 00:00:00 2001 From: kenorb Date: Tue, 18 Jan 2022 17:10:19 +0000 Subject: [PATCH] Fixes EOL characters --- Indicator/IndicatorCandle.h | 8 ++++---- Indicators/Indi_AMA.mqh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Indicator/IndicatorCandle.h b/Indicator/IndicatorCandle.h index 4293af43b..c0ff4637a 100644 --- a/Indicator/IndicatorCandle.h +++ b/Indicator/IndicatorCandle.h @@ -108,20 +108,20 @@ class IndicatorCandle : public Indicator { 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(); diff --git a/Indicators/Indi_AMA.mqh b/Indicators/Indi_AMA.mqh index ee9e75af9..e72de2fdc 100644 --- a/Indicators/Indi_AMA.mqh +++ b/Indicators/Indi_AMA.mqh @@ -180,7 +180,7 @@ class Indi_AMA : public IndicatorTickOrCandleSource { 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);