Hello everyone,
This is my first attempt at a strategy all by myself.
The idea is to take the MACD example for buy/sell signals but add a volume MA component that allows the strategy to hold still when the volume hasn't gone above the MA for the past 12 days.
My rationale is that usually MACD can go above or below 0 for small changes, however that does not necessarily mean anything. In my (very limited) experience, the MACD signal is strongest when coupled with a volume reading. If the MACD signal is triggered and also the volume for that day turns out to be much greater than the previous day's volume (thus the volume MA signal), then we can argue that something is happening and we get in or out.
However, my issue now is that apparently I'm heavily leveraged because even when trading with 10K USD my cash goes down to almost -50K USD.
How can I limit this such that I only buy when I have the sufficient amount of cash in hand? i.e. if the triggers tell me to buy 4K USD of security X and I only have 2K, it should not buy (or maybe better, buy only what's available).
Any ideas and comments are greatly appreciated. Also, any analysis on why this is working/not working is welcomed as well.
Thanks!