GAIN Capital recommends you to seek independent financial and legal advice before making any financial investment decision. Trading CFDs and FX on margin carries a higher level of risk, and may not be suitable for all investors. The possibility exists that you could lose more than your initial investment further CFD investors do not own or have any rights to the underlying assets. 

A Portfolio Margin account can provide lower margin requirements than a Margin account. However, for a portfolio with concentrated risk, the requirements under Portfolio Margin may be greater than those under Margin, as the true economic risk behind the portfolio may not be adequately accounted for under the static Reg T calculations used for Margin accounts. Customers can compare their current Reg T margin requirements for their portfolio with those current projected under Portfolio Margin rules by clicking the Try PM button from the Account Window in Trader Workstation (demo or customer account).
In particular I would like to make the system a lot faster, since it will allow parameter searches to be carried out in a reasonable time. While Python is a great tool, it's one drawback is that it is relatively slow when compared to C/C++. Hence I will be carrying out a lot of profiling to try and improve the execution speed of both the backtest and the performance calculations.
This article will address several questions pertaining to Margin within Forex trading, such as: What is Margin? What is free margin in Forex?' and What is Margin level in Forex? Every broker has differing margin requirements and offers different things to traders, so it's good to understand how this works first, before you choose a broker and begin trading with a margin.
The currency exchange rate is the rate at which one currency can be exchanged for another. It is always quoted in pairs like the EUR/USD (the Euro and the US Dollar). Exchange rates fluctuate based on economic factors like inflation, industrial production and geopolitical events. These factors will influence whether you buy or sell a currency pair.

The market values/prices used to compute the equity or margin requirement in an Interactive account may differ from the price disseminated by exchanges or other market data sources, and may represent Interactive's valuation of the product. Among other things, Interactive may calculate its own index values, Exchange Traded Fund values or derivatives values, and Interactive may value securities or futures or other investment products based on bid price, offer price, last sale price, midpoint or using some other method. Interactive may use a valuation methodology that is more conservative than the marketplace as a whole.