Hi Enivid,

I want to report some issues with Position Sizer (v3.11).

1) In the MT4 version, the displayed profit/loss on the SL/TP lines is wrong with non-USD account currencies (JPY, HUF, AUD, etc) for non-forex symbols (GOLD, BTCUSD, US indices, etc).

See the screenshots below. I tested it on the XM broker with JPY account and 1,000,000 JPY balance.

* On the Gold chart, the MT5 version shows 8,876 JPY for the SL line, while the MT4 version shows 10,088.78 JPY.

PS_MT5_JPY_GOLD.png

PS_MT4_JPY_GOLD.png

* On the US500 chart, the MT5 version shows 10,207 JPY for the SL line, while the MT4 version shows 9,584.80 JPY.

PS_MT5_JPY_US500.png

PS_MT4_JPY_US500.png


2) In both MT4 and MT5 versions, the displayed profit/loss on the SL/TP lines with USD account currency for USD* forex symbols (USDCAD, USDCHF, USDJPY, etc) deviates from the profit/loss shown by MetaTrader on the Exness broker.

See the screenshot below. I tested it with Exness Pro account on the USDCAD chart with 1,000,000 USD balance.

PS_EXNESS_USDCAD.png

In the screenshot above, I had submitted the order (the order's open price and SL lines are obscured by the Position Sizer's lines). Notice the difference between the profit/loss number on the Position Sizer's SL line and the one from the MetaTrader tooltip on the SL line (9,999.34 USD vs 9,960.96 USD).
 
Hi Enivid,

I want to report some issues with Position Sizer (v3.11).

1) In the MT4 version, the displayed profit/loss on the SL/TP lines is wrong with non-USD account currencies (JPY, HUF, AUD, etc) for non-forex symbols (GOLD, BTCUSD, US indices, etc).

See the screenshots below. I tested it on the XM broker with JPY account and 1,000,000 JPY balance.

* On the Gold chart, the MT5 version shows 8,876 JPY for the SL line, while the MT4 version shows 10,088.78 JPY.

View attachment 33239

View attachment 33240

* On the US500 chart, the MT5 version shows 10,207 JPY for the SL line, while the MT4 version shows 9,584.80 JPY.

View attachment 33241

View attachment 33242

This is XM's problem. Their server is misconfigured and reports EUR as the base currency for the USDJPY pair, which is required for conversion between USD and JPY.

2) In both MT4 and MT5 versions, the displayed profit/loss on the SL/TP lines with USD account currency for USD* forex symbols (USDCAD, USDCHF, USDJPY, etc) deviates from the profit/loss shown by MetaTrader on the Exness broker.

See the screenshot below. I tested it with Exness Pro account on the USDCAD chart with 1,000,000 USD balance.

View attachment 33243

In the screenshot above, I had submitted the order (the order's open price and SL lines are obscured by the Position Sizer's lines). Notice the difference between the profit/loss number on the Position Sizer's SL line and the one from the MetaTrader tooltip on the SL line (9,999.34 USD vs 9,960.96 USD).
The value reported by MetaTrader's tooltip isn't entirely correct here while the Position Sizer's is the correct one. The former is using the current USDCAD price to convert the potential loss from CAD to USD. The latter is taking the USDCAD rate at the SL point to make the conversion.
 
The value reported by MetaTrader's tooltip isn't entirely correct here while the Position Sizer's is the correct one. The former is using the current USDCAD price to convert the potential loss from CAD to USD. The latter is taking the USDCAD rate at the SL point to make the conversion.
That's interesting, especially for the MT5, as the tooltip value is same as the value returned from the OrderCalcProfit function. So are you saying the MetaTrader platform has a bug or error in this regard, or is it just about a difference in calculation methods between the two?
 
That's interesting, especially for the MT5, as the tooltip value is same as the value returned from the OrderCalcProfit function. So are you saying the MetaTrader platform has a bug or error in this regard, or is it just about a difference in calculation methods between the two?
I wouldn't call that a bug, that's just a failure to implement a feature. In most cases, we don't know the conversion rate at the trade's exit point, but in some cases (like trading USD/CAD with a USD account), we do. And we can use that conversion rate rather than the current rate.
 
I wouldn't call that a bug, that's just a failure to implement a feature. In most cases, we don't know the conversion rate at the trade's exit point, but in some cases (like trading USD/CAD with a USD account), we do. And we can use that conversion rate rather than the current rate.
I see, but why is only a specific broker (Exness) more affected by the issue? I tested it with other brokers as well (XM and IC Markets). With these brokers, the difference in the results is much smaller or non-existent.
 
I see, but why is only a specific broker (Exness) more affected by the issue? I tested it with other brokers as well (XM and IC Markets). With these brokers, the difference in the results is much smaller or non-existent.
Same pair and same price levels? I don't know. They should show the same results. Perhaps some server configuration or server version thing?