Forum

array out of range - indicator buffer

hi guys . I'm new in indicator and English language too.I've tried to convert an indicator from MT4 to MT5 . i downloaded an include file ("<mql4_2_mql5.mqh>") to make my work easier . this is my code that give me "array out of range in Line ( 171:18 )" error will you help me to solve my problem

set icon for my expert or indicator without its file

Hello everyone I am a developer of meta trader bots that customers order and I build and deliver the project in exchange for money. I wanted to define an icon for my robot, but I found out in the document that it is only possible to use icons that have already been saved in the data folder, and I

Error 5004 and file open error

I wrote an expert that saves the information of my trades in a text file every few seconds. It works fine in the first few hours, but after a while it gives error 5004. My code: //+------------------------------------------------------------------+ //|

Communicating between in and out in deals in history

Hi. I have created an expert that makes many transactions daily. Now I want to improve its performance. I want to write a script that calculates how much the profit would have been if that expert had not traded between 16:00 and 20:00 (Iranian local time ). Unfortunately, there is no command in the

How to solve container header read error

Hi A few months ago, I made an expert that can simultaneously update 1000 Renko charts that I have already made without any problems. But for several days I have been facing an unknown error that the candles inside the chart are erased and I don't know where the problem comes from. When I start it

auto trading disabled by client

Hi Last night I ran my expert and it automatically traded without any problem. But now, even when I activate auto trading, it still gives an error and does not trade I activated and deactivated it several times, but it did not work. What is the problem and how can I fix it

how to Make a quick Renko

hi every one I'm looking for a way to open and read MT5 stored ticks with mql5. I used to do it with CopyTicks , but it slowed down the computer. I have two questions: 1- how can i read the history file (history of ticks) with FileOpen function ?(What's its name and where's the address? ) ( Does

error 264 , set bid to custom symbol

hello Why does it make error 264 when I run the following code? CustomSymbolSetDouble (name, SYMBOL_BID ,tick_array[ ArraySize (tick_array)- 1 ].bid); please help me if you can

wrong output when python tries to read a text file from mql5

hello i have a script in mql5 that creates a text file with one string " hello " when i try to read my text file with python , the output is wrong " ÿþhello " my code in mql5 : int handle= FileOpen ( "file.txt" , FILE_WRITE | FILE_TXT ); FileWriteString (handle, "hello" ); FileClose

how to create chart offline with my custom closes?

hello i want to create my offline chart with my closes and data. void OnTick () { MqlRates rate[]; MqlTick tick[]; for ( int g= 0 ;g<siz;g++){ ArrayResize (rate,g+ 1 ); rate[g].close=candles_close[g]; rate[g].high=candles_high[g]; rate[g].low=candles_low[g];