Skip to content

Commit 0d51499

Browse files
committed
Updated for RangeBars ver. 3.01
1 parent e6121f7 commit 0d51499

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Include/AZ-INVEST/SDK/RangeBars.mqh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ int RangeBars::Init()
194194
s.atrPercentage,
195195
s.showNumberOfDays, s.resetOpenOnNewTradingDay,
196196
TradingSessionTime,
197-
TopBottomPaddingPercentage,
198197
showPivots,
199198
pivotPointCalculationType,
200199
RColor,
@@ -203,11 +202,8 @@ int RangeBars::Init()
203202
PDHColor,
204203
PDLColor,
205204
PDCColor,
206-
showCurrentBarOpenTime,
207205
AlertMeWhen,
208206
AlertNotificationType,
209-
SoundFileBull,
210-
SoundFileBear,
211207
cis.MA1on,
212208
cis.MA1lineType,
213209
cis.MA1period,
@@ -245,7 +241,12 @@ int RangeBars::Init()
245241
cis.ChannelPriceLabel,
246242
cis.ChannelMidPriceLabel,
247243
true); // used in EA
248-
// DisplayAsBarChart & ShiftObj let at defaults
244+
// TopBottomPaddingPercentage,
245+
// showCurrentBarOpenTime,
246+
// SoundFileBull,
247+
// SoundFileBear,
248+
// DisplayAsBarChart
249+
// ShiftObj; all letft at defaults
249250

250251
if(rangeBarsHandle == INVALID_HANDLE)
251252
{

Indicators/RangeBars/RangeBars_TimeLine.mq5

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ string NormalizeTime(datetime _dt)
161161
string minute = (dt.min<10) ? ("0"+(string)dt.min) : (string)dt.min;
162162
string hour = (dt.hour<10) ? ("0"+(string)dt.hour) : (string)dt.hour;
163163

164+
if((dt.mon-1) < 0 || (dt.mon-1) > 11)
165+
return "*";
166+
164167
if(InpDispFormat == DisplayFormat1)
165168
return ( "'"+(string)dt.day+" "+__months[dt.mon-1]+" "+hour+":"+minute );
166169
else

0 commit comments

Comments
 (0)