I would like my algo to buy a certain percentage of my portfolio, (say 30%) when it breaches its moving average. The problem is that a few times a day it will trade 1/2. This is completely unnecessary and will run up my brokerage fees. Does anyone have any potential solution for this issue?

Author