Support Board
Date/Time: Fri, 18 Apr 2025 06:30:38 +0000
List of Basic Items Re: The Best Trading Platform in Existence
View Count: 634
[2025-03-18 18:26:22] |
gambotage - Posts: 23 |
Hi and thank you in advance for your response. I have a small list of items I wanted to inquire about. Working with SC v2747... 1. Rectangle Drawing. I have somehow corrupted the Rectangle tool in my application that no matter where I plot the drawing at a location on the chart, the beginning and ending anchors find themselves at 12AM (my charts are set to Eastern Time). I have no idea how I changed the configuration of the drawing to plot there unless this is a known issue. Is there a way to "reset" this drawing's behavior to render back to where I click on the chart? 2. Text Labels for Drawings. Is there any plan in the future to incorporate text labels for simple drawings like lines, rectangles, etc. Some platforms allow you to specify default text that is aligned with the drawing that also has justification options (above/below, left/right, etc). Just wondering if this is something that may be seen in a future release. 3. Data Removal from Trade Activity Log. Is there a way to "delete" an account from TradeActivityLog.dat? I haven't actually opened the file as of yet as I don't want to make changes unless there's an interface directly within the application that allows users to purge execution data at the trade account level. 4. Text Label for Chart in ACSIL. I've been looking around the forums for a code snippet that will render a fixed text label on the chart. I know there are studies for this but I'd ideally like to have a study value displayed persistently and updated on the chart by way of a text label I can either drag and drop or at a fixed percentile location. Lastly, 5. _64 vs _ARM64 Exe on M1 Chip. Running the application on Winblows 11/Parallels, it is preferable that I use the _ARM64 instance correct? I am getting occasional platform crashes. I don't believe it's related to corrupt code found in custom studies, my hunch is I'm running the wrong EXE. Thanks again for your time & response! Date Time Of Last Edit: 2025-03-18 18:35:17
|
[2025-03-18 22:01:47] |
John - SC Support - Posts: 39353 |
1. This is done by the Configuration setting for "Use Start Time" and "Use End Time" when these options are set to "Yes" and the times are defined, the anchors will automatically be set to those times. Refer to the following: Chart Drawing Tools: Rectangle | Extending Rectangle | Ellipse | Triangle Configuration 2. Some tools have the option for "Copy Tool Config Name to Text" which allows you to specify a specific name that will then become the text for that tool. The tool then has the options for where to place that text. Both the Line and Rectangle have this option. 3. You can remove specific account information from the log by selecting that account to display the information for it, then selecting all the Trade Activity for that account and then deleting it all. Refer to the following: Trade Activity Log: Trade Activity Data Editing Menu Commands (Trade >> Trade Activity Log) 4. It sounds like you are asking for the functionality in the "Text Display for Study" study. The code for this is in the Studies3.cpp file in the ACS_Source folder under your main Sierra Chart installation folder. 5. Since the M1 chip is an ARM processor, you should use the ARM64 executable. Although we can not help much with issues on Parallels, as we do not know if the issue is caused by Parallels or something else. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-03-27 15:57:33] |
gambotage - Posts: 23 |
Hi John, thank you for taking my questions. I have another quick one although perhaps it belongs in the programming section but it's rather simple. I'm looking for an article that discusses authorizing and removing authorization from user-distributed studies. 1. To check if a user is authorized to use a study, I have implemented sc.Index == 0 && sc.IsUserAllowedForSCDLLName == false intended to run on first iteration of the study & check that the user is not authorized & output a message to the Message Log. My current implementation leaves the study still working for a user when removing their name from that DLL (tested with another User's account because I'm not sure testing can be done with my account specifically). I'd like the study to render nothing (no settings or output) if the user is removed. Here's my current implementation: if (sc.SetDefaults) {
// inputs & defaults here return; } if (sc.Index == 0 && sc.IsUserAllowedForSCDLLName == false) { sc.AddMessageToLog("Visit oursite.com to verify your access authorization.",1); return; } // do processing For item 2 above. I did figure out how to enable the Config name to be attached to Drawing tools such as Line, Ray, etc. however it would be great if a study Config could have a separate text input from the Config name with text justification options as some other platforms are doing. I'm constantly marking levels intraday from different timeframes, having those levels copied, and by the time tomorrow arrives, I forget why that level was key, and a text note that stayed with the drawing could give users more rapid comprehensibility for specific styled drawings. Otherwise you need to go digging why that level was important to begin with. I know it's a big update but just offering feedback here. Thank you again for taking the opportunity to address my standard block for disallowing access to studies. Date Time Of Last Edit: 2025-03-27 16:54:58
|
[2025-03-27 16:19:41] |
John - SC Support - Posts: 39353 |
We are not sure what exactly you are asking with regards to the study. If the issue is that a user is still able to run your study even after they are removed from your list, then the reason for this is that you are only checking to see if the user is valid when there is a full calculation. Most of the time, the study is being called only for the most current bar, so sc.Index is rarely zero. Look at the example code in this section: Advanced Custom Study Interface and Language (ACSIL): Redistributing and Allowing Use Only by a Defined List of Users If it's something else, then we need more information on the exact issue or what you want to do. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-03-27 16:46:07] |
User431178 - Posts: 647 |
My current implementation leaves the study still working for a user when removing their name from that DLL if (sc.Index == 0 && sc.IsUserAllowedForSCDLLName == false) { sc.AddMessageToLog("Visit oursite.com to verify your access authorization.",1); return; } A question to point you in the right direction: What happens when sc.Index != 0? |
[2025-03-27 16:48:46] |
gambotage - Posts: 23 |
My intention was to perform the check on the very first iteration then not run anything after that but it appears the logic is faulty. I thought both examples (my logic & documentation) accomplished the same thing. I can try it this way and see if it behaves differently. It also appears that the if statement is at the end of the study, which would have me believe that at least 1 iteration is executed regardless. I'd have it at the top of the file if possible. Your understanding is what I'm looking for so I'll give this a try. Is there any way to test this functionality without requiring another user account to test it on? Date Time Of Last Edit: 2025-03-27 16:50:49
|
[2025-03-27 16:55:38] |
John - SC Support - Posts: 39353 |
Your code and the code in the example we reference are very different. In our example code, the study returns without running anything every time the study is called if the user is not authorized. It only writes a message to the log if it is a full calculation (there is no reason to write to the log for every call to the study). Also, in the example we reference, the check is at the very beginning of the code block, just below the sc.SetDefaults{} section. So nothing the study is actually run (apart from the setup in the SetDefaults, when the study is being first opened). For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: