[Bug?] When exporting SQX historical data in order to Backtesti in MT4, "Currency" is set as BaseCurrency rather than QuoteCurrency for Forex Pairs, Which is wrong if thats why it is used for

[Bug?] When exporting SQX historical data in order to Backtest in MT4, "Currency" is set as BaseCurrency rather than QuoteCurrency for Forex Pairs, Which is wrong if thats why it is used for,
However for CFDs and Fututres the BaseCurrency gives the same value as the MarginCurrency so it is ok.

My question is for what that "Currency" value needed?,
Because for this example bellow in the screenshot, the "Currency" value is GBP however the Tick value and overall P/L and Margin P/L are calculated in AUD and must be calculated by the value of the Quote currency for any Forex pair.



Attachments
image-0.png
(109.56 KiB)
  • Votes +3
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

k
#1

Karish

27.02.2023 15:11

Task created

k
#2

Karish

07.03.2023 10:32
Voted for this task.
TM
#3

tmatejka.

07.03.2023 14:31
We also believe it should be rather set to the QuoteCurrency as it is with indices and commodities. It is not quite clear though even from the official docs https://docs.mql4.com/constants/environment_state/marketinfoconstants as there are multiple params SYMBOL_CURRENCY_BASE, SYMBOL_CURRENCY_PROFIT, SYMBOL_CURRENCY_MARGIN etc. We will be looking into this more
TM
#4

tmatejka.

07.03.2023 14:32
Voted for this task.
PS
#5

Petr Ĺ omek

13.03.2023 12:58

Status changed from New to Fixed

"Because for this example bellow in the screenshot, the "Currency" value is GBP however the Tick value and overall P/L and Margin P/L are calculated in AUD and must be calculated by the value of the Quote currency for any Forex pair."

this is fixed

E
#6

Emmanuel

15.03.2023 13:56
Voted for this task.
k
#7

Karish

22.03.2023 22:29
If you need any help i created a script for that, everything is accurate, i created this task in order to verify,

it seems that it is wrong, GBPAUD should be converted into AUD,
again check the script all the work is done there automatically,

for the other topic is non FX pairs, like CFDs and Futures,
they are calculated in SYMBOL_CURRENCY_MARGIN.

Votes: +3

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please