Adding an unusual custom indicator to an EA

 

Hi: Thanks for your help. I am looking to try to add a custom indicator (NeuroTrend) to an existing EA. The indicator paints a different color bar onto the chart itself (instead of using traditional methods such as candlesticks etc). Please correct me if I am wrong but the ea must call the indicator line (SetIndexBuffer). So I must find the correct indicator line used to trigger the trade. How would I express the bar color change? Could I write it as:

NT = iCustom (NULL, 0, "NeuroTrend", 5, 0);

if iClose > NT

If I use iClose does that mean it would open a bar later? The indicator is dynamic in that it does not wait for bar change but is based on ticks. Any help would be appreciated for this newbie. Thanks again.