Download MetaTrader 5
To add comments, please log in or register
Do you know that MQL5 is an object-oriented language?
Hoa Hoang Van
4371
Hoa Hoang Van 2014.03.27 07:49 

Dear all,

I have a problem while trying to translate AFL to MQL4.

Anyone here can help me code User Function which is similar to ValueWhen Function in Amibroker

Here it is: https://www.amibroker.com/guide/afl/afl_view.php?id=163

Thanks so much!

qjol
3243
qjol 2014.03.27 09:52  
show your code and someone will try to help you
Luciano Ola
996
Luciano Ola 2014.03.27 21:37  
hoanghoaht:

Dear all,

I have a problem while trying to translate AFL to MQL4.

Anyone here can help me code User Function which is similar to ValueWhen Function in Amibroker

Here it is: https://www.amibroker.com/guide/afl/afl_view.php?id=163

Thanks so much!


Most likely an if statement or caseswitch, take a look at the dynamics of both, I'm saying this because I read up on the definition of value when.
/
To add comments, please log in or register