Hi,
your TimeSinceSignal Function Knowledge Base article
https://help.optuma.com/kb/faq.php?id=1030
seems to have some inconsistencies.
First, the example script at the beginning of the page is incomplete, it doesn’t match the chart example of Visa Inc.
//Define the true condition in variable V1
V1 = CLOSE()
//Calculate time since V1 was true
TIMESINCESIGNAL(V1)
V1 = CLOSE() is surly not correct.
Second, at the bottom of the page you have mentioned two scripts. The last one seems to be incomplete.
For new all-time highs that occurred within the last 5 days:
V1 = HIGH() >= HIGHESTHIGH(RANGE=All Time);
TIMESINCESIGNAL(V1)
The row TIMESINCESIGNAL(V1) seems to me incomplete, perhaps it should be TIMESINCESIGNAL(V1) == 5
Thanks
Thomas