Hi guys ... is there such a thing as an MQL4 advanced(?) book on site?

 

I've been working away learning mql4 for a while now. prob should be mql5 but anyhow......
whilst getting on ok i've become tangled up with trying to pass an array to a function.

I've been looking at Rosh's work in his article 'templates a spot to stand on'
...an excellent article!! ... but i'm having trouble understanding this bit of code..

//+------------------------------------------------------------------+
//| It prepares the array of "friendly" orders |
//+------------------------------------------------------------------+
void PrepareTickets(double & arrayTickets[][9], string & comm[][2],int MN)
{
int count=0; // filling counter

its the first bit of a function, thats ok, im mostly ok with your basic function. Where i get lost is ...

double & arrayTickets[][9]

Rosh seems to be passing an array to his function and in particular is using the '&' character

I cannot for the life of me find out in the MQL4 book where it details how to do the above and how and when this
'&' is used.

further to that several other articles on this site seem to use mql4 in a far more advanced way than the online book details. t
his leads me to think there may be a more detailed (advanced) mql4 book?

Therefore I'd be most grateful if anyone could shed some light on:

1. what exactly is happening in the function above (including the use of the '&' character) and how can i pass arrays to afunction?
2. If there is a more advanced Mql4 book and how / where i might obtain a copy?

I'd be most grateful

kind regards

chael







 
See here -> https://docs.mql4.com/basis/variables/formal

The book does not contain all information. Technical details about each and every function/aspect of MQL4 can be found in the documentation -> https://docs.mql4.com//. The forum, articles and code base are a huge source of information as well... Search!
 
gordon wrote >>
See here -> https://docs.mql4.com/basis/variables/formal

The book does not contain all information. Technical details about each and every function/aspect of MQL4 can be found in the documentation -> https://docs.mql4.com//. The forum, articles and code base are a huge source of information as well... Search!


hey gordon

many thanks for your speedy reply.. that will sort me for now with the formal / variables thing.

and good to know the 'docs' is the definitive source ... i had searched for ages with no result but thought the 'book' was the main source. it's good to know the exact
place to search now .. ill just have to start working my way though it! lol

many thanks & kind regards

chael
 
It's the same for all programming languages... There are book/s that teach the language and there's a reference that just gives a technical 'spec' of the language (in this case it's called the 'documentation'). It's much easier to learn the language from a book, but once u know it u should mostly refer to the documentation for info.

Another good tool I forgot to mention is CB's alphabetic index of functions: https://www.mql5.com/en/forum/122679.
 
gordon wrote >>
It's the same for all programming languages... There are book/s that teach the language and there's a reference that just gives a technical 'spec' of the language (in this case it's called the 'documentation'). It's much easier to learn the language from a book, but once u know it u should mostly refer to the documentation for info.

Another good tool I forgot to mention is CB's alphabetic index of functions: https://www.mql5.com/en/forum/122679.


gordon

much appreciated, im sure you remember what it's like ... searching around and around....lol
every little helps. cheers!

chael
 
 
FourX wrote >>
https://forum.mql4.com/30526
Automated Trading Systems in MQL for MetaTrader 4


many thanks for that fourX :-)
 
MQL Tutorial by Coders` guru in PDF

 
FourX wrote >>
https://forum.mql4.com/30526
Automated Trading Systems in MQL for MetaTrader 4


Amazon is so silly sometimes, lol at the editorial review for the book you linked!

Editorial Reviews

Product Description

360,000 years ago, when intelligent life first appeared on Earth, there came a Soul master to watch over forthcoming events. Much later, 2,050 years ago, during the time of Cleopatra, a Roman soldier encounter's this Soul Master and writes The Soul Master Scrolls. The 45 passages and 13 Prophecies scribed on these Ancient Scrolls question Genesis and the Bible itself.
 
FourX:
https://forum.mql4.com/30526
Automated Trading Systems in MQL for MetaTrader 4

I did buy this book. I only bought it because I have a hard time reading on my monitor, especially when using the MQL4 Editor. This book is quite basic and lacks depth. The OnLine book and documentation here are significantly better than this printed book.

Unless you really need this book for some reason, like putting it under your pillow at night to absorb it through Astral connections! LoL (< 8) This hasn't worked for me so far. I'd be interested in knowing if it does for anyone else. Anyone that can do that, can do 'who knows what .. . . . '? (< 8)

Otherwise save your sheckels and 'donate them' on the ForEx to someone that has got this figured out and is amoung the small group of traders that take money from most of us. If you are in that small, select and prosperous group, so much the better! But if you need this book, it is not likely that you are.... YET! Go for it! (< 8)