PMM Keywords: Difference between revisions
From MultiCharts
no edit summary
No edit summary |
|||
Line 74: | Line 74: | ||
'''[[pmm_set_global_named_str]](var_name, val)''' – set the value of global string var_name variable. <br> | '''[[pmm_set_global_named_str]](var_name, val)''' – set the value of global string var_name variable. <br> | ||
'''[[pmm_get_my_index]]''' - returns a numerical value, indicating zero-based index of the current trading strategy. <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> | '''[[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> |