Indicator and candlestick

What is the best approach or method to learn an indicator/ candlestick pattern correctly? is it by backtesting and forward testing it?

Indicators or candle stick patterns can be analyzed and optimized with values by checking it on the historical data, you can add the indicators on the candle stick historical data or you can code and backtest on specific condition.