Programming guide / help files

 

Dear forum members

Nice meeting you all

I have a pretty simple question i guess
Where can i find help files that explains me all the functions or let me see how to use this language.
And what language is this specific? It looks like C but i'm not sure.
Examples of for example how to code an offline chart or live chart are welcome
How do i code an active bar with both bid and ask price.

Just a few examples of what i want to start learning.


Hope someone can help me on this

Many thanks in advance
DGRL

 

Hello welcome to MQL5.com

Please see here: https://www.mql5.com/files/pdf/mql5.pdf

And for many examples here: https://www.mql5.com/en/code
 

Hoi Marco,


Thanks for the reply and welcoming me
Is this also applicable for MT4?

Thanks in advance

 

Codebase yes but the reference is for MQL5.

In the case of MQL4 start here: https://book.mql4.com/

MQL4 Tutorial
MQL4 Tutorial
  • book.mql4.com
Nowadays, a personal computer became indispensable for everybody. The rapid development of Internet and performance of modern computers opened up new vistas in many fields of human activities. As early as ten years ago, the financial market trade was available only for banks and for a limited community of specialists. Today, anybody can join...
 
Marco vd Heijden:

Codebase yes but the reference is for MQL5.

In the case of MQL4 start here: https://book.mql4.com/

Thumbs up :-)

 
  1. If you place the cursor in thze editor on a function of MQL4 (or MAL5) and press F1 the reference opens right there.
  2. Here: https://www.mql5.com/en/docs/function_indices you'll find a alphabetic list of all functions with a short explanation.
    - It means you can search with your browser (Ctrl+f) for some sort of keywords.
    - But as there is a major update on the way this site is not yet up-to-date which means some functions exists but aren't listed here - be patient.
    - Despite it is for MQL5 many function do exist in the same way in MQL4 - but not the trading functions!

Documentation on MQL5: List of MQL5 Functions
Documentation on MQL5: List of MQL5 Functions
  • www.mql5.com
Reads from the file of the CSV type a string of one of the formats: "YYYY.MM.DD HH:MM:SS", "YYYY.MM.DD" or "HH:MM:SS" - and converts it into a datetime value
 

Thanks for all the help
I see i have a lot to remember (and learn)
I am familiar with coding but not this language
Lets see if i can manage to make an indicator for opening a simple offline chart based on the current one open whee you load the indicator in.
What i cant find yet is how to make an indicator that draws candles

I.E when making an offline history chart the bars also needs to be drawn and when using the refresh function to update the chart is should also draw bars on the fly (realtime)
Timelocal function might help me with this as well as fileflush i guess

Anyway wish me luck lol

Reason: