Thank you for the post.
If you simply want a limit of time from the export/compile you could hard code those values very easily. Keep in mind that if the users PC clock is changed back, it would allow the script to work. It would be unlikely for a user to set the clock back though as that would likely only be helpful in historical data as a time change to the past would prevent live data from working correctly.
protected override void OnBarUpdate() { if(DateTime.Now > new DateTime(2018, 12, 30, 7, 0, 0, 0)) return;
if(DateTime.Now > new DateTime(2018, 12, 30, 7, 0, 0, 0)) { DrawTextFixed("error", "Your trial has expired", TextPosition.TopRight); return; }
I look forward to being of further assistance.
Comment