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 !
Base Strategy calling different stratgies [SOLVED]
- Alex MultiCharts
- Posts: 194
- Joined: Aug 09 2013
- Has thanked: 43 times
- Been thanked: 77 times
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/
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/
- JoshM
- Posts: 2196
- Joined: May 20 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Only responding on the highlighted statement: yes, that can be done.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) ?
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.
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.
Hope this will be fully incorporated in ver9.
But Thanks.
- JoshM
- Posts: 2196
- Joined: May 20 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
I've added it as a comment to an already existing PM request here: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.
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.