Forum

Need advice about period loop.

hello, now I need operate different period in my EA, requirement: 1, loop in MT5 periods, like h1,h2,h3...to mn1. 2, print period in loop which working, like PERIOD_H1, PERIOD_H2.... processes like below for (iPeriod=h1, iPeriod <=mn1, iPeriod++) { analyze iCCI on iPeriod; //some operations with

Question, how to divide one long string to several short string values (mql5)

about mql5 string function For example, before: string testr = "macd,9,13,26"; after: testr1="macd"; testr2=9; testr3=13; testr4=26; Here need to work with a long string with several ","(or others like "-")characters within it and then divide into different short strings, the number of short

Can mql4 read/write configuration file in block sequence?

I need store EA configuration file like below: [EURUSD] timefame = 60 stoploss = 50 takeprofit= 100 [ USDJPY ] [GBPUSD] and so on. I need EA read symbol setting from .set file in block, Anyone has experience on it

How to replace the indicator within MT4?

hi there, Recently I have an idea, which modify the MACD indicator and replace the indicator reserved by system, after that I can use the menu -> insert -> indicators function to add my new indicator to chart. And I deleted all directories including ex4/mq4 files and the old MACD indicator still