Skip to content

Commit eb6b41c

Browse files
committed
Updating to 5.0 build 2005
1 parent c744e34 commit eb6b41c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+92
-225
lines changed

engine/metaeditor64.exe

230 KB
Binary file not shown.

vsts-extension/CompileMql5Task/Include/Canvas/Charts/ChartCanvas.mqh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public:
117117
void MaxDescrLen(const uint value);
118118
//--- show flags
119119
void AllowedShowFlags(const uint flags);
120-
bool ShowFlags(void) const { return(m_show_flags); }
120+
uint ShowFlags(void) const { return(m_show_flags); }
121121
void ShowFlags(const uint flags);
122122
bool IsShowLegend(void) const { return(IS_SHOW_LEGEND); }
123123
bool IsShowScaleLeft(void) const { return(IS_SHOW_SCALE_LEFT); }

vsts-extension/CompileMql5Task/Include/ChartObjects/ChartObject.mqh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ bool CChartObject::Background(void) const
310310
if(m_chart_id==-1)
311311
return(false);
312312
//--- result
313-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_BACK));
313+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_BACK));
314314
}
315315
//+------------------------------------------------------------------+
316316
//| Set the "Draw object as background" flag |
@@ -332,7 +332,7 @@ bool CChartObject::Fill(void) const
332332
if(m_chart_id==-1)
333333
return(false);
334334
//--- result
335-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_FILL));
335+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_FILL));
336336
}
337337
//+------------------------------------------------------------------+
338338
//| Set the "Filling" flag |
@@ -376,7 +376,7 @@ bool CChartObject::Selected(void) const
376376
if(m_chart_id==-1)
377377
return(false);
378378
//--- result
379-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_SELECTED));
379+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_SELECTED));
380380
}
381381
//+------------------------------------------------------------------+
382382
//| Set the "selected" flag |
@@ -398,7 +398,7 @@ bool CChartObject::Selectable(void) const
398398
if(m_chart_id==-1)
399399
return(false);
400400
//--- result
401-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_SELECTABLE));
401+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_SELECTABLE));
402402
}
403403
//+------------------------------------------------------------------+
404404
//| Set flag the "selectable" flag |

vsts-extension/CompileMql5Task/Include/ChartObjects/ChartObjectSubChart.mqh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ bool CChartObjectSubChart::DateScale(void) const
261261
if(m_chart_id==-1)
262262
return(false);
263263
//--- result
264-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_DATE_SCALE));
264+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_DATE_SCALE));
265265
}
266266
//+------------------------------------------------------------------+
267267
//| Set the "time scale" flag |
@@ -283,7 +283,7 @@ bool CChartObjectSubChart::PriceScale(void) const
283283
if(m_chart_id==-1)
284284
return(false);
285285
//--- result
286-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_PRICE_SCALE));
286+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_PRICE_SCALE));
287287
}
288288
//+------------------------------------------------------------------+
289289
//| Set the "price scale" flag |

vsts-extension/CompileMql5Task/Include/ChartObjects/ChartObjectsBmpControls.mqh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ bool CChartObjectBmpLabel::State(void) const
372372
if(m_chart_id==-1)
373373
return(false);
374374
//--- result
375-
return((int)ObjectGetInteger(m_chart_id,m_name,OBJPROP_STATE));
375+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_STATE));
376376
}
377377
//+------------------------------------------------------------------+
378378
//| Set the State property |

vsts-extension/CompileMql5Task/Include/ChartObjects/ChartObjectsElliott.mqh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ bool CChartObjectElliottWave3::Lines(void) const
9090
if(m_chart_id==-1)
9191
return(false);
9292
//--- result
93-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_DRAWLINES));
93+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_DRAWLINES));
9494
}
9595
//+------------------------------------------------------------------+
9696
//| Set value for the "Lines" property |

vsts-extension/CompileMql5Task/Include/ChartObjects/ChartObjectsFibo.mqh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ bool CChartObjectFiboArc::Ellipse(void) const
219219
if(m_chart_id==-1)
220220
return(false);
221221
//--- result
222-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_ELLIPSE));
222+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_ELLIPSE));
223223
}
224224
//+------------------------------------------------------------------+
225225
//| Set value for the "Ellipse" property |

vsts-extension/CompileMql5Task/Include/ChartObjects/ChartObjectsGann.mqh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ bool CChartObjectGannFan::Downtrend(void) const
197197
if(m_chart_id==-1)
198198
return(false);
199199
//--- result
200-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_DIRECTION));
200+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_DIRECTION));
201201
}
202202
//+------------------------------------------------------------------+
203203
//| Set value for the "Downtrend" property |
@@ -334,7 +334,7 @@ bool CChartObjectGannGrid::Downtrend(void) const
334334
if(m_chart_id==-1)
335335
return(false);
336336
//--- result
337-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_DIRECTION));
337+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_DIRECTION));
338338
}
339339
//+------------------------------------------------------------------+
340340
//| Set the property value "Downtrend" |

vsts-extension/CompileMql5Task/Include/ChartObjects/ChartObjectsLines.mqh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ bool CChartObjectTrend::RayLeft(void) const
146146
if(m_chart_id==-1)
147147
return(false);
148148
//--- result
149-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_RAY_LEFT));
149+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_RAY_LEFT));
150150
}
151151
//+------------------------------------------------------------------+
152152
//| Set the "Ray left" flag |
@@ -168,7 +168,7 @@ bool CChartObjectTrend::RayRight(void) const
168168
if(m_chart_id==-1)
169169
return(false);
170170
//--- result
171-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_RAY_RIGHT));
171+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_RAY_RIGHT));
172172
}
173173
//+------------------------------------------------------------------+
174174
//| Set the "Ray right" flag |

vsts-extension/CompileMql5Task/Include/ChartObjects/ChartObjectsTxtControls.mqh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ bool CChartObjectEdit::ReadOnly(void) const
537537
if(m_chart_id==-1)
538538
return(false);
539539
//--- result
540-
return((int)ObjectGetInteger(m_chart_id,m_name,OBJPROP_READONLY));
540+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_READONLY));
541541
}
542542
//+------------------------------------------------------------------+
543543
//| Set the "Read only" property |
@@ -660,7 +660,7 @@ bool CChartObjectButton::State(void) const
660660
if(m_chart_id==-1)
661661
return(false);
662662
//--- result
663-
return(ObjectGetInteger(m_chart_id,m_name,OBJPROP_STATE));
663+
return((bool)ObjectGetInteger(m_chart_id,m_name,OBJPROP_STATE));
664664
}
665665
//+------------------------------------------------------------------+
666666
//| Set state |

vsts-extension/CompileMql5Task/Include/Charts/Chart.mqh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ bool CChart::Foreground(void) const
207207
if(m_chart_id==-1)
208208
return(false);
209209
//--- result
210-
return(ChartGetInteger(m_chart_id,CHART_FOREGROUND));
210+
return((bool)ChartGetInteger(m_chart_id,CHART_FOREGROUND));
211211
}
212212
//+------------------------------------------------------------------+
213213
//| Set value of the "Foreground" property |
@@ -229,7 +229,7 @@ bool CChart::Shift(void) const
229229
if(m_chart_id==-1)
230230
return(false);
231231
//--- result
232-
return(ChartGetInteger(m_chart_id,CHART_SHIFT));
232+
return((bool)ChartGetInteger(m_chart_id,CHART_SHIFT));
233233
}
234234
//+------------------------------------------------------------------+
235235
//| Set value of the "Shift"property |
@@ -277,7 +277,7 @@ bool CChart::AutoScroll(void) const
277277
if(m_chart_id==-1)
278278
return(false);
279279
//--- result
280-
return(ChartGetInteger(m_chart_id,CHART_AUTOSCROLL));
280+
return((bool)ChartGetInteger(m_chart_id,CHART_AUTOSCROLL));
281281
}
282282
//+------------------------------------------------------------------+
283283
//| Set value of the "AutoScroll" property |
@@ -325,7 +325,7 @@ bool CChart::ScaleFix(void) const
325325
if(m_chart_id==-1)
326326
return(false);
327327
//--- result
328-
return(ChartGetInteger(m_chart_id,CHART_SCALEFIX));
328+
return((bool)ChartGetInteger(m_chart_id,CHART_SCALEFIX));
329329
}
330330
//+------------------------------------------------------------------+
331331
//| Set value of the "ScaleFix" property |
@@ -347,7 +347,7 @@ bool CChart::ScaleFix_11(void) const
347347
if(m_chart_id==-1)
348348
return(false);
349349
//--- result
350-
return(ChartGetInteger(m_chart_id,CHART_SCALEFIX_11));
350+
return((bool)ChartGetInteger(m_chart_id,CHART_SCALEFIX_11));
351351
}
352352
//+------------------------------------------------------------------+
353353
//| Set value of the "ScaleFix_11" property |
@@ -413,7 +413,7 @@ bool CChart::ScalePPB(void) const
413413
if(m_chart_id==-1)
414414
return(false);
415415
//--- result
416-
return(ChartGetInteger(m_chart_id,CHART_SCALE_PT_PER_BAR));
416+
return((bool)ChartGetInteger(m_chart_id,CHART_SCALE_PT_PER_BAR));
417417
}
418418
//+------------------------------------------------------------------+
419419
//| Set value of the "ScalePointsPerBar" property |
@@ -457,7 +457,7 @@ bool CChart::ShowOHLC(void) const
457457
if(m_chart_id==-1)
458458
return(false);
459459
//--- result
460-
return(ChartGetInteger(m_chart_id,CHART_SHOW_OHLC));
460+
return((bool)ChartGetInteger(m_chart_id,CHART_SHOW_OHLC));
461461
}
462462
//+------------------------------------------------------------------+
463463
//| Set value of the "ShowOHLC" property |
@@ -479,7 +479,7 @@ bool CChart::ShowLineBid(void) const
479479
if(m_chart_id==-1)
480480
return(false);
481481
//--- result
482-
return(ChartGetInteger(m_chart_id,CHART_SHOW_BID_LINE));
482+
return((bool)ChartGetInteger(m_chart_id,CHART_SHOW_BID_LINE));
483483
}
484484
//+------------------------------------------------------------------+
485485
//| Set value of the "ShowLineBid" property |
@@ -501,7 +501,7 @@ bool CChart::ShowLineAsk(void) const
501501
if(m_chart_id==-1)
502502
return(false);
503503
//--- result
504-
return(ChartGetInteger(m_chart_id,CHART_SHOW_ASK_LINE));
504+
return((bool)ChartGetInteger(m_chart_id,CHART_SHOW_ASK_LINE));
505505
}
506506
//+------------------------------------------------------------------+
507507
//| Set value of the "ShowLineAsk" property |
@@ -523,7 +523,7 @@ bool CChart::ShowLastLine(void) const
523523
if(m_chart_id==-1)
524524
return(false);
525525
//--- result
526-
return(ChartGetInteger(m_chart_id,CHART_SHOW_LAST_LINE));
526+
return((bool)ChartGetInteger(m_chart_id,CHART_SHOW_LAST_LINE));
527527
}
528528
//+------------------------------------------------------------------+
529529
//| Set value of the "ShowLastLine" property |
@@ -545,7 +545,7 @@ bool CChart::ShowPeriodSep(void) const
545545
if(m_chart_id==-1)
546546
return(false);
547547
//--- result
548-
return(ChartGetInteger(m_chart_id,CHART_SHOW_PERIOD_SEP));
548+
return((bool)ChartGetInteger(m_chart_id,CHART_SHOW_PERIOD_SEP));
549549
}
550550
//+------------------------------------------------------------------+
551551
//| Set value of the "ShowPeriodSep" property |
@@ -567,7 +567,7 @@ bool CChart::ShowGrid(void) const
567567
if(m_chart_id==-1)
568568
return(false);
569569
//--- result
570-
return(ChartGetInteger(m_chart_id,CHART_SHOW_GRID));
570+
return((bool)ChartGetInteger(m_chart_id,CHART_SHOW_GRID));
571571
}
572572
//+------------------------------------------------------------------+
573573
//| Set value of the "ShowGrid" property |
@@ -611,7 +611,7 @@ bool CChart::ShowObjectDescr(void) const
611611
if(m_chart_id==-1)
612612
return(false);
613613
//--- result
614-
return(ChartGetInteger(m_chart_id,CHART_SHOW_OBJECT_DESCR));
614+
return((bool)ChartGetInteger(m_chart_id,CHART_SHOW_OBJECT_DESCR));
615615
}
616616
//+------------------------------------------------------------------+
617617
//| Set value of the "ShowObjectDescr" property |
@@ -1018,7 +1018,7 @@ bool CChart::WindowIsVisible(const int num) const
10181018
if(m_chart_id==-1)
10191019
return(false);
10201020
//--- result
1021-
return(ChartGetInteger(m_chart_id,CHART_WINDOW_IS_VISIBLE,num));
1021+
return((bool)ChartGetInteger(m_chart_id,CHART_WINDOW_IS_VISIBLE,num));
10221022
}
10231023
//+------------------------------------------------------------------+
10241024
//| Get value of the "WindowHandle" property |
@@ -1115,7 +1115,7 @@ bool CChart::IsObject(void) const
11151115
{
11161116
//--- check
11171117
if(m_chart_id==-1)
1118-
return(EMPTY_VALUE);
1118+
return(false);
11191119
//--- result
11201120
return((bool)ChartGetInteger(m_chart_id,CHART_IS_OBJECT));
11211121
}
@@ -1192,7 +1192,7 @@ bool CChart::GetDouble(const ENUM_CHART_PROPERTY_DOUBLE prop_id,const int subwin
11921192
{
11931193
//--- check
11941194
if(m_chart_id==-1)
1195-
return(0);
1195+
return(false);
11961196
//--- result
11971197
return(ChartGetDouble(m_chart_id,prop_id,subwindow,value));
11981198
}

vsts-extension/CompileMql5Task/Include/Controls/Wnd.mqh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//+------------------------------------------------------------------+
22
//| Wnd.mqh |
3-
//| Copyright 2009-2017, MetaQuotes Software Corp. |
3+
//| Copyright 2009-2018, MetaQuotes Software Corp. |
44
//| http://www.mql5.com |
55
//+------------------------------------------------------------------+
66
#include "Rect.mqh"
@@ -734,14 +734,14 @@ bool CDragWnd::OnDragProcess(const int x,const int y)
734734
int dx=x-m_mouse_x;
735735
int dy=y-m_mouse_y;
736736
//--- check shift
737-
if(Left()+dx<m_limit_left)
738-
dx=m_limit_left-Left();
739-
if(Top()+dy<m_limit_top)
740-
dy=m_limit_top-Top();
741737
if(Right()+dx>m_limit_right)
742738
dx=m_limit_right-Right();
739+
if(Left()+dx<m_limit_left)
740+
dx=m_limit_left-Left();
743741
if(Bottom()+dy>m_limit_bottom)
744742
dy=m_limit_bottom-Bottom();
743+
if(Top()+dy<m_limit_top)
744+
dy=m_limit_top-Top();
745745
//--- shift
746746
Shift(dx,dy);
747747
//--- save

vsts-extension/CompileMql5Task/Include/Graphics/Curve.mqh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private:
8585
bool m_visible;
8686
//--- trend line property
8787
uint m_trend_clr;
88-
double m_trend_visible;
88+
bool m_trend_visible;
8989

9090
protected:
9191
bool m_trend_calc;
Binary file not shown.

vsts-extension/CompileMql5Task/Include/Math/Stat/Beta.mqh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
//| Copyright 2016-2017, MetaQuotes Software Corp. |
44
//| https://www.mql5.com |
55
//+------------------------------------------------------------------+
6-
#property copyright "Copyright 2016-2017, MetaQuotes Software Corp."
7-
#property link "https://www.mql5.com"
8-
96
#include "Math.mqh"
7+
108
//+------------------------------------------------------------------+
119
//| Beta density function (PDF) |
1210
//+------------------------------------------------------------------+

vsts-extension/CompileMql5Task/Include/Math/Stat/Binomial.mqh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
//| Copyright 2016-2017, MetaQuotes Software Corp. |
44
//| https://www.mql5.com |
55
//+------------------------------------------------------------------+
6-
#property copyright "Copyright 2016-2017, MetaQuotes Software Corp."
7-
#property link "https://www.mql5.com"
8-
96
#include "Math.mqh"
107
#include "Beta.mqh"
8+
119
//+------------------------------------------------------------------+
1210
//| Binomial probability mass function (PDF) |
1311
//+------------------------------------------------------------------+

vsts-extension/CompileMql5Task/Include/Math/Stat/Cauchy.mqh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
//| Copyright 2016-2017, MetaQuotes Software Corp. |
44
//| https://www.mql5.com |
55
//+------------------------------------------------------------------+
6-
#property copyright "Copyright 2016-2017, MetaQuotes Software Corp."
7-
#property link "https://www.mql5.com"
8-
96
#include "Math.mqh"
7+
108
//+------------------------------------------------------------------+
119
//| Cauchy density function (PDF) |
1210
//+------------------------------------------------------------------+

vsts-extension/CompileMql5Task/Include/Math/Stat/ChiSquare.mqh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
//| Copyright 2016-2017, MetaQuotes Software Corp. |
44
//| https://www.mql5.com |
55
//+------------------------------------------------------------------+
6-
#property copyright "Copyright 2016-2017, MetaQuotes Software Corp."
7-
#property link "https://www.mql5.com"
8-
96
#include "Math.mqh"
107
#include "Gamma.mqh"
8+
119
//+------------------------------------------------------------------+
1210
//| Chi-Square density function (PDF) |
1311
//+------------------------------------------------------------------+

vsts-extension/CompileMql5Task/Include/Math/Stat/Exponential.mqh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
//| Copyright 2016-2017, MetaQuotes Software Corp. |
44
//| https://www.mql5.com |
55
//+------------------------------------------------------------------+
6-
#property copyright "Copyright 2016-2017, MetaQuotes Software Corp."
7-
#property link "https://www.mql5.com"
8-
96
#include "Math.mqh"
7+
108
//+------------------------------------------------------------------+
119
//| Exponential density function (PDF) |
1210
//+------------------------------------------------------------------+

vsts-extension/CompileMql5Task/Include/Math/Stat/F.mqh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
//| Copyright 2016-2017, MetaQuotes Software Corp. |
44
//| https://www.mql5.com |
55
//+------------------------------------------------------------------+
6-
#property copyright "Copyright 2016-2017, MetaQuotes Software Corp."
7-
#property link "https://www.mql5.com"
8-
96
#include "Math.mqh"
107
#include "Beta.mqh"
118
#include "ChiSquare.mqh"
9+
1210
//+------------------------------------------------------------------+
1311
//| F-density function (PDF) |
1412
//+------------------------------------------------------------------+

0 commit comments

Comments
 (0)