Codes

Delete all objects of the selected type for MetaTrader 4

Script deletes selected object types from the charts (current chart or all active charts)

Delete all objects on all charts for MetaTrader 4

The script deletes all objects on all active charts

Forum

Metatrader 4 future?

It's obvious that Metaquotes is trying to kill Metatrader 4 and force transition to Metatrader 5. Was there any announcement about timeframe when this could happen? I am wondering if it is viable to start a new project with MT4 which might very soon go away, or to go with MT5 which now has a much

Metatrader 4 install asks for proxy information

When setup is started, Metatrader 4, build 840 displays form for proxy settings. Internet works, since setup is downloaded from internet. Setup also opens MQL5 community page on start. This happens also with Windows firewall and antivirus turned off. Windows 7 Home, with UAC, setup started using

Is CopySpread() function working?

I can't make CopySpread work. It returns array of zeroes. Tried with 4 and 5 digits brokers, EURUSD, GOLD and Dow Jones index. Code I used is for testing is copied example from CopySpread() documentation page : #property indicator_separate_window #property indicator_buffers 1 //---- plot Spread

Build 670 - Indicator does not draw candles?!

Indicator draws histograms in chart window but it draws only about 2000 candles and then stops. I checked code, history contains more that 20.000 bars, number of bars in chart is 50.000, 500.000 bars in history. When I open data window I see that code correctly calculated all bars I requested, but

History import problem

I'm trying to import a file with historical data. Problem is with volume column. Volume is zero in entire input file, but when I import it into history, I get some values that I don' know where do they come from. I tried following: deleted all history files disconnected from the broker (killed

Can I get trading server time over the weekend?

From the TimeCurrent() help: "Returns the last known server time, time of the last quote receipt for one of the symbols selected in the "Market Watch" window. " If I understood correctly, I cannot get current time on the broker's server when market is closed. I would like to calculate time

What is the difference between CopyTickVolume() and CopyRealVolume()?

Help for these two functions is not very helpful: CopyRealVolume() : The function gets into volume_array the history data of trade volumes for the selected symbol-period pair in the specified quantity. CopyTickVolume(): The function gets into volume_array the history data of tick volumes for the

printf or StringFormat separating thousands

Is there a way to format a number with printf to separate thousands like this: 123,456.80 All formats I tried give me 123456.80

OO and passing arrays between objects - advice needed

I have two classes. One prepares array with some numbers. What is the "best" or "recommended" way to pass an array from the object of one class to the object of second class. Problem is that arrays cannot be result of a function , so I don't see a way to expose array data to the consumers outside of

Iterating through orders and multiple EAs

Examples from help file and articles on this site recommend following procedure for iterating through active orders: int total= OrdersTotal (); // write open orders for ( int pos= 0 ;pos<total;pos++) { if ( OrderSelect (pos, SELECT_BY_POS )== false ) continue ; // Do something with selected