Before your trade, decide how much you would loose if the trade goes wrong. Thatz your stop loss. Decide how much you would gain if the trade goes right. Thatz your profit Target. Never key in your trades unless you have predefined Stop Loss and Profit Target.
Whether you make money or not is immaterial at initial stages. But what matters is whether you are trading correctly or not ie sticking to predefined Stop Loss and Profit Targets. When Profit Target is hit, no more greedy, just book profits and get out. When Stop Loss is hit, no more fear, just book losses graciously and get out.
Tap yourself, if you successfully closed your position either at Stop Loss or Profit Target. Whether it was a Loss or Gain trade, but that was a successful trade. Once you become successful in trading, profits will follow automatically.
Most importantly keep eloborate record of all of your trades including your feelings before, during and after the trades. Review them at periodical intervels.
All the best.