Hi guys.

Why do I get a margin call on a long position with no leverage. I should be able to keep that position to whatever price it goes down to, before(and if) it recovers. Am I missing something?

Attached sample algo which goes long XIV with all the portfolio cash, and then gets a margin call when the price plunges.