×

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

30 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>
'''[[pmms_strategy_currentcontracts]](idx)''' – returns a value representing a positions’ number of contracts which was opened by the strategy with an idx number. <br>
'''[[pmms_strategy_entryprice]](idx)''' – returns a numerical value representing an average , indicating the price at the initial entry price of into the specified position opened by the strategy with an idx StrategyIndex number. <br>
'''[[pmms_Strategy_RiskCapital]](idx)''' – returns a numerical value representing the amount of money withheld as a risk capital for the open position 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>