Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1588

 
Mihail Matkovskij:

Limiting code height and scrolling will help.

Agreed! Better yet, a spoiler
 
Mihail Matkovskij:

Limiting code height and scrolling will help.

А где это по высоте? уже есть что ли?
Хорошая мысль однако)))





















НЕ нашел(())
 
MakarFX:


Thank you!

The opening of trades is working.

But the OrdersClose function has stopped working, and it is very much needed.

Lot On Martin is multiplied only up to position #4 (i.e. four times) and then reduced to the starting position and so on in a circle.

 
законопослушный гражданин:

Thank you!

The opening of trades is working.

But the OrdersClose function has stopped working, and it is very much needed.

Lot On Martin is multiplied only up to position #4 (i.e. four times) and then reduced to the starting one and so on in a circle.

I specifically wrote in the code

   MaxMartinLot=dLots*MathPow(K_Martin,3); //"3" - кол-во умножений Мартина

as many multiplications as you need.

The code you gave doesn't contain OrdersClose!

 
MakarFX:

I specifically wrote in the code

as many multiplications as you need.

The code you gave me doesn't have OrdersClose!

Yes, there is.

That's not the point! The main thing is that there's an analogue, and that's the point!

I'll try to change it.

Thanks.

 
MakarFX:

I specifically wrote in the code

as many multiplications as you need.

There's no OrdersClose in the code you gave me!

I changed it to 5 and then to 8. It still only multiplies three times.

Are you sure you only need to change one place?

 
законопослушный гражданин:

changed to 5, then to 8 did not help. still only multiplies three times.

Are you sure it only needs to be changed in one place?

multiplies only after a loss
 
законопослушный гражданин:

I do.

Well, that's not the point! The main thing is there's a counterpart, and that's the main thing!

I'll see if I can change it.

Thank you.

the code you attached yesterday has NO function to close orders

 
MakarFX:
multiplies only after a loss

here are my results. 13 losses in a row

Files:
63gi9.txt  3 kb
 
законопослушный гражданин:

here are my results. 13 losses in a row.

I bet 5 and this is the result.

1       2021.08.02 00:10        sell    1       0.01    1.39015 0.00000 0.00000 0.00    2000.00
2       2021.08.02 00:10        modify  1       0.01    1.39015 1.39315 1.38715 0.00    2000.00
3       2021.08.02 11:24        s/l     1       0.01    1.39315 1.39315 1.38715 -3.00   1997.00
4       2021.08.02 11:24        buy     2       0.01    1.39315 0.00000 0.00000 0.00    1997.00
5       2021.08.02 11:24        modify  2       0.01    1.39315 1.39015 1.39615 0.00    1997.00
6       2021.08.02 13:57        s/l     2       0.01    1.39015 1.39015 1.39615 -3.00   1994.00
7       2021.08.02 14:13        buy     3       0.02    1.39046 0.00000 0.00000 0.00    1994.00
8       2021.08.02 14:13        modify  3       0.02    1.39046 1.38746 1.39346 0.00    1994.00
9       2021.08.03 13:59        t/p     3       0.02    1.39346 1.38746 1.39346 5.90    1999.90
10      2021.08.03 14:35        sell    4       0.04    1.39304 0.00000 0.00000 0.00    1999.90
11      2021.08.03 14:35        modify  4       0.04    1.39304 1.39604 1.39004 0.00    1999.90
12      2021.08.03 16:38        t/p     4       0.04    1.39004 1.39604 1.39004 12.00   2011.90
13      2021.08.03 17:20        buy     5       0.08    1.39056 0.00000 0.00000 0.00    2011.90
14      2021.08.03 17:20        modify  5       0.08    1.39056 1.38756 1.39356 0.00    2011.90
15      2021.08.04 09:48        t/p     5       0.08    1.39356 1.38756 1.39356 23.60   2035.50
16      2021.08.04 10:15        sell    6       0.16    1.39318 0.00000 0.00000 0.00    2035.50
17      2021.08.04 10:15        modify  6       0.16    1.39318 1.39618 1.39018 0.00    2035.50
18      2021.08.04 17:31        t/p     6       0.16    1.39018 1.39618 1.39018 48.00   2083.50
19      2021.08.04 18:40        buy     7       0.32    1.39079 0.00000 0.00000 0.00    2083.50
20      2021.08.04 18:40        modify  7       0.32    1.39079 1.38779 1.39379 0.00    2083.50
21      2021.08.05 05:49        s/l     7       0.32    1.38779 1.38779 1.39379 -100.80 1982.70
22      2021.08.05 06:05        buy     8       0.16    1.38868 0.00000 0.00000 0.00    1982.70
23      2021.08.05 06:05        modify  8       0.16    1.38868 1.38568 1.39168 0.00    1982.70
24      2021.08.05 10:19        t/p     8       0.16    1.39168 1.38568 1.39168 48.00   2030.70
25      2021.08.05 11:15        sell    9       0.08    1.39143 0.00000 0.00000 0.00    2030.70
26      2021.08.05 11:15        modify  9       0.08    1.39143 1.39443 1.38843 0.00    2030.70
27      2021.08.05 14:05        s/l     9       0.08    1.39443 1.39443 1.38843 -24.00  2006.70
28      2021.08.05 14:05        buy     10      0.04    1.39443 0.00000 0.00000 0.00    2006.70
29      2021.08.05 14:05        modify  10      0.04    1.39443 1.39143 1.39743 0.00    2006.70
30      2021.08.05 14:11        s/l     10      0.04    1.39143 1.39143 1.39743 -12.00  1994.70
31      2021.08.05 14:15        sell    11      0.02    1.39109 0.00000 0.00000 0.00    1994.70
32      2021.08.05 14:15        modify  11      0.02    1.39109 1.39409 1.38809 0.00    1994.70
33      2021.08.05 17:14        s/l     11      0.02    1.39409 1.39409 1.38809 -6.00   1988.70
34      2021.08.05 17:14        buy     12      0.01    1.39410 0.00000 0.00000 0.00    1988.70
35      2021.08.05 17:14        modify  12      0.01    1.39410 1.39110 1.39710 0.00    1988.70
36      2021.08.06 10:10        s/l     12      0.01    1.39110 1.39110 1.39710 -3.05   1985.65
37      2021.08.06 10:10        sell    13      0.01    1.39109 0.00000 0.00000 0.00    1985.65
38      2021.08.06 10:10        modify  13      0.01    1.39109 1.39409 1.38809 0.00    1985.65
39      2021.08.06 17:02        t/p     13      0.01    1.38809 1.39409 1.38809 3.00    1988.65
40      2021.08.06 17:50        sell    14      0.02    1.38717 0.00000 0.00000 0.00    1988.65
41      2021.08.06 17:50        modify  14      0.02    1.38717 1.39017 1.38417 0.00    1988.65
42      2021.08.06 23:54        close at stop   14      0.02    1.38741 1.39017 1.38417 -0.48   1988.17