YungTraderFromMontana
Well-known member
In some code I'm working on I only want the condition to apply if it happens after hours. I tried this and it didn't work,
def Start = 1600;
def End = 930;
def conf = SecondsFromTime(Start) >= 0 and SecondsFromTime(End) <= 0;
When I tried to use conf as a variable it didn't work and the condition was still applied throughout the whole day even though adding conf as a condition should have only let it signal ah.
Any ideas how this is done? This could be useful for many things.
def Start = 1600;
def End = 930;
def conf = SecondsFromTime(Start) >= 0 and SecondsFromTime(End) <= 0;
When I tried to use conf as a variable it didn't work and the condition was still applied throughout the whole day even though adding conf as a condition should have only let it signal ah.
Any ideas how this is done? This could be useful for many things.