Proposal to the administration and local residents - page 5

 
Vladimir Pastushak:

The question for you is which code do you think is more correct ???

1

2

3

I am embarrassed to ask, what does "more correct code" mean ? :-)


Forum on trading, automated trading systems and testing trading strategies

Proposal to the admin and locals

Vladimir Pastushak, 2015.05.31 00:03

Why code for the sake of code ?

Programmers need reputation and rating to get good orders in freelancing.

Now you give a request and everyone who is lazy to respond, and how to understand the pro person or not, maybe I will choose the price available, but he will be dumb as a cork and bait me?

Expensive does not mean good .....

I've already written about articles, not every article is perfect...

And do you really think that the reputation is raised by such a lever as 'training'?)

Freelancing is different... there are three things that matter: the number of jobs completed, the price and the speed of execution... ask abolk. He's a specialist in the Freelance ranking system...

Yes abs.most customers are not going to learn MQL. They don't care about the training...

 
Dennis Kirichenko:

I'm embarrassed to ask what "more correct code" means ? :-)


And do you really think that reputation is raised by such a lever as "training" ? :-)

Freelancing works differently... There, three things are important: the number of jobs completed, the price and the speed of execution ... ask abolk. He's an expert in the freelance ranking system...

Yes abs.most customers are not going to learn MQL. They don't care about education.

I'm asking which is the right one, if you know, you won't get away with it.

I'm not suggesting, I'm suggesting, read carefully and thoughtfully....

Yes, that's why I don't recommend many people to go into freelancing for an order, because "the number of completed orders, price and speed of execution" is not a point of quality...

 
Владимир:

If I ask you to show me an example of code writing, say "How much time left until the end of the timeframe?" You're 100% guaranteed to tell meto fuck off

or to the work department. That's just for setting an example!

That's what fear and reluctance is all about. But the fingers are always spread out.


No way, they are very willing and not afraid at all :) See the example in the file. But this is an example, and a full-fledged device takes time to flesh out. Even if this feature is implemented in a dozen of different indicators, it is built in them and to take it out means to waste time. I won't waste my time not because I'm afraid of you, but because it has more important application for me. Would you believe me?
Files:
sdn4.mq4  2 kb
 
Vladimir Pastushak:

So I'm asking which is more correct, if you knew, you wouldn't get away with it....

I'm not suggesting, I suggested, read carefully and thoughtfully....

Voldemar, you read carefully ;-)

I asked you what you mean by "correct code". Was ist das?

 
Dennis Kirichenko:

Voldemar, you read it carefully ;-)

I asked you what you mean by "correct code". Was ist das?

You didn't ask me, you asked an abstract question, without addressing me....

"I'm embarrassed to ask, what does "more correct code" mean ? :-)"

 
Alexander Puzanov:

No way, they are very willing and not at all afraid :) See the example in the file. But this is an example, and a full-fledged device takes time to flesh out. Even if this feature is implemented in a dozen of different indicators, it is built into them and to take it out means to waste time. I won't waste my time not because I'm afraid of you, but because it has more important application for me. Would you believe me?

Thank you, but I've had this implemented for a long time. It was a figurative example.

But the fact that you responded with an example already suggests an openness to dialogue. That's a plus.

 
Владимир:

Don't worry. It's not my craft.

If I ask you to show me an example of code writing, say "How much time is left until the end of the timeframe?" You're 100% guaranteed to send meto the fuck off

or to the work department. That's just for setting an example!

That's what fear and reluctance is all about. But the fingers are always spread out.

//+----------------------------------------------------------------------------+
   datetime GetTimeLeft(string symbol, int timeframe) {return(60*timeframe+(iTime(symbol,timeframe,0)-TimeCurrent()));}
//+----------------------------------------------------------------------------+
 
Artyom Trishkin:

++

Turns out you can fit the code into one or two lines.

VOLDEMAR is right. There are all kinds of programmers.

I choose Artyom Trishkin.

I had this implementation.

datetime total-sec,total-min,h,m,s;
total-sec=Time[0]+Period()*60-TimeCurrent();
total-min= total-sec/60;
h= total-min/60;
m= total-min%60;
s= total-sec%60;

I'm writing for myself, so the variables are always in Cyrillic, so I don't have to write extra comments.

 

I join the question -- what sucks about the code in the first post?

About OOP. There's not just a lot of material, there's a ton of it. Just not on this site. And even here there is some. Some people are just too lazy to do a proper search and study.

 
Renat Fatkhullin:
We want to write a manual on MQL5 by ourselves, but we'll have to be brave enough to do it.

Renat, it seems to me that it would be more useful to write a textbook not on mql5, but on the general structure of exchanges, dealing, brokers and trading.

That is, it would be more fundamental, with a description of all market intermediaries and an explanation of"who is who".

I think that most people here (including myself) have more gaps and blank spots on this topic.

And knowledge is lacking, and explanatory information is nowhere to be found. I would like, as in that mql4 tutorial, "no water", less text - more meaning.

Futures volumes for MT:

About OOP. There is not simply a lot of material, but a whole lot of it. Just not on this site. And there is even a little bit of it here. Some people are just too lazy to do a proper search and study.

I think there will be enough of it here as well.

Reason: