Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0d51499dcf |
@@ -194,7 +194,6 @@ int RangeBars::Init()
|
|||||||
s.atrPercentage,
|
s.atrPercentage,
|
||||||
s.showNumberOfDays, s.resetOpenOnNewTradingDay,
|
s.showNumberOfDays, s.resetOpenOnNewTradingDay,
|
||||||
TradingSessionTime,
|
TradingSessionTime,
|
||||||
TopBottomPaddingPercentage,
|
|
||||||
showPivots,
|
showPivots,
|
||||||
pivotPointCalculationType,
|
pivotPointCalculationType,
|
||||||
RColor,
|
RColor,
|
||||||
@@ -203,11 +202,8 @@ int RangeBars::Init()
|
|||||||
PDHColor,
|
PDHColor,
|
||||||
PDLColor,
|
PDLColor,
|
||||||
PDCColor,
|
PDCColor,
|
||||||
showCurrentBarOpenTime,
|
|
||||||
AlertMeWhen,
|
AlertMeWhen,
|
||||||
AlertNotificationType,
|
AlertNotificationType,
|
||||||
SoundFileBull,
|
|
||||||
SoundFileBear,
|
|
||||||
cis.MA1on,
|
cis.MA1on,
|
||||||
cis.MA1lineType,
|
cis.MA1lineType,
|
||||||
cis.MA1period,
|
cis.MA1period,
|
||||||
@@ -245,7 +241,12 @@ int RangeBars::Init()
|
|||||||
cis.ChannelPriceLabel,
|
cis.ChannelPriceLabel,
|
||||||
cis.ChannelMidPriceLabel,
|
cis.ChannelMidPriceLabel,
|
||||||
true); // used in EA
|
true); // used in EA
|
||||||
// DisplayAsBarChart & ShiftObj let at defaults
|
// TopBottomPaddingPercentage,
|
||||||
|
// showCurrentBarOpenTime,
|
||||||
|
// SoundFileBull,
|
||||||
|
// SoundFileBear,
|
||||||
|
// DisplayAsBarChart
|
||||||
|
// ShiftObj; all letft at defaults
|
||||||
|
|
||||||
if(rangeBarsHandle == INVALID_HANDLE)
|
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 minute = (dt.min<10) ? ("0"+(string)dt.min) : (string)dt.min;
|
||||||
string hour = (dt.hour<10) ? ("0"+(string)dt.hour) : (string)dt.hour;
|
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)
|
if(InpDispFormat == DisplayFormat1)
|
||||||
return ( "'"+(string)dt.day+" "+__months[dt.mon-1]+" "+hour+":"+minute );
|
return ( "'"+(string)dt.day+" "+__months[dt.mon-1]+" "+hour+":"+minute );
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user