DislikedJust thought I'd bring this up again. Not sure if I'm the only one seeing it because I'm the only one who's here at this time, but again the timing for sessions seems to be incorrect somehow. Markets are open, trades are giving a valid signal, settings are set to 24hrs, but the dash says "closed"... {image}Ignored
Disliked{quote} Hotpotato, Please help comfirm if "curly brackets={}" are necessary, but removing all 6 seems to solved the issue posted above by firewight. Thanks! {quote}Ignored
"s1start = StrToTime(sess1start);"
when using "StrToTime" to convert hours and minutes only (as in this case), the system will add a date to the final result ! this date will be according to GMT time and will be different from our date depends on where we are located in this world...
The correct way to test the time in this case should be as follow:
" if (UseSession1 && TimeHour(TimeLocal()) >= TimeHour(s1start) && TimeHour(TimeLocal()) <= TimeHour(s1end)) "
This way we eliminate the date part of the question and focus on the hours only. try it...