Read from class

To add comments, please log in or register
FiaMeta5admiral
1181
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!

Files:
Anthony Garot
1954
Anthony Garot  
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.

whroeder1
17927
FiaMeta5admiral
1181
FiaMeta5admiral  
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?
To add comments, please log in or register