i have network but it doesnt log in , it keeps saying connection error
lothrine:
i have network but it doesnt log in , it keeps saying connection error
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 ...
Anil Varma -: 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.
Put in a valid datetime; "D", apostrophe, YYYY, dot, MM, dot, DD, space, HH, colon, MM, apostrophe.
William Roeder:
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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.