Forum

How to Find End Time of Each Session

I need to know the end time of each trading session to close position. I've imported historical data into MT5, and in reality, the end time of each session is not fixed. For example some sessions end at 20:00, while others end at 21:00. Is there a way in MQL5 to determine the current session's end

How to filter a CSV file with a large number of records?

I downloaded a 10-year data file in CSV format with over 3 million records. I want to import this CSV file into MetaTrader 5 as a custom symbol . However, before importing the data, I need to filter records from the CSV file. In other words, I want the CSV file to only contain data within specific

search Indicator subdirectory

Hi guys, It there any functions that searches Indicator subdirectory ? I need to check is my custom indicator exist in Indictor subdirectory or root before calling iCustom

Save set file of Inputs and Load it with code

Hi coders, Need to save set files of inputs parameters when remove it form chart and then load it. Is there any functions in MQL4 to save inputs param (.set files) upon deinitialize the EA and also apply the set file when I initilaize the

How to disable to market order

Hi guys, is there any way to disable opening Market orders (Not pending orders) in Terminal. I can code an expert which can close immediately Market orders but its not good idea cause I pay spread to the broker. So looking for ideas to code an expert in order to disable execute Buy and Sell orders

MT5 Issue : cannot get 1Day ATR at different Timeframe.

Hi guys, I need to get ATR value of Daily period at any timeframe but I get 4806 error code . I don't know how to tackle it. At 1Day Period I can get ATR values, but I need to get 1Day ATR values at any timeframe. when I change Timeframe, I get BarsCalculated() returned -1, error code 4806

How can I add Objects to Rectangle Label

Hi guys, I need to know add some objects like OBJ_EDIT or OBJ_BUTTON to OBJ_RECTANGLE_LABEL . I want to create a panel and add my object to Rectangle Label, but I don't know how to add them

Problem with ChartscreenShot

Hi guys, I use Chartscreenshot() to take screen of my chart but I have problem with width and height of taken pictures. As you can see dimension of picture is small. Do you have any idea to fix the problem ? (All windows of MetaTrader such as Terminal, Mrket-watch and Navigator are closed during

how can I share Data between 2 metatrader

Hi, I need to share data between 2 MetaTrader. One of them is installed on my laptop and the other on is installed on VPS . Is there any way to send data between these two MetaTrader ? please just give me some idea

MT5 : get INVALID_HANDLE error if using FileFindFirst() in OnChartEvent()

MT5 question Hi guys, I'm have a button on my panel and need to call FileFindFirst() to get handle of files in a folder when clicking on the button. everthing is good at mql4, buy I want to convert my source code to mql5. I don'k know why i can not get file_handle by click event. if I click on a