EarnForex / PositionSizer

Calculate your position size based on the risk and account size and execute your trades with this free MetaTrader expert advisor.

Home Page:https://www.earnforex.com/metatrader-expert-advisors/Position-Sizer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commission as percentage and leverage as floating point

maccieddu opened this issue · comments

Hello, first I wanted to thank you for your immense work with: PS, I have been using it for quite some time now its amazing. I would like to ask you if it was possible to add the possibility of calculating commissions as a percentage and the leverage as a floating point number. There are some brokers/prop that use 1:3,33 leverage and the commissions for xauusd pairs and other pairs are a percentage of the size: 0.005%. Thanks again for your work!

There are some brokers/prop that use 1:3,33 leverage
Not sure what you mean by that. Leverage is integer in MetaTrader. Besides, it doesn't affect calculations.

commissions for xauusd pairs and other pairs are a percentage of the size: 0.005%
Isn't it the same as $5 or is it 0.005% of the position's Gold value?

Not sure what you mean by that. Leverage is integer in MetaTrader. Besides, it doesn't affect calculations.

For example the prop the5ers have this specifications for Gold:

  1. Contract Size: 100 Ounces 1 lot = 100 ounces of Gold
  2. Minumum lot: 0.01 lot 1 ounce minimum
  3. Incremental Step: 0.01
  4. Margin Rate: 3
  5. Leverage: 10
  6. Commission: 0.005% of the position's Gold value

So the real total leverage isn't 10 but is leverage/Margin rate so 10/3 = 3.33
For example if i have to open 0.1 lot at price of 1800 $ the position value is 18000$ but the margin i need isn't
18000$ / 10 but 18000$ / (10 / 3).
The first margin (wrong) is 1800$ the second 5405$, big difference.
In the position sizer i can't set the leverage to 3.33 because it only accept integers.

Isn't it the same as $5 or is it 0.005% of the position's Gold value?

Yes is the 0.005% round trip of the position's gold value so the request for the calculation option in percetage

OK, thank you for explanations. I will certainly implement setting non-integer values for the custom leverage and will consider % commission.

Thank you very much for considering the proposals

Should be addressed in 3.03.