Download MetaTrader 5

How to convert this recursive define to mq4 ?

To add comments, please log in or register
silverfall 2016.07.01 17:58 


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.

whroeder1 2016.07.01 18: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

To add comments, please log in or register