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?
 
Hi, I have set up the Position Sizer EA and configured it with only one thing that I can't find in settings.
Can I set the SL to BE to be set at TP1 level by default without having to enter points to move in the breakeven box?
Thanks for any help
 
Hi, I have set up the Position Sizer EA and configured it with only one thing that I can't find in settings.
Can I set the SL to BE to be set at TP1 level by default without having to enter points to move in the breakeven box?
Thanks for any help
No, this isn't possible. You have to set the respective distance in points in the BE field.
 
would you happen to know why my systems keeps shutting down when I run the software and make it do task like entering trades. I'm using a MacOS sequoia 15.5
 
would you happen to know why my systems keeps shutting down when I run the software and make it do task like entering trades. I'm using a MacOS sequoia 15.5
Could be some compatibility issue between the Position Sizer, MetaTrader, and that specific macOS version. Normally, it works without any critical problems under macOS.
 
I am struggling to set up default settings via SettingsFile: Custom settings file from \Files\PS_Settings\.
Should this suppose to be a .set file or .txt file?
Should this file be named "Default" or not?
Is this the right directory?
C:\Users\PCname\AppData\Roaming\MetaQuotes\Terminal\49CD.....9C\MQL5\Files\PS_Settings
Post automatically merged:
 
I am struggling to set up default settings via SettingsFile: Custom settings file from \Files\PS_Settings\.
Should this suppose to be a .set file or .txt file?
Should this file be named "Default" or not?
Is this the right directory?
C:\Users\PCname\AppData\Roaming\MetaQuotes\Terminal\49CD.....9C\MQL5\Files\PS_Settings
The directory is correct. It should already be there if you used the Position Sizer at least once.
You can name the file anything you like, but you need to enter the full name with the extension in the parameter. E.g., if you name it settings.txt, you enter settings.txt in the parameter.
 
What are you putting there? How exactly do you create that file?
I have tried many ways of creating this file. I've spent hours with this.
It would be very lengthy to describe it all.
Is there any guide on how to make this file? (it might be an easier way to make it work)
 
I have tried many ways of creating this file. I've spent hours with this.
It would be very lengthy to describe it all.
Is there any guide on how to make this file? (it might be an easier way to make it work)
Normally, you just set up the panel to your liking, then copy the corresponding .txt file in the PS_Settings folder (it's named as <currency pair><chart ID>.txt, e.g., EURJPY132105202169636541.txt), then change the copied file's name to what you prefer and set that name in the SettingsFile parameter of the next PS instance that you attach.
 
Normally, you just set up the panel to your liking, then copy the corresponding .txt file in the PS_Settings folder (it's named as <currency pair><chart ID>.txt, e.g., EURJPY132105202169636541.txt), then change the copied file's name to what you prefer and set that name in the SettingsFile parameter of the next PS instance that you attach.
Unfortunately, it doesn't work if I follow these steps.
Position Sizer still loads with the default settings and not the custom settings from the file "test".
 

Attachments

  • x002355 Position Sizer 3.11.png
    x002355 Position Sizer 3.11.png
    6.8 KB · Views: 2
Unfortunately, it doesn't work if I follow these steps.
Position Sizer still loads with the default settings and not the custom settings from the file "test".
Are there any messages in the Experts tab on EA initialization? Could you please attach that test.txt file here?
 
No, messages in the Experts tab. Only Loaded settings successfully, after restarting MT5.
Sure, here it is - see attached.
No matter what the settings are, the result is still the same.
 

Attachments

  • ℹ️
Reactions: Enivid