PMM Keywords: Difference between revisions
From MultiCharts
no edit summary
No edit summary |
|||
(One intermediate revision by one other user not shown) | |||
Line 25: | Line 25: | ||
'''[[pmms_strategy_close_position_partial]](idx, isNextBar, contracts)''' – partially close position of the specified strategy for the set number of contracts.<br> | '''[[pmms_strategy_close_position_partial]](idx, isNextBar, contracts)''' – partially close position of the specified strategy for the set number of contracts.<br> | ||
'''[[pmms_strategy_set_entry_contracts]](idx, contracts)''' – set the number of contracts for the strategy’s entry with an idx number (size calculated by the strategy itself will be ignored). To use the order size calculated by the strategy itself set “contracts” parameter to | '''[[pmms_strategy_set_entry_contracts]](idx, contracts)''' – set the number of contracts for the strategy’s entry with an idx number (size calculated by the strategy itself will be ignored). To use the order size calculated by the strategy itself set “contracts” parameter to -1. <br> | ||
'''[[pmms_strategy_get_entry_contracts]](idx)''' – get the number of contracts of the entry order of the strategy with an idx number. <br> | '''[[pmms_strategy_get_entry_contracts]](idx)''' – get the number of contracts of the entry order of the strategy with an idx number. <br> | ||
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> |