Forums › ProRealTime Deutsch forum › ProBuilder Support › 3. Montag im Jahr › Reply To: 3. Montag im Jahr
01/20/2025 at 4:52 PM
#242876
Da ist er:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
ONCE TF = gettimeframe ONCE dailyTF = (TF = 86400) ONCE hourlyTF = (TF = 3600) ONCE Change = 0 ONCE Mondays = 0 ONCE ItsTuesday = 0 ONCE Flag = 0 // //BackGroundColor("White",255) // IF (OpenMonth > 1) THEN Change = 0 Mondays = 0 ItsTuesday = 0 Flag = 0 ENDIF // IF (OpenYear <> OpenYear[1]) THEN Change = 1 Mondays = 0 ItsTuesday = 0 Flag = 0 ENDIF // IF OpenDayOFWeek[1] > 1 THEN Flag = 0 ENDIF // IF ((OpenDayOfWeek = 1) OR ((OpenDayOfWeek > 1) AND ((OpenDayOfWeek[1] > OpenDayOfWeek) OR (OpenDayOfWeek[1] = 5)))) AND (OpenDayOfWeek <> OpenDayOfWeek[1]) AND (dailyTF OR (hourlyTF AND (Flag = 0))) THEN MonDays = MonDays + 1 Flag = 1 IF (ItsTuesday = 0) AND Mondays = 3 THEN ItsTuesday = 1 DoW = OpenDayOfWeek ENDIF ENDIF // IF Change AND ItsTuesday AND (OpenDayOfWeek <> DoW) THEN BackGroundColor("Yellow",50) ENDIF // IF (DailyTF AND ItsTuesday[1]) OR (hourlyTF AND ItsTuesday[1] AND (OpenDayOfWeek > (DoW+1)) AND (OpenDayOfWeek <> OpenDayOfWeek[1])) THEN Change = 0 Mondays = 0 ItsTuesday = 0 ENDIF // RETURN |