Both are important Confidence with out knowledge is nothing. But if you have good knowledge than definitely your confidence will be beneficial for you else only confidence with out knowledge will lead you to losses so to avoid such losses you must have good information of market.