How to convert this recursive define to mq4 ?

 

Hi

I'm new to mq4, I'm trying to convert this line of code(from TOS) to mq4.

int l = 20;

def lowbar = low == Lowest(low, l);

def h1= if lowbar then high else h1[1];


lowbar is just a bool value to check if current low equal to lowest low in given length.

I just don't know how to code the h1 part in mq4.

 
  1. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
  2. iLowest - Timeseries and Indicators Access - MQL4 Reference