Forum

CopyRates memory & cpu usage

Hi every body. I wrote a script that scans all symbols in the system. It copies some data of each symbol and no more. I use a customized version of MetaTrader version 5.0 build 2085 that my broker provided & its difference with official version of MetaTrader is ability to connect to the broker

SymbolInfoInteger doesn't work

Hi every body. I wrote following code to identify if a symbol has some data in its history or not: bool SymbolHasData( string symbolName) { bool alreadySelected = false ; if ( SymbolInfoInteger (symbolName, SYMBOL_SELECT )) alreadySelected = true ; else SymbolSelect (symbolName

How to create virtual server that only provides historical data?

Hi everybody, Is it possible to create/design a virtual server that only provides historical data for my custom symbols but not any real trades? Thanks

Call ArraySetAsSeries on CPriceSeries

Hi every body I want to freely call ArraySetAsSeries on internal data array of classes such as CiClose,CiHigh,..(all derived from CPriceSeries) to enable/disable timeseries behaviour of them. How can do that? Thank for any guide or solution

How can I return error code from my custom indicator?

Hi, I have a custom indicator ('A') that is called only by iCustom function from my another custom indicator('B'). In OnInit function of indicator 'A', I always check some requirements and if it is not OK, I will return INIT_FAILED. When I call indicator 'A' by iCustom function, it always return

My compiled mql file(ex5 file) is not shown like other ex5 files!!!

Hi, I compiled my own mql file without any error, but generated ex5 file is not shown like sample ex5 files coming with MetaTrader(CCI.ex5, MACD.ex5 , ...). for example it has no icon or no MQL property page is displayed for it when I want to view its properties in My ex5 file works fine without any