If you want, you could try praying for your bad luck to go away. Or, if you feel that a presence is the cause of the bad luck, then you could try doing a spiritual cleansing. Also, some believe that simply thinking positively and celebrating the good and positive things that happen to them helps to get rid of any bad luck they might be experiencing.
It’s possible that you were so nervous/scared, that you actually moved the planchet yourself without even knowing it, and you ended up thinking that it was a ghost. I’m assuming you’re just worried that something bad may have attached itself to you. If you haven’t experienced anything that could be construed as supernatural by now, then I honestly don’t think you have anything to worry about.