Lot's of thanks!! This was a really great help!! I haven't seen the fact with that EMPTY_VALUE
You're welcome.

As you know the value in the current bar may change since the bar is till not closed and the price can move up or down. You may want to take the signal from the previous closed bar by changing the code to

double sigBuy = iCustom(NULL,0,"SuperTrend",10,3,0,1);
double sigSell = iCustom(NULL,0,"SuperTrend",10,3,1,1);