I am using IQFeed for Fx data and backtesting a strategy on daily USDJPY FX. I have specified the following contract specification for USDJPY as described in the following amibroker for forex link http://www.amibroker.com/kb/2006/08/09/amibroker-for-forex/
Round Lot size - 1
Margin Deposit - 2500
Tick Size - 0.01
Point Value - 100000
I've also updated the JPY Preferenes -> Currencies section to include the dynamic rate symbol with inverse multiplier and set my base currency as USD
However, the result I get for a backtest seems to have the profit in JPY rather than USD -
If the Entry price is 114.637 and Exit Price is 111.879, then pnl for 1 contract used would be
= -1100000(111.879-114.637)*(1/111.879) = 2465.16 USD. However, the result above shows profit in JPY and not USD. How can I get it to show profit in USD?
Hi fxshrat, Thank you for the answer and the document. Its very helpful! I was wondering if there is a way to set the periodicity of the backtest in AFL script. The reason I ask is I am trying to run it on 4h bars and although I see a hourly option in backtester settings I cant find one for 4h.
I did all the settings based on documentation and set the "Currency" field to "CAD" in "Information" window.
The same error occurs for other no USD pairs such as EURCAD.
Note that if pairs that USD is the 2nd pair, the profit calculated correctly.
Does anyone know how to fix this error?!