Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 13:14:54 +0000



Post From: Protecting studycollection with an 'expiration date'

[2023-01-29 19:26:42]
User61168 - Posts: 348
It's a struggle but I might be overthinking this. Knowing that all password protected studies in a collection could be deleted, I could do the following:
- password protect all studies
- Create a new password protected "Check Expiration" Alert condition (say ID5.SG1 which returns 1 on success) to put background color as "black" to "hide" all bars if today (i.e. server system date and not local desktop system date) is past 2/15/2023. This should "blank out" all bars in history as well as all future bars... something like ServerDateTime>DATEVALUE("02,15,2023"). Could you please help me with this formula to fetch server date? local desktop system clock could be manipulated so it has to be server date.

- in my alert formula for trade entry study, I simply put a criteria ID5.SG1<>1 as a criteria to allow trade entries if today's system date is not past the expiration date.

If ID5 is deleted, then my entry alert condition should result in a error/failure resulting in no live or simulated or replay trades :-)

Edit: Not background color, I mean Color bar. Even if i am unable to "hide" the bars, that fine as setups are coded via alert formulas
Date Time Of Last Edit: 2023-01-29 19:35:23