Skip to content
Prev 10961 / 15274 Next

Using Margin in Blotter package

Margin depends on both the instrument and the position.  Most exchanges 
use SPAN, and certified SPAN engines are extremely expensive.  Beyond 
exchange margin, your broker often charges additional margin, and may or 
may not cross-margin using SPAN.

Ulrich is right that you could add a field to your instrument data (in 
the FinancialInstrument package) to describe minimum initial and 
maintenance margin: that's trivial as the instrument model is 
deliberately extensible, but it's also useless because it doesn't cover 
cross-margining, and the only accounts that don't get cross-margin are 
typically retail.

Even funds that use leverage in the futures space typically tell their 
investors that they will invest a certain *notional* amount from equity. 
  While they usually report margin/equity, this has nothing to do with 
most backtests, you backtest on notional exposure, and your reported 
leverage to your investor is usually based on notional as well.

While efficient use of margin is obviously very important, I don't 
really see this as having anything to do with blotter, since we're not 
going to license and write a SPAN engine.

Regards,

    - Brian
On 11/01/2012 06:19 PM, Ulrich Staudinger wrote: