Forum

How to get Testing Period and Spread setting in coding?

How to get Testing Period and Spread setting in coding for logging? Thanks

How to access hyperlink in EA without adding to "Allow WebRequest from listed URL" in tool setting?

How to access hyperlink in EA without adding to "Allow WebRequest from listed URL" in tool setting? Thanks

How to use MQ4 to get/ set Windows' Environment Variables?

How to use MQ4 to get/ set Windows' Environment Variables? Can we do this

Why iBars and TerminalInfoInteger(TERMINAL_MAXBARS) return different values?

I used below to get number of bars in GBPNZD monthly chart, it only shows 131 bars. int numOfBars = iBars (symbolList[i], PERIOD_MN1 ); However, when I used below code to get chart's maximum bars, it shows 266 bars. long maxbars= TerminalInfoInteger ( TERMINAL_MAXBARS ); I tried to get close value

How to include accuracy in MT5 Back Test?

I have an multi-currency EA based on 28 currencies' bars and Back test only with 1X % accuracy. How can I download/control to use all 28 currencies' bars for calculation and testing

How to deal with "log files size exceeded 20xx MB, test terminated" while publishing?

I have isLogging parameter in EA to indicate whether calling Print() or not. I turned it off but failed to pass validation of MQL5. Then I removed this parameter, I can pass the validation. But I want to log something instead of turn it off. May someone advise how to fix it wisely? e.g. can I clean

How can I clear the log while MT5 is running?

Since the log size is bigger and bigger while running some scripts / back testing. I would like to know how to edit the log file except close MT5 to do that

In Back Test with using TickData, iMA() returns Zero value for X Bars

Below is my sample code: extern ENUM_TIMEFRAMES tf = PERIOD_M15 ; iMA (symbol(), tf, 169 , 0 , MODE_SMA , PRICE_CLOSE , 1 ); I was using TickData for Back Test. (without using it, there is no problem) 1. How can I get iMA() value since 00:00 but not time like 17:00? 2. How can I preload some bars

How can I plot a graph in Back Test if I can read Bar0 value from indicator only?

I could only read Bar0 value from indicator by using below code. How can I plot a graph while doing Back Test? double value = iCustom(Symbol(), PERIOD_CURRENT, indiPath, 0, 0); // tried to read Bar1 and old Bars but failed (i > 0 will be fail) //double value = iCustom(Symbol(), PERIOD_CURRENT