Please please assist with this line

1
Hi all. I am developing a custom indicator biult off a few indicators and one of them is the 3-level-zz-semafor. I need to know if a semafor exits a within a range, say up to 5 candles back. As per below this statement looks at 5 candles back (5+i ). Is it possible to state a range within this statement OR must there be a separate buffer for each candle back i am searching for?

if(iCustom(NULL, PERIOD_CURRENT, "3-level-zz-semafor", 5, 13, 34, "1,3", "8,5", "21,12", 140, 141, 142, 5, 5+i) != 0 && iCustom(NULL, PERIOD_CURRENT, "3-level-zz-semafor", 5, 13, 34, "1,3", "8,5", "21,12", 140, 141, 142, 5, 5+i) != EMPTY_VALUE //3-level-zz-semafor is not equal to fixed value

Your assistance is much appreciated - Regards Deane


Who is online

Users browsing this forum: No registered users and 11 guests