Skip to content

Commit dfb88c4

Browse files
committed
Updating to 5.00 build 2650 09 Oct 2020
1 parent 942a52b commit dfb88c4

File tree

6 files changed

+22
-5
lines changed

6 files changed

+22
-5
lines changed

engine/metaeditor64.exe

5.17 MB
Binary file not shown.

vsts-extension/CompileMql5Task/Include/Math/Alglib/complex.mqh

+15-2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public:
5353
complex Sub(const complex &lhs,const complex &rhs);
5454
complex Mul(const complex &lhs,const complex &rhs);
5555
complex Div(const complex &lhs,const complex &rhs);
56+
complex Conjugate(void);
5657
//--- overloading
5758
void operator=(const double rhs);
5859
void operator=(const complex &rhs);
@@ -115,7 +116,8 @@ void complex::Copy(const complex &rhs)
115116
bool complex::Eq(const complex &lhs,const complex &rhs)
116117
{
117118
//--- comparison
118-
if(lhs.re==rhs.re && lhs.im==rhs.im) return(true);
119+
if(lhs.re==rhs.re && lhs.im==rhs.im)
120+
return(true);
119121
//--- numbers are not equal
120122
return(false);
121123
}
@@ -125,7 +127,8 @@ bool complex::Eq(const complex &lhs,const complex &rhs)
125127
bool complex::NotEq(const complex &lhs,const complex &rhs)
126128
{
127129
//--- comparison
128-
if(lhs.re!=rhs.re || lhs.im!=rhs.im) return(true);
130+
if(lhs.re!=rhs.re || lhs.im!=rhs.im)
131+
return(true);
129132
//--- numbers are equal
130133
return(false);
131134
}
@@ -199,6 +202,16 @@ complex complex::Div(const complex &lhs,const complex &rhs)
199202
return(res);
200203
}
201204
//+------------------------------------------------------------------+
205+
//| Conjugate |
206+
//+------------------------------------------------------------------+
207+
complex complex::Conjugate(void)
208+
{
209+
//--- conjugate
210+
complex res(re,-im);
211+
//--- return result
212+
return res;
213+
}
214+
//+------------------------------------------------------------------+
202215
//| Overloading (=) |
203216
//+------------------------------------------------------------------+
204217
void complex::operator=(const double rhs)

vsts-extension/CompileMql5Task/Include/Trade/Trade.mqh

+4
Original file line numberDiff line numberDiff line change
@@ -725,9 +725,13 @@ bool CTrade::OrderModify(const ulong ticket,const double price,const double sl,c
725725
//--- check stopped
726726
if(IsStopped(__FUNCTION__))
727727
return(false);
728+
//--- check order existence
729+
if(!OrderSelect(ticket))
730+
return(false);
728731
//--- clean
729732
ClearStructures();
730733
//--- setting request
734+
m_request.symbol =OrderGetString(ORDER_SYMBOL);
731735
m_request.action =TRADE_ACTION_MODIFY;
732736
m_request.magic =m_magic;
733737
m_request.order =ticket;

vsts-extension/CompileMql5Task/Include/WinAPI/winbase.mqh

+1-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ uint GetPrivateProfileSectionNamesW(string return_buffer,uint
616616
uint GetPrivateProfileSectionW(const string app_name,string returned_string,uint size,const string file_name);
617617
uint GetPrivateProfileStringW(const string app_name,const string key_name,const string default_value,string returned_string,uint size,const string file_name);
618618
int GetPrivateProfileStructW(const string section,const string key,PVOID struct_obj,uint size_struct,const string file);
619-
int GetProcessAffinityMask(HANDLE process,uint &process_affinity_mask,uint &system_affinity_mask);
619+
int GetProcessAffinityMask(HANDLE process,ulong &process_affinity_mask,ulong &system_affinity_mask);
620620
int GetProcessDEPPolicy(HANDLE process,uint &flags,int &permanent);
621621
int GetProcessIoCounters(HANDLE process,IO_COUNTERS &io_counters);
622622
int GetProcessWorkingSetSize(HANDLE process,ulong &minimum_working_set_size,ulong &maximum_working_set_size);

vsts-extension/CompileMql5Task/task.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"version": {
1313
"Major": 0,
1414
"Minor": 1,
15-
"Patch": 15
15+
"Patch": 16
1616
},
1717
"minimumAgentVersion": "1.95.0",
1818
"instanceNameFormat": "Compile $(pathToSources)",

vsts-extension/vss-extension.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifestVersion": 1,
33
"id": "stpatrick-tfs-build-tasks-mql5",
44
"name": "MetaTrader 5 build tasks",
5-
"version": "0.1.15",
5+
"version": "0.1.16",
66
"publisher": "philip-patrick",
77
"targets": [
88
{

0 commit comments

Comments
 (0)