What error?
Why do you think it does not work?
Do you know your dst, the dst of your pc?
Do you know how to change the time of you pc?
Question after question...
- You have "extern" but no datatype defined.
- "Hour" and "Minute" are reserved function names, try not to use them as variable names so that you don't create possible compile problems.
- It is unclear if this code in inside a function or just a the global level.
- If inside a function, then you can't have "extern" in it.
- If outside in the global scope, then you can't have executable code, namely the "Time???()", "if()", "DayOfWeek()", etc. outside of functions in the global context.
You should first learn coding in general, so that you can understand the basics of coding before trying to code your own Indicator or EA. It is of no use to anyone if you don't first learn the basics. This can take many months (even a couple of years), for a complete beginner, to properly learn to code Indicators or EAs. You need time to properly gain the necessary knowledge and coding experience for it. Obviously, if you are serious about it and have the dedication to stick with it, then go for it. But remember that it is a long-term project, and not short term.
If however, you are not serious about learning to code, or you need a solution quickly, then please consider hiring someone to code for you. Go to the Freelance section and place a Job advert, stating your budget and describing your requirements.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I would like to run my ea on GMT input time. it shows error while i used following codes. please support me to fix the error?