deysmacro: LOL ... you really nailed 'em hard there ...
Excuse me?
metbright: I don't understand your recommend I can't speak English very well, I will try. Thank you.
You don't need to know how big a lot is.
AccountBalance * percent = Risk = ( OrderOpenPrice - OrderStopLoss )*DIR * DeltaPerLot * lotsize. Solve for lotsize and normalize properly.
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. Note that OrderOpenPrice - OrderStopLoss includes the spread.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Again, why do you care? https://www.mql5.com/en/forum/138853
LOL ... you really nailed 'em hard there ...
You don't need to know how big a lot is.
AccountBalance * percent = Risk = ( OrderOpenPrice - OrderStopLoss )*DIR * DeltaPerLot * lotsize. Solve for lotsize and normalize properly. 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. Note that OrderOpenPrice - OrderStopLoss includes the spread.
Hi
I have a question, how to check account type(standard, mini, micro) ?
Hello there, see if the below helps out.
Cheers...
Hi, there are some errors in your code
1. switch ( tradingUnits )
should change to switch ( tradingUnits(Symbol))
2. switch case cannot accept double
3. this method is not practical for some Currency pairs like gold , silver and ...
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06
Messages Editor