Read from class

 

How to read value of the function CheckPatternAllBullish() in class  CCandlePattern ?

I want to read it inside in void OnTick()

// Print(fican.CheckPatternAllBullish());

Error is  invalid pointer access in 'candlepatterns.mqh' (162,20)

Thanks!

Files:
 
FiaMeta5admiral:

How to read value of the function CheckPatternAllBullish() in class  CCandlePattern ?

I want to read it inside in void OnTick()

// Print(fican.CheckPatternAllBullish());

Error is  invalid pointer access in 'candlepatterns.mqh' (162,20)

Thanks!

The invalid pointer is m_symbol, which is a protected member variable of the base class CExpertSignal.

You need to run ExtExpert.InitSignal() on your CCandlePattern instance or you won't have access to the underlying variables.

 
Anthony Garot:

The invalid pointer is m_symbol, which is a protected member variable of the base class CExpertSignal.

You need to run ExtExpert.InitSignal() on your CCandlePattern instance or you won't have access to the underlying variables.

Can you show me how?
Reason: