Hi @fxshrat, thanks for the very informative reply. I appreciate your time and support.
I tried the "Percent margin (negative value)", but didn't get the same value as you did!

I cannot find what error I do that I don't get the same as you did.
In addition, If we want to dynamically calculate the MarginDeposite (as you mentioned in the pdf file you prepared)
// FX Margin account settings ::::::::::::::::::::::::::::::::::
// these settings override settings of "Information" window
TickSize = IIf( StrFind( Name(), "JPY" ), 0.01, 0.0001 );
RoundLotSize = 1;
PointValue = 1;
Leverage = 50; // change to different leverage if using other broker i.e. IAB -> 40
MarginRate = 1 / Leverage;
// dynamic calculation of margin
MarginDeposit = -100 * MarginRate; // here 100*0.02 = 2(%) 1:50
// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Required margin deposit should be calculated as below. let's assume that the account currency is USD. for the pairs such as USDCAD or USDCHF, we have:
MarginDeposite = Close × Units × 1/leverage
for the pairs such as AUDUSD or EURUSD, we would have
MarginDeposite = Units × 1/leverage
For the non-major pairs such as EURCAD, we would have:
MarginDeposite = Close × Units × 1/leverage/(Close_USDCAD)
PointValue calculation is also needed to be adjusted based on pairs and cannot be simply "100000/C".
Am I right or not? Please kindly comment if I'm not.
If yes, does your first suggestion calculate the margin deposit in the same way?
In this case, Percent Margin method looks easier to implement. However, PointValue cannot set to one for all pairs.
Be grateful to have your comment.