Login Page - Create Account

Support Board


Date/Time: Wed, 15 Jan 2025 21:08:11 +0000



command line argument /user:

View Count: 931

[2017-09-13 11:00:22]
jizzary - Posts: 177
Hi

I'm looking to have the option to pass a value to my study

The input values are not helpful for that matter. My study needs a value that will direct it to take the correct configuration values from the DB table.

In case I'm running 2 Sierra's processes then I want each to take its own configuration and such command line argument will enable me to control the configuration suit
that the study will take from DB table during the 'SetDefaults' block.

Obviously changing this control value at the code and then recompile/link is not an option.

I see that Sierra supports a set of command line arguments. Can you add another new one called 'user' and push it to the study via the sc structure
(thru a new sc.user_param member). This parameter will become accessible to the study. It is the study's developer responsibility whether to ignore it or to read it (and then use it).

It may be further developed by supporting 2 'user' CLI arguments
/user_study:<study name, param value>

.. and even further by supporting a predefined array of N entries (N will be defined and documented by Sierra)
assuming N=10, then:

(1) /user_study_01:<study-name, param value>
(2) /user_study_02:<study-name, param value>
....
....
(x) /user_study_0x:<study-name, param value>

This will enable the user to configure few studies thru the command line

Will you support this request?

Thanks.
Date Time Of Last Edit: 2017-09-13 11:25:51
[2017-09-13 17:30:19]
Sierra Chart Engineering - Posts: 104368
This is not something we would add. The command line is very minimally used in Sierra Chart.

We do not believe in the use of the command line unless it is absolutely necessary.

The proper way to accomplish this, is to write whatever data you require to a file in the Sierra Chart Data Files Folder. A custom study can determine that folder with sc.DataFilesFolder. The custom study can read whatever data it needs out of that file. It can be in any format.

A problem has been found with a sc.DataFilesFolder ACSIL member which is resolved in version 1610. So be sure to update to that version.

And do not come back to us and say you do not like the solution. This is the only solution and the proper solution and this is what you must use. This is what we would use ourselves. There is no chance whatsoever we are going to implement anything like this on the commandline. It will never happen.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2017-09-13 17:30:56
[2017-09-13 19:57:42]
jizzary - Posts: 177
>And do not come back to us and say you do not like the solution
I won't.

I considered your proposed solution before applying. I think it is inferior compared to the one I mentioned above.
But since your attitude is not open I will avoid explaining why I think so. Thanks anyway

BTW - is there any API which enables a study to launch a recalculation? I searched for it but couldn't find one.
Date Time Of Last Edit: 2017-09-13 20:02:23
[2017-09-13 20:38:21]
jizzary - Posts: 177
Do you know a compact (by code size) INI parser (for reading purpose). tnx
[2017-09-13 22:34:40]
Sierra Chart Engineering - Posts: 104368
We recommend using rapid JSON or rapid XML.


There are also Windows operating system functions for reading and writing INI files.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2017-09-13 22:34:59
[2017-09-13 23:00:02]
jizzary - Posts: 177
I know the second one. I Prefer to avoid using it.
Thanks for the recommendation!

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account