how to use ccandlepattern class in my own EA (not wizard)

Carl Schreiber  

Well: type oop in the search field (top right the lens) and select articles and Documentation.

Here are (only) three that might help you:

Bear in mind there's almost nothing that hasn't already been programmed for MT4/MT5 and is ready even for you.
Its easier and the result has fff: far fewer faults than a do-it-yourself-EA generally speaking!

MQL's OOP notes: Introduction
MQL's OOP notes: Introduction
  • 2016.09.16
Both MetaTrader 4 and MetaTrader 5 provide powerfull tools for trading automation, which can be extended even more - to almost any feasible idea - thanks to the built-in programming language - MQL