Buffer overflows - page 3

To add comments, please log in or register
William Roeder
22329
William Roeder  
Nelson Wanyama: How come most other answers are not vague? Are you the only supplier?

The others are not vague because they guessed what you meant and answered one possible question.

Off the top of my head I came up with four (4) different possible meanings of your "possibility of buffer overflow" thus could not answer it without guessing.

Because of your snowflake rant and then your vague question I am ignoring you as requested

Drazen Penic
3184
Drazen Penic  
JC:

Given your profile history, I'm not sure why you're asking this.

There have been lots of these summaries over the years on this forum, so I won't repeat them. Instead, I'll cover - briefly - something which is much less commonly discussed.

MQL is fairly similar to languages such as C# or Java - similar syntax, classes and inheritance, managed memory access etc. But every modern language is two things: its syntax and, quite separately, its "framework" / "standard class library" / whatever you want to call it. Learning to write in C# is at least as much about learning the .NET Framework as it is about the syntax of the C# language. Similarly, there are the really quite separate topics of learning MQL syntax and then learning how to use the language to place trades, or draw objects on a chart etc.

The big, big surprise with MQL is that the language has classes and inheritance, but its "framework" doesn't make any use of them at all (for legacy reasons).

You might expect that the MQL environment would expose some sort of Orders collection, containing some sort of Order class which represents each open order with the broker. For example, you might expect to write code something like the following:

Completely wrong. When coming from another environment of an otherwise-comparable language, that's probably the biggest preconception which someone needs to throw out.

Instead, MQL has static "pools" of data, in effect arrays, which you loop through and then query using functions specific to that pool. For example, to enumerate pending orders in MQL5, you do the following:

  • Get a count of the orders using OrdersTotal()
  • Loop through to the total
  • Do OrderGetTicket() to retrieve the broker ticket number for the order at each array index N. This also makes that order the "context" for the following step...
  • Query properties of the currently-selected order using functions such as OrderGetDouble()
There are various semi-official libraries which do add to MQL the sort of class-based access outlined above, but they don't form part of the official language and its documentation. 


Nice answer.

Thank you very much for your effort.


Now, we only have to find someone who will benefit from this.

Some parts of the comparison are generalizations, some parts are too specific for someone without MQLx experience.

Basically, it's trivia you find important that does not help either experienced users or total newbies.

Finally, how much traders are here because of MQLx? I bet that more than 99% of users picked MTx because it's free, unlike other popular trading platforms.


Yes, I tried to be a bit sarcastic, because of the argument you used to justify the need for comparison.
Earlier this year I started with Dart. I read a few pretty detailed comparisons.  It was a nice read.
And a huge waste of time because I did not know much about Dart specifics, which I learned later, by going through documentation and examples.  

That's in general what I think about any similar comparison (languages, databases, frameworks, tools, ...). 

What we need on this forum is sort of dictatorship that StackOverflow has - delete repeated, silly, incomplete, vague, opinionated questions. It leads to high quality content.
Similar to broker and product discussion policy - forbidden.

If there is such a policy then any responsible moderator would immediately delete this thread, starting with this comment :-D

OK, this was my regular summer rambling and rant, I'm good until fall. 

Alain Verleyen
40774
Alain Verleyen  
Drazen Penic:
...

What we need on this forum is sort of dictatorship that StackOverflow has - delete repeated, silly, incomplete, vague, opinionated questions. It leads to high quality content.
Similar to broker and product discussion policy - forbidden.

If there is such a policy then any responsible moderator would immediately delete this thread, starting with this comment :-D

OK, this was my regular summer rambling and rant, I'm good until fall. 

I fully agree, but this will not happen. Moderators don't even have the possibility to merge a new topic into an existing one. Or to mark it as duplicate and close it.

The quality content on this forum is flooded in an ocean of mediocrity, and the Metaquotes policy is to keep it and to build automated tools to provide useless links on each posts and topics.

Keith Watford
Moderator
24169
Keith Watford  
Comments that do not relate to this topic, have been moved to "Off Topic Posts".
Keith Watford
Moderator
24169
Keith Watford  
JC:

Interesting choice of posts to leave, and to remove.

Not a choice and not interesting at all.

I moved the last 2 posts to remind posters to stay on topic.

I have better things to do with my time than to spend it all editing, deleting and moving posts.

JC
1701
JC  
Keith Watford:

I have better things to do with my time than to spend it all editing, deleting and moving posts.

I have a reasonably fertile mind, but I have no idea why you have decided that almost all posts from #8 onwards are on-topic, whereas the two which you have chosen to remove are off-topic... Or, rather I do have such an idea, but I've addressed that a couple of posts ago. I do at least have the distinction in this thread that the OP stepped in to thank me for my contribution, which I feel gives me a bit of licence to continue with the digressions which you haven't otherwise decided to purge.

Keith Watford
Moderator
24169
Keith Watford  
JC:

I have a reasonably fertile mind, but I have no idea why you have decided that almost all posts from #8 onwards are on-topic, whereas the two which you have chosen to remove are off-topic... Or, rather I do have such an idea, but I've addressed that a couple of posts ago. I do at least have the distinction in this thread that the OP stepped in to thank me for my contribution, which I feel gives me a bit of licence to continue with the digressions which you haven't otherwise decided to purge.

Strange that you quote my post

Keith Watford:

I moved the last 2 posts to remind posters to stay on topic.

I have better things to do with my time than to spend it all editing, deleting and moving posts.

Did you not understand it?

Alain Verleyen
40774
Alain Verleyen  
Keith Watford:

Strange that you quote my post

Did you not understand it?

JC is in babbling mode, don't worry

He meant most of the posts are not about "buffer overflows" though you allowed them (which is perfectly fine IMO).

Nelson Wanyama
962
Nelson Wanyama  
I love this forum😂
JC
1701
JC  
Nelson Wanyama:
I love this forum😂

Yeah, I was literally laughing out loud at the Stalinist way in which my posts have been deleted, but the moderator has kept his own posts where he denounces me for writing things which have now been removed from history. 

To add comments, please log in or register