Margin Report
When Margin Calculation is enabled (using the SimSettings.Margin parameter) for a backtest, the per-position and account-level margin is calculated and recorded during each simulation cycle.
The Margin Report tab on the Backtest Details page offers an overview of the captured margin requirements.
The (stacked) bar chart displays the margin requirement for each position individually, as well as the accumulated margin displayed as Account Margin.
For each position, the Minimum, Maximum, Average and Median statistics are calculated and presented in the table. The same statistics are calculated at the Account level.
For each position, the Return on Max Margin calculation is done with the formula:
Return On Max Margin = Position PnL at Exit / Maximum Margin During the Trade
For each position's Return On Max Margin measure the Minimum, Maximum, Average, and Median statistics are presented in the details table.
For further details on the Margin Settings please see the Job Definition Reference's SimSettings section.
Results differ from OptionNet Explorer's reported margin?
See this blog-post for additional info.