File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments