Support Board
Date/Time: Sat, 19 Apr 2025 10:17:48 +0000
Post From: List of Basic Items Re: The Best Trading Platform in Existence
[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
|