Almost a year has passed since the Position Size Calculator for MetaTrader was introduced in this blog. It is currently the third most popular indicator on EarnForex.com, losing only to Pinbar Detector and Market Profile. Unfortunately, while being extremely useful and pretty flexible, it failed to work with many trading instruments (e.g. CFDs or exotic currency pairs), especially if your account was not based in USD. But thanks to one conscious forum user, who turned my attention to MODE_TICKVALUE and MODE_TICKSIZE symbol properties in MQL, it has now changed for better.
The new version of Position Size Calculator retains all the advantages and benefits of the previous version but is now capable of calculating position size for any trading instrument that is properly described in your broker’s MetaTrader server. Additionally, the whole calculation process is much faster (as no reference pair is requested) and requires less manual intervention (to add reference pairs to the Watch window). The screenshot below demonstrates the new indicator in action on USD/SEK pair:
Same as before, the MT5 version is recommended over the one for MT4 as the former offers immediate position size recalculation when entry/
If you are loath to work with MetaTrader, you can always opt for our online position size calculator.
If you have any suggestions or wish to report a bug for this MetaTrader indicator, please do so using the commentary form below.
DOES THIS POSITION SIZE CALCULATOR WORK FOR CFD INDICES ON MT4?
WHAT CAN I USE TO CALCULATE POSITION SIZE FOR CFD INDICES ON MT4?
▼Reply
admin Reply:
July 22nd, 2013 at 6:27 am
It should work on CFD indices too. Please let me know if there is any error in position size calculated by this indicator for CFD indices.
▼Reply
I tried this indicator for mt4 platform for german index trading de-30. its not working. Can you please let me know where i can get this indicator for mt 4?
▼Reply
Andriy Moraru Reply:
February 26th, 2015 at 12:07 pm
The indicator for MT4 can be downloaded from here (https://www.earnforex.com/metatrader-indicators/Position-Size-Calculator), but from your comment, I see that you have already tried it. What happened when you attached the indicator to the chart? Also, please tell me what broker are you using, so I could test it myself if possible.
▼Reply
Not working with CFD.
Indicator calculate size position but it is wrong size. I have account in PLN.
For example I tried to Oil:
SL is 13 points, TP is 12 points. Calculator show me that position size is 13.00 lots with 2% risk. Risk was 15.60 PLN and Reward was 13.00 PLN.
I buy 7.00 lots and I get reward 37.15 PLN (12 points)
▼Reply
Andriy Moraru Reply:
February 16th, 2017 at 10:58 am
A screenshot would help. Also, what broker are you using?
▼Reply
Michal Ciesla Reply:
February 16th, 2017 at 2:49 pm
I found problem.
MODE_TICKVALUE – show minimal tick value in the DEPOSIT currency.
This is true in Forex istruments , but is false in CFD.
In CFD, MODE_TICKVALUE – show minimal tick value in the BASE currency.
In CFD Indicator calculate position in base currency, not deposit currency. I have deposit in PLN and indicator calculate in USD, because MODE_TICKVALUE show value in USD, not PLN.
So, when indicator will be used in CFD, should add the conversion currency formula to the script.
▼Reply
Andriy Moraru Reply:
February 16th, 2017 at 3:10 pm
Thanks for the info! Could you please tell me which broker you are getting this at, so I could properly test the changes?
▼Reply
Andriy Moraru Reply:
February 16th, 2017 at 3:41 pm
The reason I am asking is because I checked it on AUD account with a CFD, and MODE_TICKVALUE returned proper value in AUD, though it was a USD-denominated CFD (S&P).
▼Reply
xm.com
▼Reply
Andriy Moraru Reply:
February 16th, 2017 at 8:41 pm
Thanks. I was able to reproduce the problem there. Unfortunately, I do not see how I could fix it. Two other brokers I have checked (AxiTrader and ICMarkets) with non-USD accounts report correct tick values for CFD instruments. It looks to be a problem with XM.COM’s trading server. Could you please contact their support about the issue?
▼Reply
Yes, of course
▼Reply
Andriy Moraru Reply:
February 17th, 2017 at 6:08 am
Great! Please keep me updated on their response.
▼Reply
it is possible to obtain this indicator in mt4 and mt5, in this same version (without the panel)
▼Reply
Andriy Moraru Reply:
July 2nd, 2020 at 3:27 pm
Do you mean the legacy version? Sure:
MT4 Separate window: https://www.earnforex.com/mt4-forex-indicators/PositionSizeCalculator_Separate.zip
MT5 Separate window: https://www.earnforex.com/mt5-forex-indicators/PositionSizeCalculator_Separate.zip
MT4 Main window: https://www.earnforex.com/mt4-forex-indicators/PositionSizeCalculator_Main.zip
MT5 Main window: https://www.earnforex.com/mt5-forex-indicators/PositionSizeCalculator_Main.zip
However, it doesn’t calculate accurately in many cases.
▼Reply