c,c++,java,.net which language is better to learn to code

 
plzz tell me c,c++,java,.net which language is better to learn to code.
 
 
vssshiva:
plzz tell me c,c++,java,.net which language is better to learn to code.
Mql4 is based on C but simpler. Just learn mql4.
 

Hi,

I believe it depends on what exactly you want to achieve. If you have and trade an efficient model, you dont need to learn any languages, you can hire an expert whom is going to code for you. Reading forums, you have a lot of them (the vast majority, reliable). As a matter of fact it also depends on your trading skills!!!

You can start with some very simple algorithmic language, i started years ago with tradesation, I think nowadays pro real time is fairly accessible, (one would tell me if I am wrong) but essentially it will teach you the basic and more importantly will give you the fundamental approach required for trading purposes.

Then you can step up to higher programming language such as VBA and then, all the C-Lineage language would follow. Learning a language is a very very very very long road, it s not going to happen overnight. It is as complex or easy as learning a foreign language.

All the best and good luck.

 
If your goal is to program for mt4 just learn mql4 directly but for mt5 first learn and perfect your C++ then learn mql5. Basically all programing languages are derived from C++ which is an improved version of C. So id recomend you learn basic C++ then all other programing languages would be simpler to learn.
 
tonny:
Basically all programing languages are derived from C++ which is an improved version of C.

I realize this is hair-splitting, but just because a programming language resembles C/C++ or incorporates some/most of its functionality doesn't mean the programming language was derived from C. Basic is a perfect example: according to Wikipedia, it was created in 1964, several years before C was created at AT&T Bell Labs, so it wasn't derived from C (although, had Microsoft not revived and retooled the language, it would probably not be used much today). Pascal is another example; (again, according to Wikipedia) it was create just before or right around the time C was developed. Other more obscure examples that I have used (or used in college) that are still used today include: lisp, cobol, and fortran. While C++ may be a very popular programming language, it is not the only programming language, nor is it the grandfather of all other languages.

plzz tell me c,c++,java,.net which language is better to learn to code.

As to the OP's question, I think he/she first needs to determine the target operating system. If it is Windows, C++, C#, or Visual Basic would be good languages to learn. If linux (or some unix flavor), C++ is the way to go. In the Windows environment, I would recommend Visual Basic or C#.

 

And also C++. You gonna need C++ especially when creating dll. Just open your MT's sample folder > sub folder DLL sample.

:D

 
onewithzachy:

And also C++. You gonna need C++ especially when creating dll. Just open your MT's sample folder > sub folder DLL sample.

:D

Yer its best he learns C++ first then the rest would be easier.
 
Thirteen:

I realize this is hair-splitting, but just because a programming language resembles C/C++ or incorporates some/most of its functionality doesn't mean the programming language was derived from C. Basic is a perfect example: according to Wikipedia, it was created in 1964, several years before C was created at AT&T Bell Labs, so it wasn't derived from C (although, had Microsoft not revived and retooled the language, it would probably not be used much today). Pascal is another example; (again, according to Wikipedia) it was create just before or right around the time C was developed. Other more obscure examples that I have used (or used in college) that are still used today include: lisp, cobol, and fortran. While C++ may be a very popular programming language, it is not the only programming language, nor is it the grandfather of all other languages.

As to the OP's question, I think he/she first needs to determine the target operating system. If it is Windows, C++, C#, or Visual Basic would be good languages to learn. If linux (or some unix flavor), C++ is the way to go. In the Windows environment, I would recommend Visual Basic or C#.

My friend you dont need visual basic to code EAs.
 

tonny 2012.05.29 13:41
onewithzachy:

And also C++. You gonna need C++ especially when creating dll. Just open your MT's sample folder > sub folder DLL sample.

:D

Yer its best he learns C++ first then the rest would be easier.
Nope, he can learn it later. That's why I said "And also ...
 

C++ is not a good language for a beginner. It is the most complicated and most inconsistent programming language with the most pitfalls and traps ever created by mankind. It should be considered a crime to recommend it to newbies. Only expert programmers can master it and those who know it won't recommend it to anyone (those who recommend it don't know it). You also don't learn riding a bicycle at the age of 5 by immediately trying to drive a 320 horse power motorbike that has a broken gear transmission (needs two hands to change gears while driving 280km/h) and no brakes.

C++ involves too many technical details and crazy complications that do not help him in understanding the general concept of imperative programming, all these these details need to be completely understood before he can write even the simplest programs in C++ without continuous frustration and as a beginner he will be totally distracted from the actual goal of learning how to program.

If at the very beginning he is still struggling with understanding such essential concepts like understanding/controlling the flow of the program (if/else, for/while etc), function calls, function arguments, return values, local vs global variables it will NOT be helpful if he is additionally forced to fight with all the C++ specific overhead and seemingly cryptic concepts, misleading syntactic sugar, memory management, pointers, references, cryptic example code that he will find on the web that will raise even more questions instead of answering them because it might contain syntax that must seem totally alien to him (at his current stage of learning) and that will not really answer any of his actual questions that he has at this time.

Of course once he understands the very basic concepts that are common to all imperative languages and has some experience and has seen similar things in other languages already then he can easily start to explore all the complexities of C++ and will have a chance to understand how they work and what purpose they serve but NOT as an absolute beginner. The resulting frustration factor might easily exceed his tolerance level at this early point and totally ruin it.


Two suggestions to reach an early (important!) motivating sense of achievement:

(1) learn the language that you need now (mql4 or mql5) directly, it is much simpler than C++ and you can immediately have motivating results which is the most important thing at all!

(2) if you are not forced to have a working metatrader EA tomorrow and just want to generally learn some programming then start with a language that is easy for beginners and that can produce motivating results very early in the learning phase (important!) and use that to explore all the concepts (variables, control structures, functions, classes, objects, general strategies how to solve common little problems, strategies how to find errors in your code and many tricks that will later prove useful in any other programming language too, etc). Once you have done this then you can easily start with any other language you like, you will find it much easier, you will recognize most things that you have learned already and can use them and can concentrate on the differences only and deepen your knowledge by understanding why things are done in a certain way.

Reason: