Alert -- If Realtime Data is Disconnected between time
Posted: Mar 13 2024
Hello
I have some trouble to make this code active only during a certain stime slot.
Actually i'm using session time between 15h to 22h but when i activate the code before 15h alerts are triggered.
I tried to add some conditions but it doesn't change anything (code below).
Can someone let me know what's wrong with the code to activate it only between 15h to 22H?
Many thanks in advance
I have some trouble to make this code active only during a certain stime slot.
Actually i'm using session time between 15h to 22h but when i activate the code before 15h alerts are triggered.
I tried to add some conditions but it doesn't change anything (code below).
Code: Select all
[IntrabarOrderGeneration = true]
Inputs : starttime (1500),
endtime(2200);
Vars: intrabarpersist counter(0);
If time >= starttime and time<= endtime then begin
Recalclastbarafter(5);
counter = IFF(getappinfo(aicalcreason) = calcreason_timer, counter + 1, 0);
if counter > 6 then alert("No realtime > 30 sec");
end;
Can someone let me know what's wrong with the code to activate it only between 15h to 22H?
Many thanks in advance