Page 1 of 1

Base Strategy calling different stratgies

Posted: May 14 2014
by franky
I would like to know if it is possible to have a base strategy file which can call other strategies ? For example, Is it possible to create a charttoolbar strategy file which will call other strategies (Instead of inserting multiple strategy in the 'Insert Study' form) ?

Can't figure out how to import like blablabla = new PowerLanguage.Strategy.boblobloStrategy(this) in the create() function of the base strategy file !

Re: Base Strategy calling different stratgies  [SOLVED]

Posted: May 15 2014
by Alex MultiCharts
Hello franky.

Unfortunately, it is not possible. You can create Study Templates and then auto-apply them: https://www.multicharts.com/trading-sof ... _Templates

You can also access objects of one study from the another one: viewtopic.php?f=19&t=12593#p100345

If you want to have functionality that you have described in future, please leave a feature request at this web page: https://www.multicharts.com/pm/

Re: Base Strategy calling different stratgies

Posted: May 18 2014
by JoshM
I would like to know if it is possible to have a base strategy file which can call other strategies ? For example, Is it possible to create a charttoolbar strategy file which will call other strategies (Instead of inserting multiple strategy in the 'Insert Study' form) ?
Only responding on the highlighted statement: yes, that can be done.

If you let the chart toolbar button call `ChartCommands.CommandLine()`, you can use the `.isig` text command to insert another signal on the current chart.

See the wiki here for the accompanying list of parameters.

Re: Base Strategy calling different stratgies

Posted: May 21 2014
by franky
Thanks JoshM for the hint. Very useful however, it's impossible to change programmatically public parameters for the indicator or strategy with `ChartCommands.CommandLine()'.
Hope this will be fully incorporated in ver9.
But Thanks.

Re: Base Strategy calling different stratgies

Posted: May 24 2014
by JoshM
Thanks JoshM for the hint. Very useful however, it's impossible to change programmatically public parameters for the indicator or strategy with `ChartCommands.CommandLine()'.
Hope this will be fully incorporated in ver9.
I've added it as a comment to an already existing PM request here:

MC-1612 - [Command Line] Allow removing indicators and strategies

Given the low number of votes of the Command Line requests (there's also one here), implementing this request for version 9 seems very unlikely.