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 simply would like something like this...
Any way to do this instead of typing them all out??
Lots = int(AccountBalance() / 1000) / 10.0;
However if you're not using a proper SL, then even 0.1 lots means your account is at risk (EURUSD 1.2345) $12,345.00 (buy)
Please excuse this if this is completely incorrect, however, is it possible to do something like this:
You can do it like this....this EA for Example
Can you help me,
I want to make lot size settings in accordance with the risk options
==============
double Lot_1 = ?? // Options from "Low_Risk or Med_Risk Or High_Risk
double SL_pips = 30;
==============
enum Risk
{
Low_Risk, Med_Risk, High_Risk,
};
extern Risk Risk_Options;
If i Choice Low_Risk, it mean i use Lot_1 = NormalizeDouble ((AccountBalance() * 5% / SL_Pips),2)
or
If i Choice Med_Risk, it mean i use Lot_1 = NormalizeDouble ((AccountBalance() * 10% / SL_Pips),2)
or
If i Choice High_Risk, it mean i use Lot_1 = NormalizeDouble ((AccountBalance() * 20% / SL_Pips),2)
====================================================================================
Okay I can confirm this works:
For anyone who reads this and needs something similar. :)