Skip to content

Commit e4da09a

Browse files
authored
Merge pull request #22 from erlonfs/develop
Develop
2 parents 893219e + a8ae9c7 commit e4da09a

File tree

3 files changed

+37
-28
lines changed

3 files changed

+37
-28
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ experts.dat
66
/Indicators
77
/Images
88
/Experts
9+
/Logs
910

1011
/Include/Experts/
1112
/Include/Arrays/

Include/Framework/Base.mqh

2.85 KB
Binary file not shown.

README.md

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,42 @@ Para comecar um novo projeto, pode se utilizar o exemplo base:
1818
[mt5-sample-robot](https://github.com/erlonfs/mt5-sample-robot)
1919

2020
```c
21-
#include <Trade\Trade.mqh>
22-
#include <Trade\PositionInfo.mqh>
23-
#include <Framework\Base.mqh>
24-
25-
class Sample : public Base
26-
{
27-
private:
28-
29-
MqlRates _rates[];
30-
ENUM_TIMEFRAMES _period;
31-
32-
public:
33-
34-
void Load()
35-
{
36-
//TODO
37-
};
38-
39-
void Execute() {
40-
41-
if(!Base::ExecuteBase()) return;
42-
43-
//Logic Here
44-
45-
Base::ShowInfo();
46-
47-
};
48-
};
21+
#include <Trade\Trade.mqh>
22+
#include <Trade\PositionInfo.mqh>
23+
#include <Framework\Base.mqh>
24+
25+
class Sample : public Base
26+
{
27+
private:
28+
29+
MqlRates _rates[];
30+
ENUM_TIMEFRAMES _period;
31+
32+
public:
33+
34+
void Load()
35+
{
36+
//TODO
37+
};
38+
39+
void Execute() {
40+
41+
if(!Base::ExecuteBase()) return;
42+
43+
//Logic Here
44+
45+
Base::ShowInfo();
46+
47+
};
48+
49+
void ExecuteOnTrade(){
50+
51+
Base::ExecuteOnTradeBase();
52+
53+
//TODO
54+
55+
};
56+
};
4957
```
5058

5159
Inicialmente o projeto foi feito para atender ao mercado de BMF, mais especificamente os mini-contratos

0 commit comments

Comments
 (0)