There is an interesting trading idea. Help me find errors in the code (mql4). - page 14

 
Sergey Gritsay:

I am not familiar with the fund yet, if you could explain what these reopenings are for in more detail. I see from the history that the positions reopen on their own during clearing

2016.03.11 13:01:16 5617377 GOLD-3.16 sell out 1.00 1 263,9
0,00 0,00 1 011,01 101 562,44 [variation margin close]
2016.03.11 13:01:16 5617378 GOLD-3.16 buy in 1.00 1 263,9
0,00 0,00 0,00 101 562,44 [variation margin open]
2016.03.11 13:01:16 5617461 Si-6.16 buy out 1.00 71 819
0,00 0,00 176,00 101 738,44 [variation margin close]
2016.03.11 13:01:16 5617462 Si-6.16 sell in 1.00 71 819
0,00 0,00 0,00 101 738,44 [variation margin open]
2016.03.11 13:01:16 5617773 SILV-3.16 sell out 1.00 15,54
0,00 0,00 2 316,89 104 055,33 [variation margin close]
2016.03.11 13:01:16 5617774 SILV-3.16 buy in 1.00 15,54
0,00 0,00 0,00 104 055,33 [variation margin open]
2016.03.11 13:01:16 5617791 LKOH-3.16 sell out 1.00 26 782
0,00 0,00 - 389,00 103 666,33 [variation margin close]
2016.03.11 13:01:16 5617792 LKOH-3.16 buy in 1.00 26 782
0,00 0,00 0,00 103 666,33 [variation margin open]

If it's simple, the price calculation before and after the clearing is based on their index calculation in dollars, yen, and some other shit! The fact is if you don't get out you can become a millionaire overnight, or you can give your flat to bailiffs.)

 
Alexander Antoshkin:

If you just pay the price before and after clearing, it's based on their index calculation in dollars, yen, or some other shit! But the fact is that you can become a millionaire overnight, or you can give your flat to bailiffs.)

In principle, it is not difficult to add these parameters.

 
Sergey Gritsay:

In principle adding these parameters is not difficult, I will try at the weekend

I have it sort of built my own, but a quick look at the guys work on the timer ! this is the first https://www.mql5.com/ru/users/c-4 I've read and still do not understand how it works ,,,,,,,,

although i don't understand your code either, i'm no librarian !

and i also saw a timer somewhere ,,,, i need to remember

 
Alexander Antoshkin:

I kinda have it built my way, but kinda have a quick look at the guys work on the timer ! this is the first https://www.mql5.com/ru/users/c-4 I've read and haven't figured out how it works yet ,,,,,,,,

although i don't understand your code either, i'm no librarian !

and i also saw a timer somewhere ,,,, i need to remember

i have a timer of my own making, i'll look into it
 
Sergey Gritsay:
I have a timer of my own design, I'll look into it
I'm browsing this thread on FORTS https://www.mql5.com/ru/forum/67298/page2 it's all a bit complicated - there are many pitfalls, but they say it's easy, you just have to start... I can even make good and substantial profits, but I can probably also lose a lot... Although in America, everything was growing for 7 years, people made good money on all these shares, while we have only declines and weak rises - and the stock market has probably lost 2 -3% and so on... only Sber and that's it, of course inflation will be rampant... if it's close to zero, then ours will be 1000 times higher... that's the 2% they're living on... our rulers and bankers...)))
ФОРТС: В помощь начинающим
ФОРТС: В помощь начинающим
  • www.mql5.com
Установка отложенного ордера командой OrderSend(). - Страница 2 - Категория: биржевой трейдинг
 

The glitch can be divided into two eyes, one is trending and the other one is getting a better idea of where the stops have moved away from the tops and then we work on the flat,

We're going to work on the small frames, not like goo's doing on 4, .......................... we dont go above the m5 frame ,,.......... why is that!

Because the signal formation from the flat to the trend goes on the small frames of m1-ticks, etc. I should catch the extreme entry there

I also realized that if the EA can resist the last one in the test, it will also be stable on medium term.

now about manipulation triggers, i.e. how to change the trend / flat!

1stop loss

2 flat

3 trend target

4 exit by trawl

here's a good trigger for the fantasy.................

that's what spurred me on and i'm gonna try it out

here are my ideas to work on as much as possible

 
Alexander Antoshkin:

The glitch can be divided into two eyes, one is trending and the other one is getting a better idea of where the stops have moved away from the tops and then we work on the flat,

We're going to work on the small frames, not like goo's doing on 4, .......................... we dont go above the m5 frame ,,.......... why is that!

Because the signal formation from the flat to the trend goes on the small frames of m1-ticks, etc. I should catch the extreme entry there

I also realized that if the EA can resist the last one in the test, it will also be stable on medium term.

now about manipulation triggers, i.e. how to change the trend / flat!

1stop loss

2 flat

3 trend target

4 exit by trawl

here's a good trigger for the fantasy.................

that's what spurred me on and i'm gonna try it out

here are my ideas to work on as much as possible

I remember in the beginning I was good at M5, but then I read some smart trading books and that was it... I don't know how to fly...))
 

on history the result is positive... in trade so far... -1940... not bad for a cartoon...

GOLD chart, M15, 2016.03.11 18:39 UTC, MetaQuotes Software Corp.

 
Tweaked the bar mode. Added trend indicator THV4 to the mt5 version
 

Please advise how to fix unidentified variable error, I'm not very good at MQL4


// lot calculation

if(MarketInfo(Symbol(),MODE_LOTSTEP)==0.01) int digit=2;

if(MarketInfo(Symbol(),MODE_LOTSTEP)==0.10) int digit=1;

if(MarketInfo(Symbol(),MODE_LOTSTEP)==1.00) int digit=0;

double _lot =NormalizeDouble(lot* MathPow(koef,totalO(-1,key)),digit);Here, it does not see the entry of this variable before (

double min=MarketInfo(Symbol(),MODE_MINLOT);

if(_lot<min)_lot=min;