PMM Keywords: Difference between revisions
From MultiCharts
→Portfolio Money Management Keywords
Line 83: | Line 83: | ||
'''[[convert_currency]](datetime, currencyCode1, currencyCode2, moneyValue)''' – moneyValue is a value conversion from the currency designated currencycode1, into the currency with currencycode2, using the rate at the datetime moment. For example, convert_currency(datetime, codeEUR, codeJPY, 500) will convert 500 EUR value to Japanese Yens using the rate at the moment of calculation at the current bar. <br> | '''[[convert_currency]](datetime, currencyCode1, currencyCode2, moneyValue)''' – moneyValue is a value conversion from the currency designated currencycode1, into the currency with currencycode2, using the rate at the datetime moment. For example, convert_currency(datetime, codeEUR, codeJPY, 500) will convert 500 EUR value to Japanese Yens using the rate at the moment of calculation at the current bar. <br> | ||
'''currencyCodeToStr(currencyCode)''' – string value for the currency with currencyCode code. For example, currencycodetostr(symbolcurrencycode) will return “EUR” value, if the strategy is calculated using the symbol with EUR as a basic currency. <br> | '''[[currencyCodeToStr]](currencyCode)''' – string value for the currency with currencyCode code. For example, currencycodetostr(symbolcurrencycode) will return “EUR” value, if the strategy is calculated using the symbol with EUR as a basic currency. <br> | ||
'''[[symbolCurrencyCode]] '''– returns currency code of the current symbol. <br> | '''[[symbolCurrencyCode]] '''– returns currency code of the current symbol. <br> |