forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Forum

Forex Software, Forex Strategies, Expert Advisors Generator

You are not logged in. Please login or register.


Forex Forum → Developers Forum → MQL - The Greatest Language Invented Ever !!

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 7

Topic: MQL - The Greatest Language Invented Ever !!

This is a question for the users that think FSB must be free!!

Can you guess what will return the following command:

string text = StringToLower("MyText");

My guess is that it will return "mytext".

Re: MQL - The Greatest Language Invented Ever !!

Free would be good if everyone donated a few $$ every month, however, from what I saw over the years, there were very few donations although there were a gazillion downloads.

Somehow using free software to earn an income will not work.

Even video games cost a lot of money!

My 'secret' goal is to push EA Studio until I can net 3000 pips per day....

Re: MQL - The Greatest Language Invented Ever !!

If you are curious what is the correct answer, it is: "true"

http://s31.postimg.org/uo3nphrkb/screenshot_1828.png

Re: MQL - The Greatest Language Invented Ever !!

If you are even more curious how MQL makes a text lowercase, the answer is:

   string text = "MyText";
   StringToLower(text);
   Print(text);

I'm programming from 30 years and today I lost 1 hour for searching a bug in my online data service API. However, the problem was in this "perfectly intuitive" code.

You have to be always suspicious when you see a programming language with commands that starts with a noun.

Re: MQL - The Greatest Language Invented Ever !!

Popov wrote:

If you are even more curious how MQL makes a text lowercase, the answer is:

   string text = "MyText";
   StringToLower(text);
   Print(text);

I'm programming from 30 years and today I lost 1 hour for searching a bug in my online data service API. However, the problem was in this "perfectly intuitive" code.

You have to be always suspicious when you see a programming language with commands that starts with a noun.

The worst is that you're probably used to a sane language like C# that does the intuitive action (Hell even the evil language js deals with uppercase/lowercase strings right.)  I looked up the function in their language guide when you first posted it and was like wtf?!

Re: MQL - The Greatest Language Invented Ever !!

yea MQL is something ....
special, but also documented.:)

StringToLower
Transforms all symbols of a selected string into lowercase.
bool  StringToLower(

   string&  string_var      // string to process

   );
Parameters
string_var
[in][out]  String.
Return Value
In case of success returns true, otherwise - false. To get the error code call GetLastError().

Re: MQL - The Greatest Language Invented Ever !!

I looked up the function in their language guide when you first posted it and was like wtf?!

I'm very surprised that it returns a boolean value. It looks like the MQL developers suppose that the function may fail !?!!!!

Posts: 7

Pages 1

You must login or register to post a reply

Forex Forum → Developers Forum → MQL - The Greatest Language Invented Ever !!

Similar topics in this forum