I use a volatility index and volatility margin to protect against margin call and liquidity issues. How I create code for the Volatility index and how I programe the formula for volatility margin?
example -- USDZAR has a volatility index of 1 which means -170.50%, then the volatility margin = order used margin x volatility rate of -170.50%.
The EA will deduct the volatility margin from the account capital balance and deposited in a volatility margin account...this account will not be seen or used by the EA.
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.
Hello,
I use a volatility index and volatility margin to protect against margin call and liquidity issues. How I create code for the Volatility index and how I programe the formula for volatility margin?
example -- USDZAR has a volatility index of 1 which means -170.50%, then the volatility margin = order used margin x volatility rate of -170.50%.
The EA will deduct the volatility margin from the account capital balance and deposited in a volatility margin account...this account will not be seen or used by the EA.
Any help is greatly appreciated.
Bob