Margin Calcs Please confirm

 
Reference : http://www.migfx.ch/en/learn-forex/profitloss-calculation/index.html
Consider margin calcs based on USD account MT4 100:1

PAIRS starting with USD
Factor = 1
So each contract is $1000 uSD

PAIRS ending with USD
Factor = SPot ie AUDUSD , spot would be .7550
So each AUDUSD margin would be $755

PAIRS with NO USD
For example.....

EURJPY Spot is 148.88
USDJPY Spot is 117.55

100,000 EUR = 1000 JPY / Price of USDJPY - approx 9.00 USD

Q: Whats the margin forumla for EURJPY ????
 
Try to use code form "MQL4: MarginCalculate" (sorry, but comments in Russian)
Reason: