Warning "invalid time"
i have network but it doesnt log in , it keeps saying connection error
Hi lothrine
I did not got it!
Seems post for something else ...
Put in a valid datetime; "D", apostrophe, YYYY, dot, MM, dot, DD, space, HH, colon, MM, apostrophe.
Put in a valid datetime; "D", apostrophe, YYYY, dot, MM, dot, DD, space, HH, colon, MM, apostrophe.
Thanks a lot William
What a silly mistake I was unable to identify.
I have changed to colon, and code is compiling without any warning or error.
UPDATE NOTE: Sorted out by correcting the dot with colon in Time, as pointed out by William.
Dear Members
Please help to debug what is causing the second Data definition as "invalid time" warning !!!
Warning "invalid time" CTradeState.mqh 141 40
SetTradeState(D'2021.01.01 20:00', D'2021.01.01 23.59', FRIDAY, NO_NEW_ENTRY);. This compilation error is causing my EA to return one single value irrespective of time of the day.
As date is not important in the coding algorithm, I tried using D'12:30:27'; (Equal to D'[date of compilation] 12:30:27') but then this code does not return any values.
Thanks in advance.