How to convert this recursive define to mq4 ?

Back to topics list To post a new topic, please log in or register
avatar
1
silverfall 2016.07.01 19:58
 

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.



avatar
13006
WHRoeder 2016.07.01 20:44 #
 
  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



Back to topics list  

To add comments, please log in or register