×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts
Open main menu

Changes

PMM Keywords

5 bytes added, 11:58, 14 February 2023
no edit summary
'''[[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 0-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>
'''[[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>
'''[[symbolCurrencyCode]] '''– returns currency code of the current symbol. <br>