Forum

What time zones does the function CopyTimes use

So I'm trying to come with an algorithm for my EA and I'm stuck in a place where I have to use time zone sensitive information to make analysis. Now I don't want to loop number of seconds and compare them with TimeGmt(), This is making my program slow so I wish to use the hourly bars time

Can't access bars on higher time frame

hello guys. So I was trying to build an EA that utilises bars of multiple timeframes to gather information for trading. Now i'm struggling with an issue where if I try to run the code on a lower timeframe chart it can't seem to access the adequate number of bars it needs on the higher timeframe

How to make an mql5 code that identifies peaks and draws accurate trendlines

Hello guys please I need help in fixing a bug i've been having a problem with for some time now. So basically i'm trying to build a portion of code that helps me to identify peaks in the market and store them in a 2D array so that I can access them later to use them in drawing trendlines and support