Download MetaTrader 5

Function equivalent to ValueWhen in MQL4?

To add comments, please log in or register
Hoa Hoang Van
5977
Hoa Hoang Van  

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  
show your code and someone will try to help you
Luciano Ola
1011
Luciano Ola  
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