- 2023.08.26
- www.mql5.com
- newbie needing help to compile
- How to create simple custom indicator to draw horizontal lines? pls help :)
- Candle body alert indicator
there's an EA for this
- 2021.12.25
- www.mql5.com
Sorry to mislead. I try to calculate lot size for example i want to buy @1.0 price and stoploss @ 1.5 price the pipe is 500 and i want 1 % of my port what's lot size i sloud use.
Sorry to mislead. I try to calculate lot size for example i want to buy @1.0 price and stoploss @ 1.5 price the pipe is 500 and i want 1 % of my port what's lot size i sloud use.
the lot size you can use will also depend on the leverage you're using, I can try to help later maybe...but I find your use case hard to understand. You want to find a lot size based on your SL and a risk percentage, but it doesn't make much sense.
Instead I would take your starting balance, and make an excel table with headings: Starting balance, Leverage, Number of points/pips the trade should achieve for TP, Risk amount %, Standard lots (start at the one you want to start with), Currency pair (need to know the exchange rate for accurate values), profit, Ending balance.
Then you have a money management guide.
For a calculator, you should probably calculate SL for selected lot size and the Risk Percentage, and TP for selected lot size and the pips you want to achieve, instead of a calculator that calculates a lot size for SL.
Risk depends on your initial stop loss, lot size, and the value of the symbol. It does not depend on margin or leverage. No SL means you have infinite risk (on leveraged symbols). Never risk more than a small percentage of your trading funds, certainly less than 2% per trade, 6% total.
-
You place the stop where it needs to be — where the reason for the trade is no longer valid. E.g. trading a support bounce, the stop goes below the support. Then you compute your lot size.
-
AccountBalance * percent/100 = RISK = OrderLots * (|OrderOpenPrice - OrderStopLoss| * DeltaPerLot + CommissionPerLot) (Note OOP-OSL includes the spread, and DeltaPerLot is usually around $10/PIP, but it takes account of the exchange rates of the pair vs. your account currency.)
-
Do NOT use TickValue by itself - DeltaPerLot and verify that MODE_TICKVALUE is returning a value in your deposit currency, as promised by the documentation, or whether it is returning a value in the instrument's base currency.
MODE_TICKVALUE is not reliable on non-fx instruments with many brokers - MQL4 programming forum (2017)
Is there an universal solution for Tick value? - Currency Pairs - General - MQL5 programming forum (2018)
Lot value calculation off by a factor of 100 - MQL5 programming forum (2019) -
You must normalize lots properly and check against min and max.
-
You must also check Free Margin to avoid stop out
-
For MT5, see 'Money Fixed Risk' - MQL5 Code Base (2017)
Most pairs are worth about $10 per PIP. A $5 risk with a (very small) 5 PIP SL is $5/$10/5 or 0.1 Lots maximum.
Risk depends on your initial stop loss, lot size, and the value of the symbol. It does not depend on margin or leverage. No SL means you have infinite risk (on leveraged symbols). Never risk more than a small percentage of your trading funds, certainly less than 2% per trade, 6% total.
I'm not talking about risk. I'm talking about volume in standard lots. And the volume you can use does depend on the account leverage.
The lot size we use in trading is more of a subjective thing limited by our account leverage and equity, it's not an objective number that can be calculated based on parameters of risk percentage and SL. This is why I think a risk management table with a starting lot size makes more senseYou are incorrect or misinformed. Please read William's post again in detail and apply it.
You are incorrect or misinformed. Please read William's post again in detail and apply it.
He misinterpreted what I was saying. The discussion was not about risk, it was only about lot size.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use