Is it possible to use some kind of script/tool or something, that would let me create new charts and load strategies with custom parameters from file or command line? TS has something like that but also not perfect. You can create new chart and load strategy on it from command line, but can't customize strategy parameters. I'm looking for fast way to load lots of strategies without having manually set parameters, sessions, bar sizes etc.
For now i found only how to change chart's symbol from command line, or create new chart from scanner, but also manually.
Thanks for your help.
How to create new charts and load strategies automatically?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: How to create new charts and load strategies automatical
Hello Skirmante,
There is no functionality that will allow you to create a new chart or load strategies from file or command line. But there are multipe features that can help to do that pretty fast in MultiCharts:Keyboard_Shortcuts, Study_Templates, Creating Charts Using the Command Line Toolbar, Changing Chart Resolution Using Command Line.
You can also create a workspace and configure charts the way you need it. Then you can save it and open this workspace file from MC .Net code.
There is no functionality that will allow you to create a new chart or load strategies from file or command line. But there are multipe features that can help to do that pretty fast in MultiCharts:Keyboard_Shortcuts, Study_Templates, Creating Charts Using the Command Line Toolbar, Changing Chart Resolution Using Command Line.
You can also create a workspace and configure charts the way you need it. Then you can save it and open this workspace file from MC .Net code.
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: How to create new charts and load strategies automatical
I came across this old thread by googling, and this underlined sentence is new for me. Do you might have an example Henry? In the chm help file the only reference to the word 'workspace' is a property from the order class.You can also create a workspace and configure charts the way you need it. Then you can save it and open this workspace file from MC .Net code.
(I know that C# can start processes, but wasn't wondering about running a new instance of MultiCharts .NET but about opening a workspace file in MC .NET).
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: How to create new charts and load strategies automatical
Thanks for the offer. I use AutoHotKey, and it can probably also be done with that tool.
But I asked because I wanted to learn how to open workspaces from MC .NET code, which suggest to me there is some kind of direct way (otherwise one would call the AutoIt or AutoHotKey script from MC .NET code, which then opens the workspace).
But I asked because I wanted to learn how to open workspaces from MC .NET code, which suggest to me there is some kind of direct way (otherwise one would call the AutoIt or AutoHotKey script from MC .NET code, which then opens the workspace).
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: How to create new charts and load strategies automatical
JoshM, unfortunately there is no such built-in functionality/code. I believe I was referring to general C# ability to develop it.I came across this old thread by googling, and this underlined sentence is new for me. Do you might have an example Henry? In the chm help file the only reference to the word 'workspace' is a property from the order class.You can also create a workspace and configure charts the way you need it. Then you can save it and open this workspace file from MC .Net code.
(I know that C# can start processes, but wasn't wondering about running a new instance of MultiCharts .NET but about opening a workspace file in MC .NET).
Re: How to create new charts and load strategies automatical
Josh - I am curious as how will such a functionality to open a workspace from code will help your trading operation. Can you please enlighten me as to what would be the benefit of having such a functionality? Thanks.Thanks for the offer. I use AutoHotKey, and it can probably also be done with that tool.
But I asked because I wanted to learn how to open workspaces from MC .NET code, which suggest to me there is some kind of direct way (otherwise one would call the AutoIt or AutoHotKey script from MC .NET code, which then opens the workspace).
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: How to create new charts and load strategies automatical
I asked because of curiosity and a desire to learn that feature; I don't see a need or importance for it currently.Josh - I am curious as how will such a functionality to open a workspace from code will help your trading operation. Can you please enlighten me as to what would be the benefit of having such a functionality? Thanks.
It's somewhat like the `ChartCommands.CommandLine()` method. With that, we can programmatically reload a chart or insert indicators, but these things can also be done fine manually, of course.
Re: How to create new charts and load strategies automatical
Thanks for clarifying Josh! I respect intellectual curiosity! I just thought maybe you see a great deal of value from such a feature. Thanks for clarifying.I asked because of curiosity and a desire to learn that feature; I don't see a need or importance for it currently.Josh - I am curious as how will such a functionality to open a workspace from code will help your trading operation. Can you please enlighten me as to what would be the benefit of having such a functionality? Thanks.
It's somewhat like the `ChartCommands.CommandLine()` method. With that, we can programmatically reload a chart or insert indicators, but these things can also be done fine manually, of course.