"CommandLine": any one has experience on how to use it?  [SOLVED]

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

"CommandLine": any one has experience on how to use it?

Postby arjfca » 28 Aug 2014

Hello

I just saw a function "CommandLine". How can I use it to control the scale of a given chart form a given workspace?

The goal is to control the scale from a command line created in Excel.Is it possible?

Martin

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: "CommandLine": any one has experience on how to use it?

Postby Henry MultiСharts » 28 Aug 2014

Hello Martin,

Here is the new command line reserved word description:
https://www.multicharts.com/trading-sof ... ommandLine
Supported commands:
https://www.multicharts.com/trading-sof ... d_Commands
Code examples here:
viewtopic.php?f=1&t=12010#p67171

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: "CommandLine": any one has experience on how to use it?

Postby arjfca » 28 Aug 2014

Hello Martin,

Here is the new command line reserved word description:
https://www.multicharts.com/trading-sof ... ommandLine
Supported commands:
https://www.multicharts.com/trading-sof ... d_Commands
Code examples here:
viewtopic.php?f=1&t=12010#p67171
Is the command line could be sent from an external application?

Martin

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: "CommandLine": any one has experience on how to use it?

Postby Henry MultiСharts » 28 Aug 2014

Is the command line could be sent from an external application?
Commands can be typed in manually. If you have an application that fills the forms automatically then I believe it can be used. We have not tested such scenario. Command line functionality can also be accessed from the code.
Is it possible to select # bars back to be charted. I did not see this option on the reserved word.
Only From-To request is supported.

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: "CommandLine": any one has experience on how to use it?

Postby arjfca » 28 Aug 2014

Is the command line could be sent from an external application?
Commands can be typed in manually. If you have an application that fills the forms automatically then I believe it can be used. We have not tested such scenario.
I tested fill an Excel cell with a string like 10 Minutes, copy to clipboard and CTRL V to paste it to the command line box. It work

For the # of bars back, I just found
Reloads a specified number of days/weeks/months back
int ResSize ResName

Martin

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: "CommandLine": any one has experience on how to use it?

Postby arjfca » 07 Sep 2014

While I do succeed to use single command line to change instrument or time frame, I did not succeed yet to create a command with more than one setup. My command line is interpreted has a chart to load and no data is found.


What would be a command line to get the actual chart
Load last 3 days with a resolution of 1500 ticks

< From=2014/09/02, to=2014/09/05,res=1500 ticks >


Is the reserved word "bref" , back reference is valid only for # bars back for an indicator. Could it be use for # bars to display an instrument. I use this to prevent overloading MC when I use a very low time frame.

Martin

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: "CommandLine": any one has experience on how to use it?  [SOLVED]

Postby arjfca » 07 Sep 2014

I finally did succeed
My From / to date format was wrong and I add .csy dnum=1

.csy dnum=1, res=1500 ticks, from=09/01/2014, to=09/05/2014


Return to “MultiCharts”