24 Oct 2016, 21:23

Also, this iCustom function was posted on the indicator's website. Not sure if this clarifies our situation at all.

//---- Read value from trend and signal buffer
int start()
{
// Read values
double trend = iCustom(Symbol(), Period(), "PZ_LopezTrend_LICENSENUM", 5, 1);
double signal = iCustom(Symbol(), Period(), "PZ_LopezTrend_LICENCESUM", 6, 1);
// Do something
if(trend == OP_BUY) { /* Your code if trend is currently bullish / }
if(trend == OP_SELL) { /
Your code if trend is currently bearish / }
if(signal == OP_BUY) { /
Your code for bullish trend change / }
if(signal == OP_SELL) { /
Your code for bearish trend change */ }
// Exit
return(0);
}