Just because you lost everything while trading does not make it gambling. You are right, you shouldn't have jumped into trading from the very beginning without knowing anything about the market. But this does not mean that you will not trade at all unless you have learned everything. You should actually try investing small amount of money into trading and learn from the mistakes you will be making. In fact you will be getting experience while learning.