- GMT offset problem, looking for some help..
- kindly help
- Trade time in GMT
Forum on trading, automated trading systems and testing trading strategies
Please fix this indicator or EA
Sergey Golubev, 2017.03.24 07:23
And this is my other suggestion (which came from tsd 2010 and from tsd 2008):
----------------
Just to remind:
Coders (any coder) are coding for free:
- if it is interesting for them personally, or
- if it is interesting for many members of this forum.
----------------
and Freelance section of the forum should be used in most of the cases.
---------------
... or upload source code and the coders may help.
Hi, please help me by adding trade times on EA, i want my EA to stop placing trades at 10 PM GMT +2 and start placing trades at 1 AM GMT +2. i have the source code but i have no idea how to do it, please help.
Please send me the source code you have so I can help you.
![Flappy Bird Flappy Bird](https://c.mql5.com/36/83/flappy-bird.png)
- reviews: 4037
- flappy-bird.co
Hi
You can send the code and ask coders.
But you can also try on your own to add a proper function which blocks or allows trading in chosen times. This function needs to be added before the function which open trades.
It might look something like this:
input double TimeStart1 = 1, TimeEnd1 = 22; bool isAllowedTrading(){ MqlDateTime curTime; TimeToStruct(TimeCurrent(), curTime); //current server time double hod = curTime.hour // Hour of the day. if(TimeStart1 <= hod && hod < TimeEnd1){ return(true); //allowed trading } else return(false); }
Best Regards
Hi, please help me by adding trade times on EA, i want my EA to stop placing trades at 10 PM GMT +2 and start placing trades at 1 AM GMT +2. i have the source code but i have no idea how to do it, please help.
Send us your code so we can assist, if it is worth it, and you have showed effort in writing it and its not too much work, we will code it for you.
![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