705
edits
No edit summary |
|||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
Passes a string expression from script to command line. | 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 == | == Usage == | ||
Line 5: | Line 6: | ||
<syntaxhighlight>CommandLine("Expression")</syntaxhighlight> | <syntaxhighlight>CommandLine("Expression")</syntaxhighlight> | ||
See the [[MultiCharts Work Area#The | See the [[MultiCharts Work Area#The List of Supported Commands|list of supported expressions]] for the command line. | ||
== Examples == | == Examples == | ||
Line 18: | Line 19: | ||
<syntaxhighlight>CommandLine(".csy dnum=1, name=AUD/CHF, df=LMAX");</syntaxhighlight> | <syntaxhighlight>CommandLine(".csy dnum=1, name=AUD/CHF, df=LMAX");</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. | 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. | ||
Line 30: | Line 30: | ||
Applies MACD indicator to the data series 1 with MaxBarsBack parameter = 100 to 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> | <syntaxhighlight>CommandLine(".rld int = 2 weeks");</syntaxhighlight> | ||
Reloads 2 weeks of data on the chart where the script is applied. | Reloads 2 weeks of data on the chart where the script is applied. | ||
[[Category:Execution Control]] | [[Category:Execution Control]] |