Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
https://www.investopedia.com/terms/p/patterndaytrader.asp
https://forum.alpaca.markets/t/apierror-trade-denied-due-to-pattern-day-trading-protection/211
https://www.finra.org/investors/investing/investment-products/stocks/day-trading
https://alpaca.markets/support/pattern-day-trading-protection
Here are some ways to avoid it.
https://robinhood.com/us/en/support/articles/pattern-day-trade-protection/
- switch to cash account (does not apply to Alpaca since all Alpaca accounts are marginal accounts and cannot be turned off)
- have more than $25k in the account
So, the only way to solve the issue in Alpaca is to have more than $25k in your portfolio.