Hello. I would like to use iCustom function to call arrows of this indicator (https://www.mql5.com/en/code/7821).
I coded as:
//...and in the if statements:
if(OpenSELL && sell>0)
if(OpenBUY && buy>0)
But it doesn't work properly, I mean, it doesn't open an order only on the single arrow, but opens multiple orders...
I also tried with EMPTY_VALUE to "catch" the single arrow:
if(OpenSELL && sell!=EMPTY_VALUE)
if(OpenBUY && buy!=EMPTY_VALUE)
But it doesn't work at all.
Could please someone expert suggest me what to correct in the iCustom function or in the if statement to call properly the single arrow (buy and
sell) in order to open an order only when the single arrow appears?
PS. (the code above is only a part of the whole code which works for sure, so the problem is not of the main code, but of the iCustom and "if