For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

Margin on shorting stocks

  • I tried the automargin parameter but that didn't seem to have the desired effect. Scoured the documentation. I have a portfolio approach and I don't want trades to go through if there is insufficient cash to meet margin.

  • you may want to elaborate more on what you expect and what doesn't work. As usual simple script and outputs will expedite the solution.

Log in to reply