×

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

CommandLine

212 bytes added, 17:27, 3 July 2023
no edit summary
Passes a string expression from script to command line.
<div style="background-color: #E3FBE5;">'''Note:''' This keyword can be used if a study is applied to a chart. It is ignored in [[Portfolio Trader]] and [[Understanding Real-Time Market Scanner|Real-Time Market Scanner]]. </div>
== Usage ==
<syntaxhighlight>CommandLine("Expression")</syntaxhighlight>
See the [[MultiCharts Work Area#The list List of supported commandsSupported Commands|list of supported expressions]] for the command line.
== Examples ==
<syntaxhighlight>CommandLine(".csy dnum=1, name=AUD/CHF, df=LMAX");</syntaxhighlight>
</syntaxhighlight>
Changes the symbol plotted as data series 1 to AUD/CHF and the data source to LMAX on the chart where the script is applied.
Applies MACD indicator to the data series 1 with MaxBarsBack parameter = 100 to the chart where the script is applied.
<syntaxhighlight>CommandLine(".rld int = 2 weeks");</syntaxhighlight>
Reloads 2 weeks of data on the chart where the script is applied.
[[Category:Execution Control‎]]