Scripts: Risk translation of percentage risk

 

Risk translation of percentage risk:

Translate risk percentages to the monetary figure based on the account balance

Risk translation of percentage risk

Author: Conor Mcnamara

 

Hi Conor

Very useful script. However I could not find any currency conversion in the code for risk to measure in Account Currency, which is more likely to be amount of interest.

Thanks

 
Anil Varma #:

Hi Conor

Very useful script. However I could not find any currency conversion in the code for risk to measure in Account Currency, which is more likely to be amount of interest.

Thanks

The currency symbol I used was hardcoded, I wasn't sure if there was a way to retrieve the correct currency symbol automatically. The calculation itself is simple so the figures should still be accurate (just the currency symbol might be wrong)
 
Updated it now. I found a way to retrieve the currency symbol for the account currency. Also improved the code so there's no missing text labels.
 
ok