Forex Rules
Forex Metrics Unit
All numerical metrics use the quote to report backtests performance. For example, if the profit reported for GBP/JPY is 3%, then at the end of the backtest period, the strategy has 3% more JPY than it had at the beginning of the period.
Commission
You need to set the trading commission with respect to the broker you are using and the market you are trading in. Three units are used to set the trading commission: Per Lot , Per Unit, and Percentage , depending on the market and the broker you are using to set the trading commission in the backtest.
Forex Stop Loss and take Profit
Our system always considers worst-case scenarios. If a candle's low price triggers the stop loss and its close or high triggers the take profit in a buy position, the system assumes that the price hits the candle's low before it hits the take profit. If a candle's low price triggers take profit in a sell position and its high or close triggers the stop loss, the system assumes that the stop loss's condition is met before take profit's condition.
Equity Risk
Just like stop loss and take profit, if any of the high, low, open, and close prices trigger the equity risk, the system assumes that the triggering price comes before the others, leading to equity risk to close trades.
Pair Settings
Each pair has its digits, contract size, and spread. Digits and contract size are consistent among the brokers, but the spread might change from one broker to another. Always ensure that the spread value used in the backtest matches the spread in your broker.
Forex Position Management
Buy and sell positions are handled independently in Forex backtest engine, enabling you to have open buy and sell positions simultaneously.
Data Range
When you are creating your market data, you have two options: QuantiX Data Provider and Meta API. If you use QuantiX Data Provider, you can access all currency pairs data from 2008 up to the present day. If you need other pairs like metals, CFDs, Cryptocurrencies, etc., you should use Meta API. Note that when Meta Data is used, the time range of the data is limited to the last two years.