Updated for RangeBars ver. 3.01

This commit is contained in:
unknown
2020-02-23 23:23:36 +01:00
parent e6121f7487
commit 0d51499dcf
2 changed files with 9 additions and 5 deletions
+6 -5
View File
@@ -194,7 +194,6 @@ int RangeBars::Init()
s.atrPercentage,
s.showNumberOfDays, s.resetOpenOnNewTradingDay,
TradingSessionTime,
TopBottomPaddingPercentage,
showPivots,
pivotPointCalculationType,
RColor,
@@ -203,11 +202,8 @@ int RangeBars::Init()
PDHColor,
PDLColor,
PDCColor,
showCurrentBarOpenTime,
AlertMeWhen,
AlertNotificationType,
SoundFileBull,
SoundFileBear,
cis.MA1on,
cis.MA1lineType,
cis.MA1period,
@@ -245,7 +241,12 @@ int RangeBars::Init()
cis.ChannelPriceLabel,
cis.ChannelMidPriceLabel,
true); // used in EA
// DisplayAsBarChart & ShiftObj let at defaults
// TopBottomPaddingPercentage,
// showCurrentBarOpenTime,
// SoundFileBull,
// SoundFileBear,
// DisplayAsBarChart
// ShiftObj; all letft at defaults
if(rangeBarsHandle == INVALID_HANDLE)
{
@@ -161,6 +161,9 @@ string NormalizeTime(datetime _dt)
string minute = (dt.min<10) ? ("0"+(string)dt.min) : (string)dt.min;
string hour = (dt.hour<10) ? ("0"+(string)dt.hour) : (string)dt.hour;
if((dt.mon-1) < 0 || (dt.mon-1) > 11)
return "*";
if(InpDispFormat == DisplayFormat1)
return ( "'"+(string)dt.day+" "+__months[dt.mon-1]+" "+hour+":"+minute );
else