Skip to content

Commit f071d4c

Browse files
authored
Merge pull request #7 from erlonfs/develop
Renames and replaces
2 parents 14f79ef + eba4d58 commit f071d4c

File tree

2 files changed

+83
-86
lines changed

2 files changed

+83
-86
lines changed

Include/Robots/Benchmark.mqh

Lines changed: 82 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -13,90 +13,87 @@
1313

1414
class Benchmark : public Base
1515
{
16-
private:
17-
//Price
18-
MqlRates _rates[];
19-
ENUM_TIMEFRAMES _period;
20-
21-
//Estrategia
22-
double _maxima;
23-
double _minima;
24-
25-
//Grafico
26-
color _corBuy;
27-
color _corSell;
28-
color _cor;
29-
bool _isDesenhar;
30-
bool _isEnviarParaTras;
31-
bool _isPreencher;
32-
33-
void Draw()
34-
{
35-
if (!_isDesenhar) {
36-
return;
37-
}
38-
39-
//Drawn something
40-
41-
}
42-
43-
bool GetBuffers() {
44-
45-
//Get Buffers
46-
47-
return true;
48-
}
49-
50-
public:
51-
52-
void SetColor(color cor) {
53-
_cor = cor;
54-
}
55-
56-
void SetIsDesenhar(bool isDesenhar) {
57-
_isDesenhar = isDesenhar;
58-
}
59-
60-
void SetIsEnviarParaTras(bool isEnviarParaTras) {
61-
_isEnviarParaTras = isEnviarParaTras;
62-
}
63-
64-
void SetIsPreencher(bool isPreencher) {
65-
_isPreencher = isPreencher;
66-
}
67-
68-
void SetColorBuy(color cor) {
69-
_corBuy = cor;
70-
};
71-
72-
void SetColorSell(color cor) {
73-
_corSell = cor;
74-
};
75-
76-
void Load() {
77-
78-
};
79-
80-
void Execute() {
81-
82-
RefreshLastPrice();
83-
84-
if (HasPositionOpen()) {
85-
ManagePosition();
86-
return;
87-
}
88-
89-
if (!Validate()) {
90-
return;
91-
}
92-
93-
if (GetBuffers()) {
94-
95-
ShowInfo();
96-
97-
}
98-
99-
};
100-
16+
private:
17+
18+
//Estrategia
19+
MqlRates _rates[];
20+
ENUM_TIMEFRAMES _period;
21+
double _maxima;
22+
double _minima;
23+
24+
//UI
25+
color _corBuy;
26+
color _corSell;
27+
color _cor;
28+
bool _isDesenhar;
29+
bool _isEnviarParaTras;
30+
bool _isPreencher;
31+
32+
void Draw()
33+
{
34+
if (!_isDesenhar) {
35+
return;
36+
}
37+
38+
//Drawn something
39+
40+
}
41+
42+
bool GetBuffers() {
43+
44+
//Get Buffers
45+
46+
return true;
47+
}
48+
49+
public:
50+
51+
void SetColor(color cor) {
52+
_cor = cor;
53+
}
54+
55+
void SetIsDesenhar(bool isDesenhar) {
56+
_isDesenhar = isDesenhar;
57+
}
58+
59+
void SetIsEnviarParaTras(bool isEnviarParaTras) {
60+
_isEnviarParaTras = isEnviarParaTras;
61+
}
62+
63+
void SetIsPreencher(bool isPreencher) {
64+
_isPreencher = isPreencher;
65+
}
66+
67+
void SetColorBuy(color cor) {
68+
_corBuy = cor;
69+
};
70+
71+
void SetColorSell(color cor) {
72+
_corSell = cor;
73+
};
74+
75+
void Load() {
76+
77+
};
78+
79+
void Execute() {
80+
81+
RefreshLastPrice();
82+
83+
if (HasPositionOpen()) {
84+
ManagePosition();
85+
return;
86+
}
87+
88+
if (!Validate()) {
89+
return;
90+
}
91+
92+
if (GetBuffers()) {
93+
ShowInfo();
94+
95+
}
96+
97+
};
10198
};
10299

Include/Robots/TheLineOfDivision.mqh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public:
312312
void Execute() {
313313

314314
RefreshLastPrice();
315-
315+
316316
if (HasPositionOpen()) {
317317
ManagePosition();
318318
return;

0 commit comments

Comments
 (0)