How to get a bool signal from an indicator using an EA???

 
Hello everyone!

I started to work wih a candlestick pattern recognition indicator which shows the different patterns on the charts. I would like to include in an EA signals from that indicator (i suppose using icustom) and the problem is that in the book the only think i could read is how to get variables int from the indicator, I mean the number in a line.But what about if i want to check when i have candlestick pattern....

I tried usin a sript for my EA the following:

int candlestickpatterns() // User-defined function
{
bool candlestick=iCustom(Symbol(),0,"Pattern_Recognition_Master",true,true,true,true,true,true,true,Red,8,true,true,true,true,true,true,Blue,8,true,true,Red,8,true,true,5,Blue,8,true,true,Red,8,true,true,Blue,8,true,true,Red,8,false,false,Blue,8);
// Calculation of trading criteria
if(Mas_Ord_New[0][0]==0 && candlestick==("HMR_4",0))
return(10); // Opening Buy

But it tells me is not the propper way.



Thanks a lot


A Starter.

 

bool candlestick ??? is bool ?

candlestick==("HMR_4",0)??? ("HMR_4",0) is bool ? if not, how to == ?

iCustom(.....,Blue,8); parameters are right?

Reason: