Forum

How to make metatrader reload expert or indicator after compilation by command line

When I compile inside metatrader, metatrader reloads expert or indicator. If I do so by command line with metalang, is there a way to notify metatrader to reload expert or indicator the same way

Is it possible to change Symbol name from EURUSDm to EURUSD ?

I wanted to test signal for a broker but it doesn't work because symbols are suffixed with m by broker so expert cannot recognize. Is it possible to change

About the MQL4 learning curve

It took me months to getting started I have given up multiple times this is why : there are tons of very good but lengthly articles as well as samples codes without explanation so when a beginner who tries to understand and not just copy and paste - often it doesn't work - you have to extract the

Can't I export quotes using this code without opening a chart

I have a script to export quotes but it only works if I open a chart. Can't I modify so that I'm not obliged to open a chart first ? Excerpt of source code : FileWrite (handle, "Time;Open;High;Low;Close;Volume" ); // data recording for ( int i=iBars(symbol,theperiod); i>= 0 ; i--) { datetime t =

Weird : Expert loaded successfully but prints nothing

In Expert window I only get "Print Tick EURUSD,M1: loaded successfully" nothing more whereas I did ask to print every tick . There's no error. I have no indicator in chart just this expert, no other charts open. int start() { int i; string symbol;

Append to a file at each tick : why fileseek doesn't work ?

In my expert start() I have handle = FileOpen (filename, FILE_CSV | FILE_WRITE , ";" ); if (handle > 0 ) { FileSeek (handle, 0 , SEEK_END ); FileWrite (handle, quote); FileClose (handle); } But I got only one line in my

EA Currency_Loader exports nothing

I have installed this EA https://www.mql5.com/en/code/8102 The icon is smiling, I have created folder \experts\files\Export_History but nothing is exported. Why

How to substract one day to current time ?

I want to substract a day in: string strTime = TimeYear(TimeCurrent()) + "." + TimeMonth(TimeCurrent()) + "." + TimeDay(TimeCurrent()) + " " + '22:41'; TheDate = StrToTime(strTime) - PERIOD_D1 ; Alert(TimeToStr( TheDate )); If current day is 30 strTime = "2012.05.30 22:41" and TheDate should give "

How to constantly read from a file without closing and reopening it ?

Do I have to open/close file constantly in start() handle = FileOpen("params.txt",FILE_CSV|FILE_READ, ";"); params= FileReadString(handle,16); FileClose(handle); or is there a better way