Forced array clearing in MT5? - page 5

 
And I believe that in algotrading, the pursuit of speed is more important than the perks. And it is very good that MQ has realised this and implemented it.
 
Igor Makanu:

5. alas, even connoisseurs of MQL5 use questionable constructions.... Let's say a certain base of crutches saved in the transition from MT4 is still in place

So such "connoisseurs"...

 
Alexey Viktorov:

So such "connoisseurs"...

Open kodobase, there are enough examples on the forum from active participants, alas, to be lazy is the lot of good programmers, few allow themselves the daily edits to their code, which is outdated.

;)

PS: a couple of days ago I got used to working with MT5 indicators again, I decided to rewrite the indicator, that was discussed in the topic for MT5 beginners, I rewrote it from scratch, compared it to the one that was helped me in the topic, it looks like different codes, and yesterday I accidentally found this indicator in QR that is 98% similar to my own creation

the indicator from QBhttps://www.mql5.com/ru/code/23142 and mine (I attached it)..., some people are definitely of the same mind.... me ))))

Perfect trend line
Perfect trend line
  • www.mql5.com
Индикатор доступен в интернете под разными именами (в большинстве своем это версии для MetaTrader 4). Он основан на самом высоком максимуме и самом низком минимуме на двух разных периодах. Тренд определяется на основе этих двух значений. В качестве сигналов можно использовать изменения закрытия. Channel design...
Files:
 
Igor Makanu:

...

Suppose the Expert Advisor accesses a non-existent array index and gets something suitable to continue its work. Then, based on this "something appropriate" he makes a transaction. Then another one, and another one, and so on, until the free funds run out. That is the end of the story. And if, in case of a critical error, it would not have completed its work, there would be no such consequences. Hence the moral: financial software must be completely intolerant of all kinds of uncertainties, even at the expense of user convenience.

 
Vasiliy Sokolov:

Suppose the Expert Advisor accesses a non-existent array index and gets something suitable to continue its work. Then based on this "something suitable" he makes a transaction. Then another one, and another one, and so on, until the free funds run out. That is the end of the story. And if, in the case of a critical error, it had ended, there would have been no such consequences. Hence the moral: financial software must be completely intolerant of all kinds of uncertainties, even at the expense of user convenience.

+
 
Igor Makanu:

sat down again a couple of days ago to deal with indicators under MT5...

Do away with indicators and bars completely. I don't understand why people cling to them. They are not profitable in the Market.

Forum on trading, automated trading systems & strategy testing

Libraries: Tester

Vladimir Pastushak, 2019.03.02 19:21

No need...

They come here for money printing machines ... Professionals who trade by themselves and looking for handy panels 1 to 1000 ... I know what I'm talking about ...

In freelancing it's probably the same. Why write for yourself? There are tics. I want a quick backtest - make a custom one out of ticks and everything flies fast and as accurate as you want it to be.

 
Vasiliy Sokolov:

Suppose the Expert Advisor accesses a non-existent array index and gets something suitable to continue its work. Then, based on this "something suitable", he makes a transaction. Then another one, and another one, and so on, until the free funds run out. That is the end of the story. And if, in case of a critical error, it would not have completed its work, there would be no such consequences. Hence the moral: financial software must be completely intolerant of all kinds of uncertainties, even at the expense of user convenience.

+++
 
fxsaber:

Do away with indicators and bars completely. I don't understand why people cling to them. In Market they are not profitable

In freelancing, it's probably the same. Why bother writing them for yourself? There are tics. I want a quick backtest - make a custom one from the ticks and everything flies fast and accurate as far as you set it.

I have come to this too. Only it is strained by long downloading of all ticks.
Although, you have once downloaded them, shaped them into whatever you need and enjoy your life.
 
Vasiliy Sokolov:

You're undoubtedly right, but I mean a little differently, that some small work (like TC's problem) MQL could do, and all the problems are mostly with arrays, you need a precompiler directive #property arrayforuser ))))

fxsaber:

Do away with indicators and bars completely. I don't understand why people cling to them. In Market they are not profitable.

The same is likely in freelancing. Why bother writing them for yourself? There are tics. I want a quick backtest - make a custom one out of ticks and everything flies fast and accurate as far as you set it.

I have no time to study MQL5 and check my ideas, as they say everything in good time.

 
Igor Makanu:

I have no time to study MQL5 and check my ideas, as they say everything in its time, the indicator is my training in working with MQL5

I will tell you a secret: I cannot write indicators for MT4/5. Feel free to skip this section of MQL5. It will not do you any good, only make you losses in every way.