♥ 0 |
Hello Mr. Hahn, I need help building a script that allows to check if the current daily high of a given week has passed the previous daily high of the same week. It will display a label box with the following information: if broken, “New high achieved”, otherwise, “No New high achieved”. I wish to run it on a daily aggregation period. I have tried to write a script as follows : “ def newWeek = GetWeek()== GetWeek()[1]; def newday = GetDay()<>GetDay()[1]; def CDH = if !newWeek then Double.NaN AddLabel(yes, Concat(“DH: “, CDH), Color.green); The script only compares with the previous day, not with the earlier days of the same week. Any help is much appreciated. Thanks, Fais
Marked as spam
|
Please log in to post questions.