KiteGX :
I'm trying to calculate lotsize based on risk percentage, but CheckOpenShort is returning 0.0. Also, is there a way to have it return two decimals?
Here's an example of what I'm trying to do:
Compare two examples: Money Fixed Risk and Money Fixed Margin . Note the result if you specify SL = 0.0.
Money Fixed Risk
- www.mql5.com
An example for calculating the lot value in accordance with the risk per trade. Update: 28 Dec 2016 -> version 1.001 added two methods for outputting (printing) the calculated lot. Method 1 — when setting StopLoss to zero. sl=; check_open_long_lot=m_money.CheckOpenLong(m_symbol.(),sl); ...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm trying to calculate lotsize based on risk percentage, but CheckOpenShort is returning 0.0. Also, is there a way to have it return two decimals?
Here's an example of what I'm trying to do: