CommandLine: Difference between revisions
From MultiCharts
→Examples
Line 17: | Line 17: | ||
Turns on/off auto trading on the chart where the script is applied (if it is used to turn auto trading on, the popped up confirmation window cannot be skipped and a manual click on "OK" is required). | Turns on/off auto trading on the chart where the script is applied (if it is used to turn auto trading on, the popped up confirmation window cannot be skipped and a manual click on "OK" is required). | ||
<syntaxhighlight>CommandLine(".csy dnum=1, name=AUD/CHF, df=LMAX"); | <syntaxhighlight>CommandLine(".csy dnum=1, name=AUD/CHF, df=LMAX");</syntaxhighlight> | ||
</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. | 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. | ||
<syntaxhighlight>CommandLine(".isy name=@ES#, df=IQFeed, res=1 min, desc=E-MINI S&P 500 MARCH 2013, from=12/31/2012, to=5/10/2013"); | <syntaxhighlight>CommandLine(".isy name=@ES#, df=IQFeed, res=1 min, desc=E-MINI S&P 500 MARCH 2013, from=12/31/2012, to=5/10/2013");</syntaxhighlight> | ||
Inserts 1 minute graph of S&P mini 500 from IQFeed starting from 31th of December 2012 up to 10th of May 2013 as additional data series to the chart where the script is applied. | Inserts 1 minute graph of S&P mini 500 from IQFeed starting from 31th of December 2012 up to 10th of May 2013 as additional data series to the chart where the script is applied. | ||
<syntaxhighlight>CommandLine(".iid name=MACD, base=1, bref=100"); | <syntaxhighlight>CommandLine(".iid name=MACD, base=1, bref=100");</syntaxhighlight> | ||
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>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]] |