I want to set my lotsize on equity %
-
Hey @jstap & other
I want to set my lotsize on equity percent
If my account equity is 10k$ & i set risk factor 1.00 (EA buy 0.10 lots)
If 20k$ (EA Buy 0.20)
Same for both sides buy and sell
and these settings changes from MT4 EA inputs
Like if i set risk factor to 1.5
on 10k$ account (EA buy 0.15 lots)
and also i want to control dynamic lotsI hope you understand
-
my solution: use "custom mql code" block, and define a parameter "risk", and a variable LotSize.
use mql4 function AccountEquity()
LotSize = risk * (AccountEquity() / 10000) *0.1
-
@talalkhan Here you have it:

-
@l-andorrà But its showing volume size depending on stop? i want only risk percent of equity
-
@talalkhan Then try this:

-
@l-andorrà can i used leverage in lotsize.
Like: If equity is 10k$ with leverage of 1:500 (EA opens trade of 0.10)
and i want to to used fixed lotsize also. when i used fixed EA ignore percentage lotsize and if i set 0 to fixed lot sized EA active percentage lotsize -
@jstap can you please join?
-
@talalkhan sorry mate I know nothing about using leverage in lot size.
-
@jstap ok leave it tell me if you know. i want to to used fixed lotsize % of equity lot. when i used fixed lotsize EA ignore percentage lotsize and if i set 0 to fixed lot sized EA active percentage lotsize. In simple words i want to used both on my EA
-
@haoglueck sir thanks for help but don't know about coding
if you can give live example i will be very thankful to you -
@talalkhan To me if account doesn't have enough leverage for the position I'm trying to take, I reduce % at risk or don't trade.
-
@jstap i am saying i want to used two types of lotsizing methods
- Fixed lot sized
- % of equity lot size
how can i add these two lot size in my EA
-
@talalkhan Like this
