Codes

Account/Symbol Details for MetaTrader 4

Get all the Account and MarketInfo details for a currency pair at a glance

periodgen for MetaTrader 4

Quckly generate histoircal data from any M1 data such as alpari for all time frames up to D1. Shift Time to suit your server

CloseOnChart for MetaTrader 4

Quickly close open orders by dragging and dropping this expert on chart. Will ask for confirmation to close each order within 2 pips of the drop

Forum

Missing Symbol Properties

In english help file the following symbol properties appear in russian: They are also missing from definition in MQL5 enum ? (meaning they do not appear in intellisense list, so I assume they are not defined) SYMBOL_START_TIME Дата начала торгов по инструменту (обычно используется для фьючерсов)

is there a way to call base virtual function from descendant ?

is there a way to call base virtual function from descendant ? (eom) sometimes virtual function from base class can define common action for descendant classes before or after specific action the descandant performs just like destructors go down the chain

is there a way to hide public member in a descendant class ? (eom)

is there a way to hide public member in a descendant class

trouble creating new objects

Finally trying to look into new MQL5 language. As far as being onject-oriented it's like going back in time about maybe 20 years back. But on the more concrete note: Right away I am stumped... What's wrong here? class testclass {};

why indiicator keeps reloading in tester

Anybody has answer to this ? Indicator keeps reeloading int tester on every tick on Weekly TF, same indicator on M15 gets loaded only once This slows down tester tremendously!!! Here is a journal: 2010.07.12 10:05:21 2010.03.01 00:59 JK Slow EURUSD,Weekly: loaded successfully 2010.07.12 10:05:21

metatrader 5 doesn't start

Does anyone know of this problem? I can't start metatrader. Yesterday I downloaded latest copy from metaquaotes and chatrs opened after install. But today, it doesn't start. I clicked on desktop icon, start menu icon and on actual terminal.exe in in the metatrader folder... and nothing happens. I

StringSubstr(input,startpos) copies only first 4096 bytes

I noticed while working with long strings that long strings are ok but function StringSubstr(input,starpos) copies only first 4096 bytes of the input string. This bug could be fixed in the next build if they still make new builds in mql4

OrderSelect(MODE_HISTORY is limited to what is listed in Account history tab???

Discovered a funny quirk in OrderSelect function with MODE_HISTORY. It only selects whatever is listed currently in 'Account History' tab. So if you limit your account history tab to say 'TODAY', that's all you going to get in OrderSelect function. It seems all the other history is inaccessible

Tester problem with Bid

While testiing on the Visual Tester I noticed that Bid returns the actual Bid from this past Friday instead of current Tester Bid. Not sure what the problem is here. Is it becuase the market is closed? MarketInfo(Symbol(),MODE_BID) doesn't help. This is pretty silly. Any workaround for this? PS

metatrader bug?

I have an indicator which draws and deltes trendlines. When I physically grab the line with the mouse and tick hapens at the same time MT Terminal goes into freezing loop. It seems there is conflict between grabbing line with mouse and trying to delete the same line in the indicator code. Terminal